Documentation
¶
Index ¶
- func Addr(addr string) *optionAddr
- func App(id string, key string, secret string) *optionApp
- func Http(http *resty.Client) *optionHttp
- func Iv(iv string) *optionIv
- func Logger(logger simaqian.Logger) *optionLogger
- func NewNewOptions(opts ...newOption) []newOption
- func NewOptions(opts ...option) []option
- type Client
- func (c *Client) Enterprise(req *EnterpriseUploadReq, opts ...option) error
- func (c *Client) PublicKey(opts ...option) (key string, err error)
- func (c *Client) Token(opts ...option) (token string, err error)
- func (c *Client) Upload(license string, req *LicenseUploadReq, opts ...option) (rsp *LicenseUploadRsp, err error)
- type EnterpriseUploadReq
- type LicenseUploadReq
- type LicenseUploadRsp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNewOptions ¶ added in v0.0.2
func NewNewOptions(opts ...newOption) []newOption
NewNewOptions 创建选项
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 客户端
func (*Client) Enterprise ¶ added in v0.0.6
func (c *Client) Enterprise(req *EnterpriseUploadReq, opts ...option) 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号文授权协议上传响应
Click to show internal directories.
Click to hide internal directories.

