Compare commits
No commits in common. "1387938b75e88205cfa82aaba4b43791aa74aaeb" and "83ca6b61559d0a1d34880bfc704df011770401be" have entirely different histories.
1387938b75
...
83ca6b6155
@ -18,12 +18,6 @@ import javax.annotation.PostConstruct;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
/**
|
|
||||||
* 管理员操作控制器示例
|
|
||||||
* Create by callmeyan
|
|
||||||
* @module demo/point_sys_api/admin
|
|
||||||
* @folder demo/point_sys_api/api
|
|
||||||
*/
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("admin/user")
|
@RequestMapping("admin/user")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@ -46,13 +40,6 @@ public class UserAdminController {
|
|||||||
return userInfo;
|
return userInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户登录
|
|
||||||
* @status released
|
|
||||||
* @folder demo/point_sys_api/api/admin
|
|
||||||
* @param user
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@SneakyThrows
|
@SneakyThrows
|
||||||
@PostMapping("login")
|
@PostMapping("login")
|
||||||
public UserAdminInfo login(@Validated @RequestBody UserAdminInfo user) {
|
public UserAdminInfo login(@Validated @RequestBody UserAdminInfo user) {
|
||||||
|
@ -13,23 +13,11 @@ import java.io.Serializable;
|
|||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@Builder
|
@Builder
|
||||||
public class UserAdminInfo implements Serializable {
|
public class UserAdminInfo implements Serializable {
|
||||||
/**
|
|
||||||
* 用户编号
|
|
||||||
*/
|
|
||||||
private int id;
|
private int id;
|
||||||
/**
|
|
||||||
* 账号
|
|
||||||
*/
|
|
||||||
@NotEmpty(message = "账号不允许为空")
|
@NotEmpty(message = "账号不允许为空")
|
||||||
private String account;
|
private String account;
|
||||||
/**
|
|
||||||
* 密码
|
|
||||||
*/
|
|
||||||
@NotEmpty(message = "密码不允许为空")
|
@NotEmpty(message = "密码不允许为空")
|
||||||
private String password;
|
private String password;
|
||||||
/**
|
|
||||||
* 登录信息凭证
|
|
||||||
*/
|
|
||||||
private String token;
|
private String token;
|
||||||
public static UserAdminInfo create(int id,String acc,String pwd){
|
public static UserAdminInfo create(int id,String acc,String pwd){
|
||||||
return new UserAdminInfo(id,acc,pwd,null);
|
return new UserAdminInfo(id,acc,pwd,null);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user