This commit is contained in:
eson 2023-09-01 16:17:40 +08:00
parent 9b4895992d
commit 4d6ca1d291

View File

@ -48,6 +48,7 @@ type ModuleQuery struct {
}
func (mquery *ModuleQuery) EncodeQuery(field string) string {
var qstr []byte = []byte("JSON_OBJECT(")
for query := range mquery.ModuleQuery {
@ -98,6 +99,10 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
moduleName := mlist[1]
cond = fmt.Sprintf("module = '%s' and %s", moduleName, cond)
if len(mlist) == 2 {
mlist = append(mlist, "")
}
if mquery, ok := mquerys[mtable]; ok {
mquery.ModuleQuery[strings.Join(mlist[2:], ",")] = struct{}{}
} else {