Browse Source

打log

tags/v1.9.0
wanghaoran 1 year ago
parent
commit
312ce165b9
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      tuoheng-api/src/main/java/com/tuoheng/api/controller/WxController.java

+ 6
- 0
tuoheng-api/src/main/java/com/tuoheng/api/controller/WxController.java View File

@@ -1,9 +1,12 @@
package com.tuoheng.api.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.tuoheng.api.entity.request.WxGetUserPointsQuery;
import com.tuoheng.api.entity.request.WxSubUserPointsRequest;
import com.tuoheng.api.service.IWxService;
import com.tuoheng.common.utils.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -14,6 +17,7 @@ import org.springframework.web.bind.annotation.*;
* @author WangHaoran
* @since 2022-09-06
*/
@Slf4j
@RestController
@RequestMapping("/wx")
public class WxController {
@@ -53,6 +57,7 @@ public class WxController {
*/
@PostMapping("/subUserPoints")
public JsonResult subUserPoints(@Validated @RequestBody WxSubUserPointsRequest wxSubUserPointsRequest) {
log.info("消减用户积分接口入参:" + JSON.toJSONString(wxSubUserPointsRequest));
return wxService.subUserPoints(wxSubUserPointsRequest);
}

@@ -63,6 +68,7 @@ public class WxController {
*/
@PostMapping("/addUserPoints")
public JsonResult addUserPoints(@Validated @RequestBody WxSubUserPointsRequest wxSubUserPointsRequest) {
log.info("增加用户积分接口入参:" + JSON.toJSONString(wxSubUserPointsRequest));
return wxService.addUserPoints(wxSubUserPointsRequest);
}


Loading…
Cancel
Save