mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-04 13:46:37 +08:00
feat: v1.7.1新增支持sqlite&oracle分页限制等问题修复
This commit is contained in:
@@ -154,7 +154,11 @@ func (a *Account) ChangeStatus(rc *req.Ctx) {
|
||||
|
||||
account := &entity.Account{}
|
||||
account.Id = uint64(ginx.PathParamInt(g, "id"))
|
||||
account.Status = int8(ginx.PathParamInt(g, "status"))
|
||||
|
||||
status := entity.AccountStatus(int8(ginx.PathParamInt(g, "status")))
|
||||
biz.ErrIsNil(entity.AccountStatusEnum.Valid(status))
|
||||
account.Status = status
|
||||
|
||||
rc.ReqParam = collx.Kvs("accountId", account.Id, "status", account.Status)
|
||||
biz.ErrIsNil(a.AccountApp.Update(rc.MetaCtx, account))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user