clan

command
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

clan 示例:用现有原语组合出"公会"语义,不新增包。

证明 pkg/ 的原语组合已足够覆盖公会场景:

  • pkg/domain/relationship:成员与角色(leader/member),加入/退出/踢人;
  • pkg/domain/tournament:公会战赛季榜(cron 重置 + 排名);
  • pkg/domain/wallet:公会基金(捐赠/发放);
  • pkg/domain/party:公会内小队(临时组队开黑)。

路由:

/create?clan=c1&leader=alice           创建公会(relationship 加 leader 边)
/join?clan=c1&user=bob                 加入公会(加 member 边)
/members?clan=c1                       成员列表(按角色过滤)
/donate?clan=c1&user=alice&amount=100  捐赠公会基金
/fund?clan=c1                          查公会基金
/score?clan=c1&user=alice&score=100    公会战赛季榜提交
/ranking?clan=c1                       公会战排名
/squad?clan=c1&leader=alice            公会内组小队(party)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL