package com.thhy.materials.modules.biz.materials.controller; import com.thhy.general.common.BasicResult; import com.thhy.materials.modules.biz.materials.service.SysAssistGoodService; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import javax.servlet.http.HttpServletResponse; import java.util.Map; @RestController @RequestMapping("/assist") public class SysAssistGoodController { @Resource private SysAssistGoodService assistGoodService; //添加 @PostMapping("/assistInsert") public BasicResult assistInsert(@RequestBody Map values){ return assistGoodService.assistInsert(values); } //列表 @PostMapping("/assistList") public BasicResult assistList(@RequestBody Map values){ return assistGoodService.assistList(values); } //详情 @GetMapping("/assistInfo") public BasicResult assistInfo(@RequestParam String assistId){ return assistGoodService.assistInfo(assistId); } //删除 @GetMapping("/assistDel") public BasicResult assistDel(@RequestParam String assistId){ return assistGoodService.assistDel(assistId); } //修改 @PostMapping("/assistUpdate") public BasicResult assistUpdate(@RequestBody Map values){ return assistGoodService.assistUpdate(values); } //辅材-库存管理导出 @PostMapping("/assistExport") public void assistExport(@RequestBody Map values, HttpServletResponse response){ assistGoodService.assistExport(values,response); } }