|
@@ -39,7 +39,6 @@ public class EventController {
|
|
|
|
|
|
@Operation(summary = "查询事件")
|
|
|
@PostMapping("/queryEvent")
|
|
|
- @checkAuth(FunId = "xiaoshi/event/search")
|
|
|
public Response queryEvent(@RequestBody StringRequest stringRequest) throws Exception {
|
|
|
Business business = businessFactory.getClass("eventService");
|
|
|
Records records = (Records) business.queryMessage(stringRequest);
|
|
@@ -49,7 +48,6 @@ public class EventController {
|
|
|
|
|
|
@Operation(summary = "添加事件")
|
|
|
@PostMapping("/addEvent")
|
|
|
- @checkAuth(FunId = "xiaoshi/event/add")
|
|
|
public Response addEvent(String event, List<MultipartFile> files) throws Exception {
|
|
|
if (event != null) {
|
|
|
EventDTO eventDTO = JSONObject.parseObject(event, EventDTO.class);
|
|
@@ -74,7 +72,6 @@ public class EventController {
|
|
|
|
|
|
@Operation(summary = "更新事件")
|
|
|
@PostMapping("/updateEvent")
|
|
|
- @checkAuth(FunId = "xiaoshi/event/edit")
|
|
|
public Response updateEvent(String event, List<MultipartFile> files) throws Exception {
|
|
|
if (event != null) {
|
|
|
UpdateEventDTO updateEventDTO = JSONObject.parseObject(event, UpdateEventDTO.class);
|
|
@@ -89,7 +86,6 @@ public class EventController {
|
|
|
|
|
|
@Operation(summary = "删除事件")
|
|
|
@PostMapping("/deleteEvent")
|
|
|
- @checkAuth(FunId = "xiaoshi/event/delete")
|
|
|
public String deleteEvent(@RequestBody List<Integer> ids) throws Exception {
|
|
|
Business business = businessFactory.getClass("eventService");
|
|
|
business.deleteMessage(ids);
|
|
@@ -98,7 +94,6 @@ public class EventController {
|
|
|
|
|
|
@Operation(summary = "分组事件")
|
|
|
@PostMapping("/groupEvent")
|
|
|
- @checkAuth(FunId = "xiaoshi/event/group")
|
|
|
public Response groupEvent(@RequestBody StringGroupRequest stringGroupRequest) throws Exception {
|
|
|
Business business = businessFactory.getClass("eventService");
|
|
|
Records records = (Records)business.getGroup(stringGroupRequest,"event");
|