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.
 

26 lines
589 B

-ifndef(RANKS_H_).
-define(RANKS_H_, true).
%% 相关配置模块名
-define(ranksCfg, ranksCfg).
%% 工作者数量
-define(workCnt, workCnt).
%% 三元表达式
-define(IIF(Cond, Ret1, Ret2), (case Cond of true -> Ret1; _ -> Ret2 end)).
-define(etsRankInfo, etsRankInfo).
%% 排行榜类型 需要与该定义中的 rankTypeXScore 名字一样
-record(etsRankRecord, {
key :: integer()
, publicInfo :: term()
, rankType1Score :: term()
, rankType2Score :: term()
, rankTypeNScore :: term()
}).
-define(RankRecordFields, record_info(fields, etsRankRecord)).
-endif.