package certification import ( "context" "tyapi-server/internal/application/certification/dto/commands" "tyapi-server/internal/application/certification/dto/queries" "tyapi-server/internal/application/certification/dto/responses" ) // CertificationApplicationService 认证应用服务接口 type CertificationApplicationService interface { // 认证状态查询 GetCertificationStatus(ctx context.Context, query *queries.GetCertificationStatusQuery) (*responses.CertificationResponse, error) GetCertificationDetails(ctx context.Context, query *queries.GetCertificationDetailsQuery) (*responses.CertificationResponse, error) GetCertificationProgress(ctx context.Context, userID string) (map[string]interface{}, error) // 企业信息管理 SubmitEnterpriseInfo(ctx context.Context, cmd *commands.SubmitEnterpriseInfoCommand) (*responses.CertificationResponse, error) // 企业认证 GetEnterpriseAuthURL(ctx context.Context, userID string) (*responses.EnterpriseAuthURLResponse, error) // 合同管理 ApplyContract(ctx context.Context, userID string) (*responses.CertificationResponse, error) GetContractSignURL(ctx context.Context, cmd *commands.GetContractSignURLCommand) (*responses.ContractSignURLResponse, error) } // EsignCallbackApplicationService e签宝回调应用服务接口 type EsignCallbackApplicationService interface { // 处理e签宝回调 HandleCallback(ctx context.Context, callbackData map[string]interface{}, headers map[string]string, queryParams map[string]string) error }