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