123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- package com.huimv.admin.cooperate.controller;
- import com.huimv.admin.common.utils.Result;
- import com.huimv.admin.cooperate.entity.CooperateEmployee;
- import com.huimv.admin.cooperate.service.ICooperateEmployeeService;
- import com.huimv.admin.farm.entity.FarmCheck;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.CrossOrigin;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.Map;
- /**
- * <p>
- * 合作共富助农就业 前端控制器
- * </p>
- *
- * @author author
- * @since 2024-08-21
- */
- @RestController
- @RequestMapping("/cooperate-employee")
- @CrossOrigin
- public class CooperateEmployeeController {
- @Autowired
- private ICooperateEmployeeService employeeService;
- @RequestMapping("/listPage")
- public Result listPage(@RequestBody Map<String, String> paramsMap) {
- return employeeService.listPage(paramsMap);
- }
- @RequestMapping("/add")
- public Result add(@RequestBody CooperateEmployee employee) {
- return employeeService.add(employee);
- }
- @RequestMapping("/edit")
- public Result edit(@RequestBody CooperateEmployee employee) {
- return employeeService.edit(employee);
- }
- @RequestMapping("/remove")
- public Result remove(@RequestBody Map<String, String> paramsMap) {
- return employeeService.remove(paramsMap);
- }
- }
|