feat:完善信息
This commit is contained in:
@ -432,7 +432,7 @@ func (c *Instance) MemberBind(id uint64, status int) error {
|
||||
} else if !isExist {
|
||||
return errors.New("用户信息不存在")
|
||||
}
|
||||
if model2.SysUserTenantStatus(status) == mSysUserTenant.Status {
|
||||
if model2.AccountStatusKind(status) == mSysUserTenant.Status {
|
||||
return errors.New("状态异常,不可操作")
|
||||
}
|
||||
if err := model2.Updates(mSysUserTenant.SysUserTenant, map[string]interface{}{
|
||||
|
@ -13,10 +13,10 @@ type SysUserTenant struct {
|
||||
type (
|
||||
// SysUserTenantBasic 基本信息
|
||||
SysUserTenantBasic struct {
|
||||
ID uint64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Mobile string `json:"mobile"`
|
||||
Status model.SysUserTenantStatus `json:"status"`
|
||||
ID uint64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Mobile string `json:"mobile"`
|
||||
Status model.AccountStatus `json:"status"`
|
||||
}
|
||||
// SysUserTenantUser 用户信息
|
||||
SysUserTenantUser struct {
|
||||
|
Reference in New Issue
Block a user