mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-08 10:14:03 +08:00
优化
This commit is contained in:
parent
8b774666f2
commit
cdd144dbed
@ -20,13 +20,13 @@ public class AppConfigController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private AppConfigService configService;
|
private AppConfigService configService;
|
||||||
|
|
||||||
@GetMapping("/index")
|
@GetMapping("/")
|
||||||
public JsonResponse index() {
|
public JsonResponse index() {
|
||||||
List<AppConfig> configs = configService.allShow();
|
List<AppConfig> configs = configService.allShow();
|
||||||
return JsonResponse.data(configs);
|
return JsonResponse.data(configs);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/index")
|
@PutMapping("/")
|
||||||
public JsonResponse save(@RequestBody AppConfigRequest req) {
|
public JsonResponse save(@RequestBody AppConfigRequest req) {
|
||||||
configService.saveFromMap(req.getData());
|
configService.saveFromMap(req.getData());
|
||||||
return JsonResponse.data(null);
|
return JsonResponse.data(null);
|
||||||
|
@ -34,7 +34,6 @@ public class UserRequest {
|
|||||||
private String avatar;
|
private String avatar;
|
||||||
|
|
||||||
@NotNull(message = "password参数不存在")
|
@NotNull(message = "password参数不存在")
|
||||||
@Length(min = 6, max = 16, message = "密码长度在6-16个字符之间")
|
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
@JsonProperty("id_card")
|
@JsonProperty("id_card")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user