package com.chushang.system.feign;

import com.chushang.common.core.constant.SecurityConstants;
import com.chushang.common.core.web.Result;
import com.chushang.security.entity.vo.LoginUser;
import com.chushang.system.constants.SystemConstants;
import com.chushang.system.entity.dto.UserQcCodeDTO;
import com.chushang.system.entity.po.SysLoginInfo;
import com.chushang.system.entity.po.SysUserQcCode;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * by zhaowenyuan create 2022/5/20 10:05
 */
@FeignClient(contextId = "remoteUserqcCodeService",
        value = SystemConstants.SYSTEM_SERVICE,
        path = SystemConstants.APPLICATION_CONTENT_PATH + "/qc"
)
public interface RemoteUserQcCodeService {

    /**
     * 通过用户id查询用户二维码信息
     *
     * @param userQcCodeDTO 用户id
     * @return 结果
     */
    @PostMapping("/qccode/query")
    Result<SysUserQcCode> getUserInfo(@RequestBody UserQcCodeDTO userQcCodeDTO);


    @PostMapping("/save/qccode")
    Result<Integer> save(@RequestBody UserQcCodeDTO userQcCodeDTO);

}
