功能开启条件校验接口

This commit is contained in:
meixiongfeng 2023-06-09 18:15:12 +08:00
parent 6e9ae61861
commit 03fd5d2018
2 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,7 @@ type (
CheckTaskCond(session IUserSession, id int32)
CheckMlineCond(session IUserSession, id int32)
// 查询opencond 配置
GetOpenCondCfgById(uid string, id string) (bOpen bool, errdata *pb.ErrorData)
CheckOpenCondCfgById(uid string, id string) (bOpen bool, errdata *pb.ErrorData)
}
//邮件业务模块对外接口定义 提供给其他模块使用的

View File

@ -95,7 +95,8 @@ func (this *ModuleSys) AutoActivate(session comm.IUserSession, cids []string) bo
return true
}
func (this *ModuleSys) GetOpenCondCfgById(uid string, id string) (bOpen bool, errdata *pb.ErrorData) {
// 功能开启条件校验
func (this *ModuleSys) CheckOpenCondCfgById(uid string, id string) (bOpen bool, errdata *pb.ErrorData) {
conf, err := this.configure.GetOpenCondCfgById(id)
if err != nil {