12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- package com.fdkankan.manage.controller.h5;
- import com.fdkankan.manage.common.ResultData;
- import com.fdkankan.manage.controller.BaseController;
- import com.fdkankan.manage.entity.Feedback;
- import com.fdkankan.manage.service.IFeedbackOptionService;
- import com.fdkankan.manage.service.IFeedbackService;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- /**
- * <p>
- * 前端控制器
- * </p>
- *
- * @author
- * @since 2024-01-24
- */
- @RestController
- @RequestMapping("/service/manage/feedback/h5")
- public class FeedbackH5Controller extends BaseController {
- @Autowired
- IFeedbackService feedbackService;
- @Autowired
- IFeedbackOptionService feedbackOptionService;
- @PostMapping("/add")
- public ResultData add(@RequestBody Feedback param){
- feedbackService.save(param);
- return ResultData.ok();
- }
- @GetMapping("/getDefaultAddress")
- public ResultData getDefaultAddress(){
- return ResultData.ok(feedbackService.getDefaultAddress(request));
- }
- @GetMapping("/getAllByTypeId/{typeId}")
- public ResultData getAllByTypeId(@PathVariable Integer typeId){
- return ResultData.ok(feedbackOptionService.getAllByTypeId(typeId));
- }
- }
|