Files
cms-server/internal/kyc/types.go
Asai Neko 0ac96ab3e6
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished
Add service_kyc
Signed-off-by: Asai Neko <sugar@sne.moe>
2026-02-01 13:15:17 +08:00

51 lines
1.3 KiB
Go

package kyc
type CNRidInfo struct {
LegalName string `json:"legal_name"`
ResidentId string `json:"resident_id"`
}
type PassportInfo struct {
ID string `json:"id"`
}
type PassportResp struct {
GivenNames string `json:"given_names"`
Surname string `json:"surname"`
Nationality string `json:"nationality"`
DateOfBirth string `json:"date_of_birth"`
DocumentType string `json:"document_type"`
DocumentNumber string `json:"document_number"`
ExpiryDate string `json:"expiry_date"`
}
type AliCloudAuth struct {
ParamType string `json:"param_type"`
IdentifyNum string `json:"identify_num"`
UserName string `json:"user_name"`
}
type PassportReaderSessionResponse struct {
ID int `json:"id"`
Token string `json:"token"`
}
type PassportReaderGetSessionRequest struct {
ID int `json:"id"`
}
type PassportReaderStateResponse struct {
State string `json:"state"`
}
type PassportReaderSessionDetailResponse struct {
State string `json:"state"`
GivenNames string `json:"given_names"`
Surname string `json:"surname"`
Nationality string `json:"nationality"`
DateOfBirth string `json:"date_of_birth"`
DocumentType string `json:"document_type"`
DocumentNumber string `json:"document_number"`
ExpiryDate string `json:"expiry_date"`
}