Error code standardization

This commit is contained in:
skiffer-git
2023-01-31 16:49:35 +08:00
parent 8ecdcbfc0a
commit 954e01c951
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -7,9 +7,9 @@ import (
)
type UserInterface interface {
//获取指定用户的信息 如果有记录未找到 也返回错误
Find(ctx context.Context, userIDs []string) (users []*relation.User, err error)
Create(ctx context.Context, users []*relation.User) error
Take(ctx context.Context, userID string) (user *relation.User, err error)
Update(ctx context.Context, users []*relation.User) (err error)
UpdateByMap(ctx context.Context, userID string, args map[string]interface{}) (err error)
GetByName(ctx context.Context, userName string, showNumber, pageNumber int32) (users []*relation.User, count int64, err error)