Пример #1
0
        public IActionResult EditUserInfo([FromBody] EditUserInfoManageDto editUserInfoManageDto)
        {
            // 权限?
            var result = _userService.EditUserInfo(editUserInfoManageDto);

            if (result)
            {
                return(Ok(new ResponseBody()
                {
                    ResponseCode = ResponseCodeEnum.Success, ResponseMessage = "修改成功"
                }));
            }
            return(Ok(new ResponseBody()
            {
                ResponseCode = ResponseCodeEnum.Success, ResponseMessage = "修改失败"
            }));
        }
Пример #2
0
        public bool EditUserInfo(EditUserInfoManageDto editUserInfoManageDto)
        {
            string execSp = "cp_API_User_Management_EditUserInfo";

            return(_connection.Execute(execSp, new
            {
                editUserInfoManageDto.user_id,
                editUserInfoManageDto.password,
                editUserInfoManageDto.is_active,
                editUserInfoManageDto.user_level,
                editUserInfoManageDto.user_name,
                editUserInfoManageDto.email,
                editUserInfoManageDto.mobile,
                editUserInfoManageDto.telephone,
                editUserInfoManageDto.website,
                editUserInfoManageDto.country_id,
            }, null, null, commandType: CommandType.StoredProcedure) > 0 ? true : false);
        }
Пример #3
0
 public bool EditUserInfo(EditUserInfoManageDto editUserInfoManageDto)
 {
     return(_userRepository.EditUserInfo(editUserInfoManageDto));
 }