package dto import ( "cid/model/entity" "gitea.com/red-future/common/beans" "github.com/gogf/gf/v2/frame/g" ) // AddAdvertiserReq 添加广告主请求 type AddAdvertiserReq struct { g.Meta `path:"/add" method:"post" tags:"广告主管理" summary:"添加广告主" dc:"添加新的广告主"` // 基本信息 Name string `json:"name" v:"required"` // 广告主名称 ContactName string `json:"contactName" v:"required"` // 联系人姓名 ContactPhone string `json:"contactPhone" v:"required"` // 联系电话 ContactEmail string `json:"contactEmail" v:"required"` // 联系邮箱 Company string `json:"company" v:"required"` // 公司名称 Industry string `json:"industry" v:"required"` // 所属行业 Scale string `json:"scale"` // 公司规模 // 证件信息 BusinessLicenseUrl string `json:"businessLicenseUrl" v:"required"` // 营业执照URL ICPLicenseUrl string `json:"icpLicenseUrl"` // ICP备案截图URL OtherLicenseUrls []string `json:"otherLicenseUrls"` // 其他证件URL // 财务信息 BankName string `json:"bankName" v:"required"` // 开户银行 BankAccount string `json:"bankAccount" v:"required"` // 银行账号 AccountName string `json:"accountName" v:"required"` // 账户名称 // 合同信息 ContractId string `json:"contractId"` // 合同编号 ContractType string `json:"contractType"` // 合同类型 ContractUrl string `json:"contractUrl"` // 合同文件URL SignDate int64 `json:"signDate"` // 签约日期 ExpireDate int64 `json:"expireDate"` // 到期日期 // 系统信息 AccountBalance int64 `json:"accountBalance"` // 账户余额(分) CreditLimit int64 `json:"creditLimit"` // 授信额度(分) Remark string `json:"remark"` // 备注 } type AddAdvertiserRes struct { Id string `json:"id"` } // UpdateAdvertiserReq 更新广告主请求 type UpdateAdvertiserReq struct { g.Meta `path:"/update" method:"put" tags:"广告主管理" summary:"更新广告主" dc:"更新广告主信息"` Id string `json:"id" v:"required"` // ID // 基本信息 Name string `json:"name"` // 广告主名称 ContactName string `json:"contactName"` // 联系人姓名 ContactPhone string `json:"contactPhone"` // 联系电话 ContactEmail string `json:"contactEmail"` // 联系邮箱 Company string `json:"company"` // 公司名称 Industry string `json:"industry"` // 所属行业 Scale string `json:"scale"` // 公司规模 // 证件信息 BusinessLicenseUrl string `json:"businessLicenseUrl"` // 营业执照URL ICPLicenseUrl string `json:"icpLicenseUrl"` // ICP备案截图URL OtherLicenseUrls []string `json:"otherLicenseUrls"` // 其他证件URL // 财务信息 BankName string `json:"bankName"` // 开户银行 BankAccount string `json:"bankAccount"` // 银行账号 AccountName string `json:"accountName"` // 账户名称 // 合同信息 ContractId string `json:"contractId"` // 合同编号 ContractType string `json:"contractType"` // 合同类型 ContractUrl string `json:"contractUrl"` // 合同文件URL SignDate *int64 `json:"signDate"` // 签约日期 ExpireDate *int64 `json:"expireDate"` // 到期日期 // 系统信息 AccountBalance *int64 `json:"accountBalance"` // 账户余额(分) CreditLimit *int64 `json:"creditLimit"` // 授信额度(分) Remark string `json:"remark"` // 备注 // 状态信息 Status *string `json:"status"` // 广告主状态:待审核、已审核、已拒绝、已冻结 AuditStatus *string `json:"auditStatus"` // 审核状态 AuditReason *string `json:"auditReason"` // 审核不通过原因 } // GetAdvertiserReq 获取广告主详情请求 type GetAdvertiserReq struct { g.Meta `path:"/getOne" method:"get" tags:"广告主管理" summary:"获取广告主详情" dc:"根据ID获取单个广告主详情"` Id string `json:"id" v:"required"` // ID } type GetAdvertiserRes struct { *entity.Advertiser } // ListAdvertiserReq 获取广告主列表请求 type ListAdvertiserReq struct { g.Meta `path:"/list" method:"get" tags:"广告主管理" summary:"获取广告主列表" dc:"分页查询广告主列表,支持多条件筛选"` *beans.Page Name string `json:"name"` // 广告主名称模糊查询 ContactName string `json:"contactName"` // 联系人模糊查询 Company string `json:"company"` // 公司名称模糊查询 Industry string `json:"industry"` // 所属行业 Status string `json:"status"` // 广告主状态 AuditStatus string `json:"auditStatus"` // 审核状态 DateRange []string `json:"dateRange"` // 创建时间范围 [start, end] } type ListAdvertiserRes struct { List []*entity.Advertiser `json:"list"` Total int `json:"total"` } // AuditAdvertiserReq 审核广告主请求 type AuditAdvertiserReq struct { g.Meta `path:"/audit" method:"post" tags:"广告主管理" summary:"审核广告主" dc:"审核广告主,通过或拒绝"` Id string `json:"id" v:"required"` // 广告主ID AuditStatus string `json:"auditStatus" v:"required"` // 审核状态:通过、拒绝 AuditReason string `json:"auditReason"` // 审核不通过原因 } // UpdateAdvertiserStatusReq 更新广告主状态请求 type UpdateAdvertiserStatusReq struct { g.Meta `path:"/updateStatus" method:"patch" tags:"广告主管理" summary:"更新广告主状态" dc:"更新广告主状态"` Id string `json:"id" v:"required"` // 广告主ID Status string `json:"status" v:"required"` // 广告主状态:启用、禁用、冻结 } // RechargeAdvertiserReq 广告主充值请求 type RechargeAdvertiserReq struct { g.Meta `path:"/recharge" method:"post" tags:"广告主管理" summary:"广告主充值" dc:"为广告主账户充值"` Id string `json:"id" v:"required"` // 广告主ID Amount int64 `json:"amount" v:"required"` // 充值金额(分) Remark string `json:"remark"` // 充值备注 } // UpdateCreditLimitReq 更新授信额度请求 type UpdateCreditLimitReq struct { g.Meta `path:"/updateCreditLimit" method:"post" tags:"广告主管理" summary:"更新授信额度" dc:"更新广告主的授信额度"` Id string `json:"id" v:"required"` // 广告主ID CreditLimit int64 `json:"creditLimit" v:"required"` // 授信额度(分) Remark string `json:"remark"` // 备注说明 } // GetAdvertiserBalanceReq 获取广告主余额请求 type GetAdvertiserBalanceReq struct { g.Meta `path:"/getBalance" method:"get" tags:"广告主管理" summary:"获取广告主余额" dc:"根据ID获取广告主账户余额和授信额度"` Id string `json:"id" v:"required"` // 广告主ID } // GetAdvertiserBalanceRes 获取广告主余额响应 type GetAdvertiserBalanceRes struct { Balance int64 `json:"balance"` // 账户余额(分) CreditLimit int64 `json:"creditLimit"` // 授信额度(分) }