logo search
This commit is contained in:
parent
34cabe5f70
commit
a72c033e5b
|
@ -33,7 +33,7 @@ func NewPreLogoSearchLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Pre
|
|||
func (l *PreLogoSearchLogic) PreLogoSearch(req *types.PreLogoSearchRequest, userinfo *auth.UserInfo) (resp *basic.Response) {
|
||||
// 返回值必须调用Set重新返回, resp可以空指针调用 resp.SetStatus(basic.CodeOK, data)
|
||||
// userinfo 传入值时, 一定不为null
|
||||
if !userinfo.IsOnlooker() {
|
||||
if userinfo.IsOnlooker() {
|
||||
return resp.SetStatus(basic.CodeSearchAuthErr)
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ func NewPreLogoSearchSuggestionsLogic(ctx context.Context, svcCtx *svc.ServiceCo
|
|||
func (l *PreLogoSearchSuggestionsLogic) PreLogoSearchSuggestions(req *types.PreLogoSearchSuggestionsRequest, userinfo *auth.UserInfo) (resp *basic.Response) {
|
||||
// 返回值必须调用Set重新返回, resp可以空指针调用 resp.SetStatus(basic.CodeOK, data)
|
||||
// userinfo 传入值时, 一定不为null
|
||||
if !userinfo.IsOnlooker() {
|
||||
if userinfo.IsOnlooker() {
|
||||
return resp.SetStatus(basic.CodeSearchAuthErr)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user