IndividualController.java 1.01 KB
package cn.com.glsx.app.modules.controller;

import cn.com.glsx.app.modules.model.param.UpdateWxUserInfoBO;
import cn.com.glsx.app.modules.service.UserService;
import com.glsx.plat.core.web.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping(value = "/individual")
@Api(value = "我的", tags = {"我的"})
public class IndividualController {

    @Autowired
    private UserService userService;

    @ApiOperation("更新微信资料")
    @PostMapping("/updateWxUserInfo")
    public R operate(@RequestBody UpdateWxUserInfoBO userInfoBO) {
        userService.updateWxUserInfo(userInfoBO);
        return R.ok();
    }

}