package com.njcn.rdms.module.system.api.user;

import com.njcn.rdms.framework.common.pojo.CommonResult;
import com.njcn.rdms.module.system.api.user.dto.UserSignatureRespDTO;
import com.njcn.rdms.module.system.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 用户电子签名")
public interface UserSignatureApi {

    String PREFIX = ApiConstants.PREFIX + "/user-signature";

    @GetMapping(PREFIX + "/get")
    @Operation(summary = "根据用户 ID 查询电子签名")
    @Parameter(name = "userId", description = "用户 ID", required = true)
    CommonResult<UserSignatureRespDTO> getByUserId(@RequestParam("userId") Long userId);
}
