Beispiel #1
0
        public ResultDto Post([FromBody] RegisterDto registerDto)
        {
            LinUser user = _mapper.Map <LinUser>(registerDto);

            user.GroupId = LinConsts.Group.User;
            _userSevice.Register(user);

            return(ResultDto.Success("注册成功"));
        }
Beispiel #2
0
        public ResultDto Post([FromBody] CreateUserDto userInput)
        {
            _userSevice.Register(_mapper.Map <LinUser>(userInput));

            return(ResultDto.Success("用户创建成功"));
        }