...
|
...
|
@@ -49,6 +49,9 @@ func (adminUserSrv AdminUserService) GetAdminUser(getAdminUserQuery *query.GetAd |
|
|
}
|
|
|
|
|
|
func (adminUserSrv AdminUserService) SaveAdminUser(saveUserCmd *command.SaveAdminUserCommand) (*domain.AdminUser, error) {
|
|
|
if err := saveUserCmd.ValidateCommand(); err != nil {
|
|
|
return nil, lib.ThrowError(lib.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
//实际业务
|
|
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
if err != nil {
|
...
|
...
|
@@ -192,6 +195,9 @@ func (adminUserSrv AdminUserService) PageListAdminUser(listAdminUserQuery *query |
|
|
}
|
|
|
|
|
|
func (adminUserSrv AdminUserService) UpdateAdminPassword(updatecmd command.UpdateAdminUserPwdCommand) error {
|
|
|
if err := updatecmd.ValidateCommand(); err != nil {
|
|
|
return lib.ThrowError(lib.ARG_ERROR, err.Error())
|
|
|
}
|
|
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
if err != nil {
|
|
|
return lib.ThrowError(lib.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
|