Documentation ¶
Index ¶
- Constants
- func CountUser(ctx context.Context, user *dal.QueryUserParam) (int64, error)
- func DeleteUser(ctx context.Context, user *UserBO) error
- func SaveUser(ctx context.Context, user *UserBO) error
- func UpdateLoginIndex(ctx context.Context, user *UserBO) error
- func UserBO2DO(user *UserBO) *model.User
- type UserBO
- func GetUserById(ctx context.Context, id int64) (*UserBO, error)
- func GetUserByName(ctx context.Context, name string) (*UserBO, error)
- func QueryUser(ctx context.Context, user *dal.QueryUserParam) ([]*UserBO, error)
- func UserDO2BO(user *model.User) *UserBO
- func ValidateUser(ctx context.Context, tokenStr string) *UserBO
Constants ¶
View Source
const (
MaxHeaderSize = 5120
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserBO ¶
type UserBO struct { ID int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` Password string `json:"password,omitempty"` // Header 很小的头像先放库里存着,有条件再升级 Header string `json:"header,omitempty"` Gender string `json:"gender,omitempty"` Role string `json:"role,omitempty"` Status int64 `json:"status,omitempty"` Sign string `json:"sign,omitempty"` AuthVersion int64 `json:"auth_version"` UpdatedAt time.Time `json:"updated_at,omitempty"` }
Click to show internal directories.
Click to hide internal directories.