package com.dk.mdm.feign;


import com.dk.common.infrastructure.constant.Constant;
import com.dk.common.response.ResponseResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author : 姜永辉
 * @desc : OauthServerFeign
 * @date : 2024-038-10 10:56
 */
@FeignClient(name = Constant.OAUTH_PREFIX + Constant.SERVER  , path = "/oauth/wx", contextId = "user")
public interface UserFeign {
    /**
     * @desc   : 注册-创建员工的时候保存微信用户信息
     * @author : 姜永辉
     * @date   : 2023-11-02 16:27
     */
    @PostMapping({"/register_feign"})
    ResponseResultVO<?> registerFeign(@RequestBody Map<String, Object> collectQuery) ;


    /**
     * @desc   : 离职时候更新 用户的openid current_cp  , "joined_cps"   缩减相应的cpid
     * @author : 姜永辉
     * @date   : 2023-11-02 16:27
     */
    @PostMapping({"/update_clear_openid_feign"})
    ResponseResultVO<?> updateClearOpenidFeign(@RequestBody Map<String, Object> collectQuery) ;

}
