可以重置用户实名认证状态

This commit is contained in:
刘祥超
2022-07-24 10:08:08 +08:00
parent c2600b911b
commit 19867568a9
2 changed files with 26 additions and 0 deletions

View File

@@ -132,6 +132,15 @@ func (this *UserIdentityDAO) CancelUserIdentity(tx *dbs.Tx, identityId int64) er
UpdateQuickly()
}
// ResetUserIdentity 重置实名认证状态
func (this *UserIdentityDAO) ResetUserIdentity(tx *dbs.Tx, identityId int64) error {
return this.Query(tx).
Pk(identityId).
Set("status", userconfigs.UserIdentityStatusSubmitted).
Set("updatedAt", time.Now().Unix()).
UpdateQuickly()
}
// RejectUserIdentity 拒绝
func (this *UserIdentityDAO) RejectUserIdentity(tx *dbs.Tx, identityId int64, reason string) error {
return this.Query(tx).