|
@@ -5,7 +5,9 @@ import com.sqx.common.utils.Result;
|
|
|
import com.sqx.modules.app.annotation.Login;
|
|
|
import com.sqx.modules.creditRecord.entity.CreditRecord;
|
|
|
import com.sqx.modules.creditRecord.service.CreditRecordService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestAttribute;
|
|
@@ -18,6 +20,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @since 2023-05-17
|
|
|
*/
|
|
|
@RestController
|
|
|
+@Api(value = "信用分记录", tags = {"信用分记录"})
|
|
|
@RequestMapping("/app/creditRecord/")
|
|
|
public class AppCreditRecordController {
|
|
|
|
|
@@ -34,7 +37,7 @@ public class AppCreditRecordController {
|
|
|
*/
|
|
|
@Login
|
|
|
@GetMapping("getCreditRecordList")
|
|
|
- @ApiModelProperty("获取信用分记录")
|
|
|
+ @ApiOperation("获取信用分记录")
|
|
|
public Result getCreditRecordList(@RequestAttribute("userId")Long userId, Integer page, Integer limit, CreditRecord creditRecord) {
|
|
|
creditRecord.setRiderUserId(userId);
|
|
|
return Result.success().put("data", recordService.getCreditRecordList(page, limit, creditRecord));
|