Commit aaceffd8 authored by 廖旭伟's avatar 廖旭伟

添加用户接口

parent ad402e34
......@@ -357,4 +357,17 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
return Rest.fail("初始化用户数据异常!");
}
}
@PostMapping(value = "gust")
@UnAuth
public Rest<String> guestUser(@RequestBody UserEntity user) {
try {
service.save(user);
return Rest.ok("添加用户成功!");
} catch (Exception e) {
log.error("添加用户错误", e);
return Rest.fail("添加用户异常!");
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment