|
@@ -7,14 +7,12 @@ import com.keao.edu.common.controller.BaseController;
|
|
|
import com.keao.edu.common.entity.HttpResponseResult;
|
|
|
import com.keao.edu.common.page.PageInfo;
|
|
|
import com.keao.edu.common.tenant.TenantContextHolder;
|
|
|
-import com.keao.edu.user.config.RabbitConfig;
|
|
|
import com.keao.edu.user.entity.Employee;
|
|
|
import com.keao.edu.user.page.EmployeeQueryInfo;
|
|
|
import com.keao.edu.user.service.EmployeeService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -28,8 +26,6 @@ public class EmployeeController extends BaseController {
|
|
|
private EmployeeService employeeService;
|
|
|
@Autowired
|
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
- @Autowired
|
|
|
- private RabbitTemplate rabbitTemplate;
|
|
|
|
|
|
@ApiOperation("员工服务分页查询")
|
|
|
@GetMapping(value = "/list")
|
|
@@ -91,13 +87,4 @@ public class EmployeeController extends BaseController {
|
|
|
employeeService.del(id);
|
|
|
return succeed();
|
|
|
}
|
|
|
-
|
|
|
- @ApiOperation("删除")
|
|
|
- @PostMapping(value = "/sendMsg")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('employee/sendMsg')")
|
|
|
- public HttpResponseResult sendMsg() {
|
|
|
- rabbitTemplate.convertAndSend(RabbitConfig.ITEM_TOPIC_EXCHANGE ,"item.springboot-rabbitmq" ,"springboot-rabbitmq-producer");
|
|
|
- return succeed();
|
|
|
- }
|
|
|
-
|
|
|
}
|