f
This commit is contained in:
@@ -34,6 +34,25 @@ type OrgIdentityQuery struct {
|
||||
ClientCorpID string
|
||||
}
|
||||
|
||||
// CorpAuthStatusQuery 企业授权状态查询(法大大 /corp/get;e签宝可返回未授权)
|
||||
type CorpAuthStatusQuery struct {
|
||||
CorpIdentNo string // 统一社会信用代码
|
||||
ClientCorpID string // 应用内企业标识
|
||||
OpenCorpID string // 法大大 openCorpId
|
||||
}
|
||||
|
||||
// CorpAuthStatusResult 企业授权状态
|
||||
type CorpAuthStatusResult struct {
|
||||
Supported bool // 当前平台是否支持主动查询授权状态
|
||||
Found bool // 本应用下是否已有企业记录
|
||||
Authorized bool // bindingStatus=authorized
|
||||
Identified bool // identStatus=identified
|
||||
OpenCorpID string
|
||||
ClientCorpID string
|
||||
BindingStatus string
|
||||
IdentStatus string
|
||||
}
|
||||
|
||||
// ContractGenerateRequest 合同模板填单
|
||||
type ContractGenerateRequest struct {
|
||||
AgreementNo string
|
||||
@@ -121,6 +140,8 @@ type CallbackEvent struct {
|
||||
SignRejected bool
|
||||
SignFlowID string
|
||||
AuthFlowID string
|
||||
OpenCorpID string
|
||||
ClientCorpID string
|
||||
OrgName string
|
||||
Raw map[string]interface{}
|
||||
}
|
||||
@@ -131,6 +152,8 @@ type SignPlatformProvider interface {
|
||||
|
||||
GenerateEnterpriseAuth(ctx context.Context, req *EnterpriseAuthRequest) (*AuthLinkResult, error)
|
||||
QueryOrgVerified(ctx context.Context, req *OrgIdentityQuery) (bool, error)
|
||||
// QueryCorpAuthStatus 查询企业是否已对本应用完成授权绑定(法大大:/corp/get bindingStatus)
|
||||
QueryCorpAuthStatus(ctx context.Context, req *CorpAuthStatusQuery) (*CorpAuthStatusResult, error)
|
||||
|
||||
GenerateContractFile(ctx context.Context, req *ContractGenerateRequest) (*ContractFileResult, error)
|
||||
CreateSignFlow(ctx context.Context, req *SignFlowCreateRequest) (*SignFlowResult, error)
|
||||
|
||||
Reference in New Issue
Block a user