|
|
@@ -1,13 +1,16 @@
|
|
|
package com.dk.oauth.controller.integral;
|
|
|
|
|
|
-import com.dk.oauth.model.pojo.integral.Integral;
|
|
|
-import com.dk.common.controller.BaseController;
|
|
|
+import com.dk.common.model.pojo.PageList;
|
|
|
+import com.dk.common.response.ResponseResultVO;
|
|
|
import com.dk.common.service.BaseService;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
+import com.dk.oauth.model.pojo.integral.Integral;
|
|
|
+import com.dk.oauth.model.query.integral.IntegralQuery;
|
|
|
+import com.dk.oauth.model.response.integral.IntegralResponse;
|
|
|
import com.dk.oauth.service.integral.IntegralService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@Api(tags = "积分API接口")
|
|
|
@RestController
|
|
|
@@ -21,4 +24,27 @@ public class IntegralController{
|
|
|
@Autowired
|
|
|
private IntegralService integralService;
|
|
|
|
|
|
+ /**
|
|
|
+ * @desc : 条件查询
|
|
|
+ * @date : 2024/7/24 15:46
|
|
|
+ * @author : 寇珊珊
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "分页、关联、条件查询", notes = "分页、关联、条件查询")
|
|
|
+ @PostMapping({"list_by"})
|
|
|
+ public ResponseResultVO<PageList<IntegralResponse>> selectByCond(@RequestBody IntegralQuery integralQuery) {
|
|
|
+ return integralService.selectByCond(integralQuery);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 通过ID查询
|
|
|
+ * @date : 2024/7/24 15:48
|
|
|
+ * @author : 寇珊珊
|
|
|
+ */
|
|
|
+ @PostMapping({"/{id}"})
|
|
|
+ public ResponseResultVO<?> selectById(@PathVariable String id) {
|
|
|
+ return integralService.selectById(id);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|