| | |
| | | import org.springframework.web.client.RestTemplate; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.Serializable; |
| | | import java.sql.Array; |
| | | import java.util.*; |
| | | import java.util.function.Function; |
| | |
| | | return R.ok(publicityList); |
| | | } |
| | | |
| | | @GetMapping("/publicity/{id}") |
| | | @ApiOperation("通过主键查询单条数据") |
| | | public R<Publicity> selectOne(@PathVariable Serializable id) { |
| | | return R.ok(publicityService.getById(id)); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "POST", value = "群公告添加") |
| | | @PostMapping("/announcement/add") |
| | | public R insert(@RequestParam(value = "groupId") Integer groupId, @RequestParam String announcement) { |