feat: 完善小组绩效与有效端统计并修复审查问题
This commit is contained in:
@@ -23,6 +23,7 @@ var (
|
||||
)
|
||||
|
||||
type Account struct {
|
||||
HireDate, Employment string
|
||||
ID uint
|
||||
Username, NickName, Password, RealName, Phone, Email, QQNumber string
|
||||
Level int
|
||||
@@ -218,6 +219,9 @@ func (uc *AccountUsecase) Update(ctx context.Context, input *AccountUpdate) erro
|
||||
if account.AuthorityID == 888 {
|
||||
return ErrAccountScope
|
||||
}
|
||||
if input.Username != nil && *input.Username != account.Username || input.NickName != nil && *input.NickName != account.NickName {
|
||||
return ErrAccountInput
|
||||
}
|
||||
// 编辑资料和审核不会改变商务层级、归属、角色或密码。
|
||||
for _, field := range []struct {
|
||||
dst *string
|
||||
|
||||
Reference in New Issue
Block a user