| | |
| | | import com.fgkj.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | private AnnounceService service; |
| | | |
| | | //接收前台传入的数据 |
| | | private Announce anno; |
| | | // private Announce anno; |
| | | |
| | | //0.6公告信息显示 |
| | | @GetMapping("all") |
| | |
| | | //发布新公告 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "KEY announce_time VALUE 2018/7/7 11:11:00",value="发布新公告") |
| | | public ServiceModel add(@RequestParam Date announce_time, @RequestParam String message, @RequestParam String note) { |
| | | public ServiceModel add(@ApiParam(value = "时间 格式 2018/7/7 11:11:00" ,required = true)@RequestParam Date announce_time, |
| | | @ApiParam(value = "消息" ,required = true)@RequestParam String message, |
| | | @ApiParam(value = "备注" ,required = true)@RequestParam String note) { |
| | | Announce a= new Announce(); |
| | | a.setAnnounce_time(announce_time); |
| | | a.setMessage(message); |