package com.template.api;

import com.template.model.result.CommonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping("/api/wxGzh")
public interface WxGzhControllerAPI {

    @GetMapping(value = "getWxGzhOpenid")
    @ApiOperation(value = "通过微信公众号的code获取openid", notes = "通过微信公众号的code获取openid", httpMethod = "GET")
    CommonResult getWxGzhOpenid(@RequestParam String code) throws Exception;


    @GetMapping(value = "/vertifyMessage")
    @ApiOperation(value = "通过手机号绑定公众号openId", notes = "通过手机号绑定公众号openId", httpMethod = "GET")
    CommonResult vertifyMessage(@RequestParam String phone,@RequestParam String code,@RequestParam String wxGzhCode);


    @GetMapping(value = "/unbinding")
    @ApiOperation(value = "通过手机号解绑", notes = "通过手机号解绑", httpMethod = "GET")
    CommonResult unbinding(@RequestParam String phone);
}
