Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Company ¶
type Company struct { Id int64 `json:"id" description:"ID"` Name string `json:"name" description:"名称"` ContactName string `json:"contactName" description:"商务联系人"` ContactMobile string `json:"contactMobile" description:"商务联系电话"` UserId int64 `json:"userId" description:"管理员ID"` State int `json:"state" description:"状态:0未启用,1正常"` Remark string `json:"remark" description:"备注"` CreatedBy int64 `json:"createdBy" description:"创建者"` CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"` UpdatedBy int64 `json:"updatedBy" description:"更新者"` UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"` DeletedBy int64 `json:"deletedBy" description:"删除者"` DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"` ParentId int64 `json:"parentId" description:"父级ID"` Address string `json:"address" description:"地址"` LicenseId int64 `json:"licenseId" description:"主体资质id"` LicenseState int `json:"licenseState" description:"主体状态,和主体资质状态保持一致"` }
Company is the golang structure for table company.
type CompanyEmployee ¶
type CompanyEmployee struct { Id int64 `json:"id" description:"ID,保持与USERID一致"` No string `json:"no" description:"工号"` Avatar string `json:"avatar" description:"头像"` Name string `json:"name" description:"姓名"` Mobile string `json:"mobile" description:"手机号"` UnionMainId int64 `json:"unionMainId" description:"所属主体"` State int `json:"state" description:"状态: -1已离职,0待确认,1已入职"` LastActiveIp string `json:"lastActiveIp" description:"最后活跃IP"` HiredAt *gtime.Time `json:"hiredAt" description:"入职时间"` CreatedBy int64 `json:"createdBy" description:""` CreatedAt *gtime.Time `json:"createdAt" description:""` UpdatedBy int64 `json:"updatedBy" description:""` UpdatedAt *gtime.Time `json:"updatedAt" description:""` DeletedBy int64 `json:"deletedBy" description:""` DeletedAt *gtime.Time `json:"deletedAt" description:""` Sex int `json:"sex" description:"性别:0女 1男"` Remark string `json:"remark" description:"备注"` }
CompanyEmployee is the golang structure for table company_employee.
type CompanyTeam ¶
type CompanyTeam struct { Id int64 `json:"id" description:"ID"` Name string `json:"name" description:"团队名称,公司维度下唯一"` OwnerEmployeeId int64 `json:"ownerEmployeeId" description:"团队所有者/业务总监/业务经理/团队队长"` CaptainEmployeeId int64 `json:"captainEmployeeId" description:"团队队长编号/小组组长"` UnionMainId int64 `json:"unionMainId" description:"所属主体单位ID"` ParentId int64 `json:"parentId" description:"父级ID"` Remark string `json:"remark" description:"备注"` CreatedAt *gtime.Time `json:"createdAt" description:""` UpdatedAt *gtime.Time `json:"updatedAt" description:""` DeletedAt *gtime.Time `json:"deletedAt" description:""` }
CompanyTeam is the golang structure for table company_team.
type CompanyTeamMember ¶
type CompanyTeamMember struct { Id int64 `json:"id" description:"ID"` TeamId int64 `json:"teamId" description:"团队ID"` EmployeeId int64 `json:"employeeId" description:"成员ID"` InviteUserId int64 `json:"inviteUserId" description:"邀约人ID"` UnionMainId int64 `json:"unionMainId" description:"关联主体ID"` JoinAt *gtime.Time `json:"joinAt" description:"加入时间"` }
CompanyTeamMember is the golang structure for table company_team_member.
type FdAccount ¶
type FdAccount struct { Id int64 `json:"id" description:"ID"` Name string `json:"name" description:"账户名称"` UnionLicenseId int64 `json:"unionLicenseId" description:"关联资质ID,大于0时必须保值与 union_user_id 关联得上"` UnionUserId int64 `json:"unionUserId" description:"关联用户ID"` CurrencyCode string `json:"currencyCode" description:"货币代码"` IsEnabled int `json:"isEnabled" description:"是否启用:1启用,0禁用"` LimitState int `json:"limitState" description:"限制状态:0不限制,1限制支出、2限制收入"` PrecisionOfBalance int `json:"precisionOfBalance" description:"货币单位精度:1:元,10:角,100:分,1000:厘,10000:毫,……"` Balance int64 `json:"balance" description:"当前余额,必须要与账单最后一笔交易余额对应得上"` Version int `json:"version" description:"乐观锁所需数据版本字段"` CreatedAt *gtime.Time `json:"createdAt" description:""` CreatedBy int64 `json:"createdBy" description:""` UpdatedAt *gtime.Time `json:"updatedAt" description:""` UpdatedBy int64 `json:"updatedBy" description:""` DeletedAt *gtime.Time `json:"deletedAt" description:""` DeletedBy int64 `json:"deletedBy" description:""` SceneType int `json:"sceneType" description:"场景类型:0不限、1充电佣金收入"` AccountType int `` /* 130-byte string literal not displayed */ AccountNumber string `` /* 136-byte string literal not displayed */ UnionMainId int64 `json:"unionMainId" description:"关联主体ID,与union_license_id 中的union_main_id 一致"` AllowExceed int `json:"allowExceed" description:"是否允许存在负余额: 0禁止、1允许"` }
FdAccount is the golang structure for table fd_account.
type FdAccountBill ¶
type FdAccountBill struct { Id int64 `json:"id" description:"ID"` FromUserId int64 `json:"fromUserId" description:"交易发起方UserID,如果是系统则固定为-1"` ToUserId int64 `json:"toUserId" description:"交易对象UserID"` FdAccountId int64 `json:"fdAccountId" description:"财务账户ID"` BeforeBalance int64 `json:"beforeBalance" description:"交易前账户余额"` Amount int64 `json:"amount" description:"交易金额"` AfterBalance int64 `json:"afterBalance" description:"交易后账户余额"` UnionOrderId int64 `json:"unionOrderId" description:"关联业务订单ID"` InOutType int `json:"inOutType" description:"收支类型:1收入,2支出"` TradeType int `` /* 188-byte string literal not displayed */ TradeAt *gtime.Time `json:"tradeAt" description:"交易时间"` Remark string `json:"remark" description:"备注信息"` TradeState int `` /* 180-byte string literal not displayed */ DeletedAt *gtime.Time `json:"deletedAt" description:""` CreatedAt *gtime.Time `json:"createdAt" description:""` CreatedBy int64 `json:"createdBy" description:""` }
FdAccountBill is the golang structure for table fd_account_bill.
type FdAccountDetail ¶
type FdAccountDetail struct { Id int64 `json:"id" description:"和财务账号 id保持一致"` TodayAccountSum int `json:"todayAccountSum" description:"今日金额"` TodayUpdatedAt *gtime.Time `json:"todayUpdatedAt" description:"今日金额更新时间"` WeekAccountSum int `json:"weekAccountSum" description:"本周金额"` WeekUpdatedAt *gtime.Time `json:"weekUpdatedAt" description:"本周金额更新时间"` MonthAccountSum int `json:"monthAccountSum" description:"本月金额"` MonthUpdatedAt *gtime.Time `json:"monthUpdatedAt" description:"本月金额更新时间"` QuarterAccountSum int `json:"quarterAccountSum" description:"本季度金额统计"` QuarterUpdatedAt *gtime.Time `json:"quarterUpdatedAt" description:"本季度金额更新时间"` YearAccountSum int64 `json:"yearAccountSum" description:"本年度金额统计"` YearUpdatedAt *gtime.Time `json:"yearUpdatedAt" description:"本年度金额更新时间"` UnionMainId int64 `json:"unionMainId" description:"关联主体id"` SysUserId int64 `json:"sysUserId" description:"关联用户id"` Version int `json:"version" description:"乐观锁所需数据版本字段"` SceneType int `json:"sceneType" description:"场景类型:0不限、1充电佣金收入"` }
FdAccountDetail is the golang structure for table fd_account_detail.
type FdBankCard ¶
type FdBankCard struct { Id int64 `json:"id" description:"ID"` BankName string `json:"bankName" description:"银行名称"` CardType int `json:"cardType" description:"银行卡类型:1借记卡,2储蓄卡"` CardNumber string `json:"cardNumber" description:"银行卡号"` ExpiredAt *gtime.Time `json:"expiredAt" description:"有效期"` HolderName string `json:"holderName" description:"银行卡开户名"` BankOfAccount string `json:"bankOfAccount" description:"开户行"` State int `json:"state" description:"状态:0禁用,1正常"` Remark string `json:"remark" description:"备注信息"` UserId int64 `json:"userId" description:"用户id,表示属于谁"` CreatedAt *gtime.Time `json:"createdAt" description:""` CreatedBy int64 `json:"createdBy" description:""` UpdatedAt *gtime.Time `json:"updatedAt" description:""` UpdatedBy int64 `json:"updatedBy" description:""` DeletedAt *gtime.Time `json:"deletedAt" description:""` DeletedBy int64 `json:"deletedBy" description:""` }
FdBankCard is the golang structure for table fd_bank_card.
type FdCurrency ¶
type FdCurrency struct { Code string `json:"code" description:"国家编码"` EnName string `json:"enName" description:"国家英文名称"` CnName string `json:"cnName" description:"国家中文名称"` CurrencyCode string `json:"currencyCode" description:"货币编码"` CurrencyCn string `json:"currencyCn" description:"货币中文名称"` CurrencyEn string `json:"currencyEn" description:"货币英文名称"` Symbol string `json:"symbol" description:"货币符号"` SymbolNative string `json:"symbolNative" description:"货币原生符号"` IsLegalTender int `json:"isLegalTender" description:"是否法定货币:1是,0否"` CurrencyRate float64 `json:"currencyRate" description:"货币汇率,本币为人民币"` }
FdCurrency is the golang structure for table fd_currency.
type FdInvoice ¶
type FdInvoice struct { Id int64 `json:"id" description:""` Name string `json:"name" description:"发票抬头名称"` TaxId string `json:"taxId" description:"纳税识别号"` Addr string `json:"addr" description:"发票收件地址,限纸质"` Email string `json:"email" description:"发票收件邮箱,限电子发票"` UserId int64 `json:"userId" description:"申请人UserID"` AuditUserId int64 `json:"auditUserId" description:"审核人UserID"` AuditReplyMsg string `json:"auditReplyMsg" description:"审核回复,仅审核不通过时才有值"` AuditAt *gtime.Time `json:"auditAt" description:"审核时间"` State int `json:"state" description:"状态:0待审核、1已通过、-1不通过"` UnionMainId int64 `json:"unionMainId" description:"主体ID:运营商ID、服务商ID、商户ID、消费者ID"` CreatedAt *gtime.Time `json:"createdAt" description:""` CreatedBy int64 `json:"createdBy" description:""` UpdatedAt *gtime.Time `json:"updatedAt" description:""` UpdatedBy int64 `json:"updatedBy" description:""` DeletedAt *gtime.Time `json:"deletedAt" description:""` DeletedBy int64 `json:"deletedBy" description:""` }
FdInvoice is the golang structure for table fd_invoice.
type FdInvoiceDetail ¶
type FdInvoiceDetail struct { Id int64 `json:"id" description:"ID"` TaxNumber string `json:"taxNumber" description:"纳税识别号"` TaxName string `json:"taxName" description:"纳税人名称"` BillIds string `json:"billIds" description:"账单ID组"` Amount int64 `json:"amount" description:"开票金额,单位精度:分"` Rate int `json:"rate" description:"税率,如3% 则填入3"` RateMount int64 `json:"rateMount" description:"税额,单位精度:分"` Remark string `json:"remark" description:"发布内容描述"` Type int `json:"type" description:"发票类型:1电子发票,2纸质发票"` State int `json:"state" description:"状态:1待审核、2待开票、4开票失败、8已开票、16已撤销"` AuditUserIds int64 `json:"auditUserIds" description:"审核者UserID,多个用逗号隔开"` MakeType int `json:"makeType" description:"出票类型:1普通发票、2增值税专用发票、3专业发票"` MakeUserId int64 `json:"makeUserId" description:"出票人UserID,如果是系统出票则默认-1"` MakeAt *gtime.Time `json:"makeAt" description:"出票时间"` CourierName string `json:"courierName" description:"快递名称,限纸质发票"` CourierNumber string `json:"courierNumber" description:"快递编号,限纸质发票"` FdInvoiceId int64 `json:"fdInvoiceId" description:"发票抬头ID"` AuditUserId int64 `json:"auditUserId" description:"审核者UserID"` AuditReplyMsg string `json:"auditReplyMsg" description:"审核回复,仅审核不通过时才有值"` AuditAt *gtime.Time `json:"auditAt" description:"审核时间"` UserId int64 `json:"userId" description:"申请者用户ID"` UnionMainId int64 `json:"unionMainId" description:"主体ID:运营商ID、服务商ID、商户ID、消费者ID"` Email string `json:"email" description:"发票收件邮箱,限电子发票"` CreatedAt *gtime.Time `json:"createdAt" description:""` CreatedBy int64 `json:"createdBy" description:""` UpdatedAt *gtime.Time `json:"updatedAt" description:""` UpdatedBy int64 `json:"updatedBy" description:""` DeletedAt *gtime.Time `json:"deletedAt" description:""` DeletedBy int64 `json:"deletedBy" description:""` BelongTo int `json:"belongTo" description:"发票拥有者类型:1个人 2主体"` }
FdInvoiceDetail is the golang structure for table fd_invoice_detail.
type License ¶
type License struct { Id int64 `json:"id" description:""` IdcardFrontPath string `json:"idcardFrontPath" description:"身份证头像面照片"` IdcardBackPath string `json:"idcardBackPath" description:"身份证国徽面照片"` IdcardNo string `json:"idcardNo" description:"身份证号"` IdcardExpiredDate *gtime.Time `json:"idcardExpiredDate" description:"身份证有效期"` IdcardAddress string `json:"idcardAddress" description:"身份证户籍地址"` PersonContactName string `json:"personContactName" description:"负责人,必须是自然人"` PersonContactMobile string `json:"personContactMobile" description:"负责人,联系电话"` BusinessLicenseName string `json:"businessLicenseName" description:"公司全称"` BusinessLicenseAddress string `json:"businessLicenseAddress" description:"公司地址"` BusinessLicensePath string `json:"businessLicensePath" description:"营业执照图片地址"` BusinessLicenseScope string `json:"businessLicenseScope" description:"经营范围"` BusinessLicenseRegCapital string `json:"businessLicenseRegCapital" description:"注册资本"` BusinessLicenseTermTime string `json:"businessLicenseTermTime" description:"营业期限"` BusinessLicenseOrgCode string `json:"businessLicenseOrgCode" description:"组织机构代码"` BusinessLicenseCreditCode string `json:"businessLicenseCreditCode" description:"统一社会信用代码"` BusinessLicenseLegal string `json:"businessLicenseLegal" description:"法人"` BusinessLicenseLegalPath string `json:"businessLicenseLegalPath" description:"法人证照,如果法人不是自然人,则该项必填"` LatestAuditLogId int64 `json:"latestAuditLogId" description:"最新的审核记录ID"` State int `json:"state" description:""` AuthType int `json:"authType" description:""` Remark string `json:"remark" description:""` UpdatedAt *gtime.Time `json:"updatedAt" description:""` CreatedAt *gtime.Time `json:"createdAt" description:""` DeletedAt *gtime.Time `json:"deletedAt" description:""` BrandName string `json:"brandName" description:"品牌名称"` BusinessLicenseLegalMobile string `json:"businessLicenseLegalMobile" description:"法人联系电话"` ServerMobile string `json:"serverMobile" description:"服务电话"` }
License is the golang structure for table license.
type Message ¶
type Message struct { Id int `json:"id" description:""` Title string `json:"title" description:""` Body string `json:"body" description:""` Attach string `json:"attach" description:""` CreatedAt *gtime.Time `json:"createdAt" description:""` UpdatedAt *gtime.Time `json:"updatedAt" description:""` DeletedAt *gtime.Time `json:"deletedAt" description:""` }
Message is the golang structure for table message.
type Send ¶
type Send struct { Id int `json:"id" description:""` Title string `json:"title" description:""` MessageId int `json:"messageId" description:""` CreatedAt *gtime.Time `json:"createdAt" description:""` UpdatedAt *gtime.Time `json:"updatedAt" description:""` DeletedAt *gtime.Time `json:"deletedAt" description:""` SendModel int `json:"sendModel" description:""` SendServerId string `json:"sendServerId" description:""` DispatchModel int `json:"dispatchModel" description:""` Status int `json:"status" description:""` SendListCount int `json:"sendListCount" description:""` SuccessCount int `json:"successCount" description:""` }
Send is the golang structure for table send.
type SendList ¶
type SendList struct { Id int `json:"id" description:""` SendId int `json:"sendId" description:""` Receive string `json:"receive" description:""` Status int `json:"status" description:""` SendServerId int `json:"sendServerId" description:""` }
SendList is the golang structure for table send_list.
type SmtpServer ¶
type SmtpServer struct { Id int `json:"id" description:""` SmtpServer string `json:"smtpServer" description:""` SmtpPassword string `json:"smtpPassword" description:""` Title string `json:"title" description:""` SmtpSendEmail string `json:"smtpSendEmail" description:""` Port int `json:"port" description:""` MaxConcurrency int `json:"maxConcurrency" description:""` }
SmtpServer is the golang structure for table smtp_server.