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

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


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



Loading…
Cancel
Save