|
@@ -12,14 +12,21 @@ type OrgCertParams struct {
|
|
|
|
|
|
|
|
// CompanyAuthStatus 法人单位认证状态查询结果。
|
|
// CompanyAuthStatus 法人单位认证状态查询结果。
|
|
|
type CompanyAuthStatus struct {
|
|
type CompanyAuthStatus struct {
|
|
|
- CompanyName string
|
|
|
|
|
- RegisterNo string
|
|
|
|
|
- LegalPerson string
|
|
|
|
|
- Charger string
|
|
|
|
|
- Mobile string
|
|
|
|
|
- AuthEndTime string
|
|
|
|
|
- Status string // result.status,AUTH_PASSED 表示认证成功
|
|
|
|
|
- Reason string
|
|
|
|
|
|
|
+ CompanyName string `json:"companyName"`
|
|
|
|
|
+ Mobile string `json:"mobile"`
|
|
|
|
|
+ RegisterNo string `json:"registerNo"`
|
|
|
|
|
+ Result CompanyAuthResult `json:"result"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// CompanyAuthResult 认证审核结果。
|
|
|
|
|
+type CompanyAuthResult struct {
|
|
|
|
|
+ Status string `json:"status"`
|
|
|
|
|
+ Reason string `json:"reason"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// AuthPassed 是否认证成功。
|
|
|
|
|
+func (s *CompanyAuthStatus) AuthPassed() bool {
|
|
|
|
|
+ return s.Result.Status == "AUTH_PASSED"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// CreateUserParams 在契约锁创建内部用户(医生等需个人签名的成员)。
|
|
// CreateUserParams 在契约锁创建内部用户(医生等需个人签名的成员)。
|