package com.cftech.member.web;

import com.alibaba.fastjson.JSONObject;
import com.cftech.member.model.MemberVO;
import com.cftech.member.service.MemberService;
import com.sun.xml.bind.v2.model.core.ID;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：licc
 * @date ：Created in 2020/10/19 14:16
 * @description： 个人信息修改
 */
@Slf4j
@RestController
@RequestMapping("mobile/auth/member")
public class MobileMemberController {
    @Autowired
    private MemberService memberService;
   /**
    * @Author Licc
    * @Description  个人信息数据回填
    * @Date 14:27 2020/10/19
    * @Param
    * @return
    **/
    @RequestMapping(value = "/memberFormation",method = {RequestMethod.POST},produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public JSONObject memberFormation(Long id){

     return  memberService.memberFormation(id);
    }
    @RequestMapping(value = "/updateMember",method = {RequestMethod.GET,RequestMethod.POST},produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public JSONObject updateMember(MemberVO memberVO){
        return memberService.updateMember(memberVO);
    }
}
