This commit is contained in:
eson
2023-07-14 19:26:00 +08:00
parent b9f8876fde
commit e837c745b1
5 changed files with 96 additions and 6 deletions

View File

@@ -28,6 +28,10 @@ func NewUserStatusConfigLogic(ctx context.Context, svcCtx *svc.ServiceContext) *
func (l *UserStatusConfigLogic) UserStatusConfig(req *types.Request, userinfo *auth.UserInfo) (resp *basic.Response) {
// 返回值必须调用Set重新返回, resp可以空指针调用 resp.SetStatus(basic.CodeOK, data)
if !userinfo.IsUser() {
return resp.SetStatus(basic.CodeUnAuth)
}
data := &types.DataStatusConfig{
SearchList: []types.KeyName{
{Key: -1, Name: "All"},