账户条款查询api
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.zt.plat.module.api;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.module.api.dto.AccountRespDto;
|
||||
import com.zt.plat.module.base.enums.ApiConstants;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.Valid;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@FeignClient(name = ApiConstants.NAME)
|
||||
@Tag(name = "RPC 服务 - base")
|
||||
public interface BaseApi {
|
||||
|
||||
String PREFIX = ApiConstants.PREFIX + "/base";
|
||||
|
||||
@GetMapping(PREFIX + "/getNoPage")
|
||||
@Operation(summary = "数据查询")
|
||||
List<AccountRespDto> getNoPage(@Valid AccountRespDto respVO);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.zt.plat.module.api.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "RPC 服务 DTO")
|
||||
@Data
|
||||
public class AccountRespDto {
|
||||
private Long id;
|
||||
|
||||
private String type;
|
||||
|
||||
private String accountName;
|
||||
|
||||
private String bankAccount;
|
||||
|
||||
private String accountNumber;
|
||||
|
||||
private String taxNumber;
|
||||
|
||||
private LocalDateTime createTime;
|
||||
|
||||
private String isEnable;
|
||||
|
||||
private String customerNumber;
|
||||
|
||||
private String customerName;
|
||||
|
||||
private String address;
|
||||
|
||||
private String phone;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.zt.plat.module.base.enums;
|
||||
|
||||
import com.zt.plat.framework.common.enums.RpcConstants;
|
||||
|
||||
/**
|
||||
* API 相关的枚举
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
public class ApiConstants {
|
||||
|
||||
/**
|
||||
* 服务名
|
||||
*
|
||||
* 注意,需要保证和 spring.application.name 保持一致
|
||||
*/
|
||||
public static final String NAME = "base-server";
|
||||
|
||||
public static final String PREFIX = RpcConstants.RPC_API_PREFIX + "/base";
|
||||
|
||||
public static final String VERSION = "1.0.0";
|
||||
|
||||
public static final String TABLE_FIELD_SPLY_ERP_CPN_NUM = "NUM";
|
||||
}
|
||||
Reference in New Issue
Block a user