From a31bd89a95561b079c0ab50e16b17a3c1e1036a4 Mon Sep 17 00:00:00 2001 From: shiran Date: Tue, 14 Jul 2026 10:30:02 +0800 Subject: [PATCH] feat: add signature application extended fields Co-authored-by: Cursor --- types.go | 66 +++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 22 deletions(-) diff --git a/types.go b/types.go index 7681333..9b90b5a 100644 --- a/types.go +++ b/types.go @@ -53,34 +53,56 @@ const ( // SmsSignature 短信签名。Status: 0=草稿 1=审核中 2=已通过 3=已驳回 type SmsSignature struct { GormModel - UserID uint `json:"user_id"` - Title string `json:"title"` - ApplicantName string `json:"applicant_name"` - ApplicantIDCard string `json:"applicant_id_card"` - ApplicantCompany string `json:"applicant_company"` - LicenseURL string `json:"license_url"` - Status int8 `json:"status"` - RejectReason string `json:"reject_reason"` - ReviewedBy *uint `json:"reviewed_by"` - ReviewedAt *time.Time `json:"reviewed_at"` + UserID uint `json:"user_id"` + Title string `json:"title"` + ApplicantName string `json:"applicant_name"` + ApplicantIDCard string `json:"applicant_id_card"` + ApplicantCompany string `json:"applicant_company"` + LicenseURL string `json:"license_url"` + CreditCode string `json:"credit_code"` + LegalPersonName string `json:"legal_person_name"` + LegalPersonPhone string `json:"legal_person_phone"` + LegalPersonIDCard string `json:"legal_person_id_card"` + AgentPhone string `json:"agent_phone"` + AgentIDCardFrontURL string `json:"agent_id_card_front_url"` + AgentIDCardBackURL string `json:"agent_id_card_back_url"` + ApplicationFileURL string `json:"application_file_url"` + Status int8 `json:"status"` + RejectReason string `json:"reject_reason"` + ReviewedBy *uint `json:"reviewed_by"` + ReviewedAt *time.Time `json:"reviewed_at"` } type AdminCreateSignatureReq struct { - UserID uint `json:"user_id"` - Title string `json:"title"` - ApplicantName string `json:"applicant_name"` - ApplicantIDCard string `json:"applicant_id_card,omitempty"` - ApplicantCompany string `json:"applicant_company,omitempty"` - LicenseURL string `json:"license_url,omitempty"` + UserID uint `json:"user_id"` + Title string `json:"title"` + ApplicantName string `json:"applicant_name"` + ApplicantIDCard string `json:"applicant_id_card,omitempty"` + ApplicantCompany string `json:"applicant_company,omitempty"` + LicenseURL string `json:"license_url,omitempty"` + CreditCode string `json:"credit_code,omitempty"` + LegalPersonName string `json:"legal_person_name,omitempty"` + LegalPersonPhone string `json:"legal_person_phone,omitempty"` + LegalPersonIDCard string `json:"legal_person_id_card,omitempty"` + AgentPhone string `json:"agent_phone,omitempty"` + AgentIDCardFrontURL string `json:"agent_id_card_front_url,omitempty"` + AgentIDCardBackURL string `json:"agent_id_card_back_url,omitempty"` } type AdminUpdateSignatureReq struct { - Title string `json:"title,omitempty"` - ApplicantName string `json:"applicant_name,omitempty"` - ApplicantIDCard string `json:"applicant_id_card,omitempty"` - ApplicantCompany string `json:"applicant_company,omitempty"` - LicenseURL string `json:"license_url,omitempty"` - Status *int8 `json:"status,omitempty"` + Title string `json:"title,omitempty"` + ApplicantName string `json:"applicant_name,omitempty"` + ApplicantIDCard string `json:"applicant_id_card,omitempty"` + ApplicantCompany string `json:"applicant_company,omitempty"` + LicenseURL string `json:"license_url,omitempty"` + CreditCode *string `json:"credit_code,omitempty"` + LegalPersonName *string `json:"legal_person_name,omitempty"` + LegalPersonPhone *string `json:"legal_person_phone,omitempty"` + LegalPersonIDCard *string `json:"legal_person_id_card,omitempty"` + AgentPhone *string `json:"agent_phone,omitempty"` + AgentIDCardFrontURL *string `json:"agent_id_card_front_url,omitempty"` + AgentIDCardBackURL *string `json:"agent_id_card_back_url,omitempty"` + Status *int8 `json:"status,omitempty"` } type RejectReq struct {