parent
ff1ae38707
commit
685b582d04
@ -0,0 +1,13 @@ |
||||
package net.lensfrex.dscape.dto.request.user; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class PasswordModifyRequestBody { |
||||
@JsonProperty("old_password") |
||||
String oldPassword; |
||||
|
||||
@JsonProperty("new_password") |
||||
String newPassword; |
||||
} |
@ -0,0 +1,14 @@ |
||||
package net.lensfrex.dscape.dto.request.user; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty; |
||||
import lombok.Data; |
||||
|
||||
@Data |
||||
public class UserAddRequest { |
||||
@JsonProperty("user_name") |
||||
private String userName; |
||||
|
||||
private String password; |
||||
|
||||
private int role; |
||||
} |
@ -1,18 +0,0 @@ |
||||
/* |
||||
* Class created by lensfrex. |
||||
*/ |
||||
|
||||
package net.lensfrex.dscape.web.controllers; |
||||
|
||||
import org.springframework.web.bind.annotation.ControllerAdvice; |
||||
import org.springframework.web.bind.annotation.ExceptionHandler; |
||||
|
||||
@ControllerAdvice |
||||
public class Error extends AbstractMethodError { |
||||
|
||||
// @ExceptionHandler({ RuntimeException.class })
|
||||
// public Response error() {
|
||||
// return Response.error(50000, "服务器内部错误....");
|
||||
// }
|
||||
|
||||
} |
@ -1,12 +0,0 @@ |
||||
package net.lensfrex.dscape.web.controllers; |
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
@RestController |
||||
public class Index { |
||||
@RequestMapping("/") |
||||
public String index() { |
||||
return "Wow~~~~~~~~~~~~~~~~~~~~~~"; |
||||
} |
||||
} |
Loading…
Reference in new issue