| | |
| | | } |
| | | |
| | | @PostMapping |
| | | public RestResponse add(@Validated StudyTypeVO query) { |
| | | public RestResponse add(@Validated @RequestBody StudyTypeVO query) { |
| | | return studyTypeService.add(query); |
| | | } |
| | | |
| | | @PostMapping("/edit") |
| | | public RestResponse update(@Validated StudyTypeVO query) { |
| | | public RestResponse update(@Validated @RequestBody StudyTypeVO query) { |
| | | return studyTypeService.update(query); |
| | | } |
| | | |
| | |
| | | package com.mindskip.xzs.domain.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | |
| | | @NotNull(message = "请输入排序值") |
| | | private Integer orderNum; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | } |