mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
package com.jsowell.web.controller.pile;
|
||||
|
||||
import com.jsowell.common.annotation.Log;
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.common.core.domain.AjaxResult;
|
||||
import com.jsowell.common.core.page.TableDataInfo;
|
||||
import com.jsowell.common.enums.BusinessType;
|
||||
import com.jsowell.pile.dto.MemberFeedbackDTO;
|
||||
import com.jsowell.pile.dto.QueryMemberFeedbackDTO;
|
||||
import com.jsowell.pile.service.MemberFeedbackService;
|
||||
import com.jsowell.pile.vo.uniapp.customer.MemberFeedbackVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 会员反馈信息Controller
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-10-12
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/member/feedback")
|
||||
public class MemberFeedbackController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private MemberFeedbackService memberFeedbackService;
|
||||
|
||||
/**
|
||||
* 分页查询会员反馈列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:feedback:list')")
|
||||
@PostMapping("/list")
|
||||
public TableDataInfo list(@RequestBody QueryMemberFeedbackDTO dto) {
|
||||
List<MemberFeedbackVO> list = memberFeedbackService.selectFeedbackList(dto);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据ID获取反馈详情
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:feedback:query')")
|
||||
@GetMapping("/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
MemberFeedbackVO feedback = memberFeedbackService.getFeedbackById(id);
|
||||
return AjaxResult.success(feedback);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改反馈内容(回复)
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:feedback:edit')")
|
||||
@Log(title = "修改会员反馈", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/edit")
|
||||
public AjaxResult edit(@RequestBody QueryMemberFeedbackDTO dto) {
|
||||
memberFeedbackService.updateFeedback(dto);
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除反馈信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('member:feedback:remove')")
|
||||
@Log(title = "删除会员反馈", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping
|
||||
public AjaxResult remove(@RequestParam List<Long> ids) {
|
||||
memberFeedbackService.deleteFeedbackByIds(ids);
|
||||
return AjaxResult.success();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user