ft

package module
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 24 Imported by: 2

README

ft

编译状态 Golang质量 版本 仓库大小 最后提交 授权协议 语言个数 最佳语言 星星个数

信易贷52号文相关接口Golang版本

捐助

支持宝 微信

感谢Jetbrains

本项目通过Jetbrains开源许可IDE编写源代码,特此感谢 Jetbrains图标

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addr added in v0.0.3

func Addr(addr string) *optionAddr

Addr 地址

func App

func App(id string, key string, secret string) *optionApp

App 应用

func Http

func Http(http *resty.Client) *optionHttp

Http Http客户端

func Iv added in v0.0.3

func Iv(iv string) *optionIv

Iv 插值

func Logger

func Logger(logger simaqian.Logger) *optionLogger

Logger 应用

func NewNewOptions added in v0.0.2

func NewNewOptions(opts ...newOption) []newOption

NewNewOptions 创建选项

func NewOptions added in v0.0.2

func NewOptions(opts ...option) []option

NewOptions 创建选项

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client 客户端

func New

func New(opts ...newOption) (client *Client, err error)

New 创建客户端

func (*Client) Enterprise added in v0.0.6

func (c *Client) Enterprise(req *EnterpriseUploadReq, opts ...option) error

func (*Client) PublicKey

func (c *Client) PublicKey(opts ...option) (key string, err error)

func (*Client) Token

func (c *Client) Token(opts ...option) (token string, err error)

func (*Client) Upload

func (c *Client) Upload(license string, req *LicenseUploadReq, opts ...option) (rsp *LicenseUploadRsp, err error)

type EnterpriseUploadReq added in v0.0.6

type EnterpriseUploadReq struct {
	// 地方平台编码
	PlatformId int64 `json:"platformId"`
	// 统一社会信用代码
	Code string `json:"uniscId"`
	// 企业名称
	Name string `json:"enterpriseName"`
	// 是否实名认证
	RealNameCertification string `json:"realNameCertification"`
	// 实名认证人姓名
	OperatorName string `json:"operatorName"`
	// 实名认证人身份
	OperatorIdentity string `json:"operatorIdentity"`
	// 实名认证人身份证号
	OperatorIdCardNo string `json:"operatorIdCardNo"`
	// 是否通过平台获得贷款
	Loaned string `json:"loaned"`
	// 营业执照住所
	Address string `json:"address"`
	// 企业所属行业
	Industry string `json:"industry"`
	// 企业所在省
	Province string `json:"province"`
	// 企业所在市
	City string `json:"city"`
	// 企业所在区
	Area string `json:"area"`
	// 注册资本,单位万元
	RegisteredCapital int64 `json:"registeredCapital"`
	// 经营范围
	BusinessScope string `json:"businessScope"`
	// 经营期限类型
	OperatingTimeLimitType string `json:"operatingTimeLimitType"`
	// 营业期限开始日期
	OperatingTimeLimitDateBegin string `json:"operatingTimeLimitDateBegin"`
	// 营业期限结束日期
	OperatingTimeLimitDateEnd string `json:"operatingTimeLimitDateEnd"`
	// 核准日期
	ApprovalDate string `json:"approvalDate"`
	// 入驻时间
	SettlingTime string `json:"settlingTime"`
	// 外部系统编号
	ExternalSystemId string `json:"externalSystemId"`
}

EnterpriseUploadReq 企业信息上传请求

type LicenseUploadReq

type LicenseUploadReq struct {
	// 企业名
	Name string `json:"enterpriseName"`
	// 统一代码
	Code string `json:"uniscId"`
	// 授权信息
	AuthorizedInfos string `json:"authorizedInfos"`
	// 授权码
	AuthorizedCode string `json:"authorizedOrgsCode"`
	// 平台
	PlatformId string `json:"platformId"`
	// 数量
	Count string `json:"count"`
	// 融资阶段
	LoanStage string `json:"loanStage"`
	// 文件类型
	FileType string `json:"licenseFileType"`
	// 电子签章供应商
	CaSupplier string `json:"caSupplier"`
	// 验证地址
	ValidateUrl string `json:"validateUrl"`
	// 开始时间
	AuthorizedStartTime string `json:"authorizedStartTime"`
	// 结束时间
	AuthorizedEndTime string `json:"authorizedEndTime"`
	// 授权文件摘要
	HashCode string `json:"hashCode"`
}

LicenseUploadReq 52号文授权协议上传请求

type LicenseUploadRsp

type LicenseUploadRsp struct {
	// 授权码
	LicenseId string `json:"licenseId"`
}

LicenseUploadRsp 52号文授权协议上传响应

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL