package com.xiaopeng.operation.controller; import com.xiaopeng.api.model.operation.XpFeedbackType; import com.xiaopeng.common.core.domain.R; import com.xiaopeng.operation.service.IXpFeedbackTypeService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** *

* 意见反馈类型表 前端控制器 *

* * @author mitao * @since 2026-02-03 */ @Slf4j @RestController @RequestMapping("/base/v1/mini-program") @Api(tags = "意见反馈类型") public class XpFeedbackTypeController { private final IXpFeedbackTypeService xpFeedbackTypeService; public XpFeedbackTypeController(IXpFeedbackTypeService xpFeedbackTypeService) { this.xpFeedbackTypeService = xpFeedbackTypeService; } /** * 获取反馈类型 * @return */ @GetMapping("/getFeedbackTypeById/{id}") public R getFeedbackTypeById(@PathVariable("id")Long id){ return R.ok(xpFeedbackTypeService.getById(id)); } @GetMapping("/feedback-type/getList") @ApiOperation(value = "获取意见反馈类型列表",tags = {"意见反馈类型列表"},response = XpFeedbackType.class) public R> getList() { List list = xpFeedbackTypeService.list(); return R.ok(list); } }