You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 line
755 B

3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
3 年之前
  1. -ifndef(RANKS_H_).
  2. -define(RANKS_H_, true).
  3. %% 相关配置模块名
  4. -define(ranksCfg, ranksCfg).
  5. -define(ranksLimit, ranksLimit).
  6. %% 工作者数量
  7. -define(workCnt, workCnt).
  8. %% 公共信息字段
  9. -define(publicInfoPos, #etsRankRecord.publicInfo).
  10. %% 三元表达式
  11. -define(IIF(Cond, Ret1, Ret2), (case Cond of true -> Ret1; _ -> Ret2 end)).
  12. -define(etsRankInfo, etsRankInfo).
  13. %% 排行榜类型 需要与该定义中的 rankTypeXScore 名字一样
  14. -record(etsRankRecord, {
  15. key :: integer()
  16. , publicInfo :: term()
  17. , rankType1Score :: term()
  18. , rankType2Score :: term()
  19. , rankTypeNScore :: term()
  20. }).
  21. -record(rankInfo, {
  22. rank :: integer()
  23. , key :: integer()
  24. , publicInfo :: term()
  25. , rankTypeScore :: term()
  26. }).
  27. -endif.