co_entity

package
v0.8.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 1 Imported by: 0

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"            orm:"id"             description:"ID"`
	Name          string      `json:"name"          orm:"name"           description:"名称"`
	ContactName   string      `json:"contactName"   orm:"contact_name"   description:"商务联系人"`
	ContactMobile string      `json:"contactMobile" orm:"contact_mobile" description:"商务联系电话"`
	UserId        int64       `json:"userId"        orm:"user_id"        description:"管理员ID"`
	State         int         `json:"state"         orm:"state"          description:"状态:0未启用,1正常"`
	Remark        string      `json:"remark"        orm:"remark"         description:"备注"`
	CreatedBy     int64       `json:"createdBy"     orm:"created_by"     description:"创建者"`
	CreatedAt     *gtime.Time `json:"createdAt"     orm:"created_at"     description:"创建时间"`
	UpdatedBy     int64       `json:"updatedBy"     orm:"updated_by"     description:"更新者"`
	UpdatedAt     *gtime.Time `json:"updatedAt"     orm:"updated_at"     description:"更新时间"`
	DeletedBy     int64       `json:"deletedBy"     orm:"deleted_by"     description:"删除者"`
	DeletedAt     *gtime.Time `json:"deletedAt"     orm:"deleted_at"     description:"删除时间"`
	ParentId      int64       `json:"parentId"      orm:"parent_id"      description:"父级ID"`
	Address       string      `json:"address"       orm:"address"        description:"地址"`
	LicenseId     int64       `json:"licenseId"     orm:"license_id"     description:"主体资质id"`
	LicenseState  int         `json:"licenseState"  orm:"license_state"  description:"主体状态,和主体资质状态保持一致"`
	CountryCode   string      `json:"countryCode"   orm:"country_code"   description:"所属国家编码"`
	Region        string      `json:"region"        orm:"region"         description:"所属地区"`
}

Company is the golang structure for table company.

type CompanyEmployee

type CompanyEmployee struct {
	Id           int64       `json:"id"           orm:"id"             description:"ID,保持与USERID一致"`
	No           string      `json:"no"           orm:"no"             description:"工号"`
	Avatar       string      `json:"avatar"       orm:"avatar"         description:"头像"`
	Name         string      `json:"name"         orm:"name"           description:"姓名"`
	Mobile       string      `json:"mobile"       orm:"mobile"         description:"手机号"`
	UnionMainId  int64       `json:"unionMainId"  orm:"union_main_id"  description:"所属主体"`
	State        int         `json:"state"        orm:"state"          description:"状态: -1已离职,0待确认,1已入职"`
	LastActiveIp string      `json:"lastActiveIp" orm:"last_active_ip" description:"最后活跃IP"`
	HiredAt      *gtime.Time `json:"hiredAt"      orm:"hired_at"       description:"入职时间"`
	CreatedBy    int64       `json:"createdBy"    orm:"created_by"     description:""`
	CreatedAt    *gtime.Time `json:"createdAt"    orm:"created_at"     description:""`
	UpdatedBy    int64       `json:"updatedBy"    orm:"updated_by"     description:""`
	UpdatedAt    *gtime.Time `json:"updatedAt"    orm:"updated_at"     description:""`
	DeletedBy    int64       `json:"deletedBy"    orm:"deleted_by"     description:""`
	DeletedAt    *gtime.Time `json:"deletedAt"    orm:"deleted_at"     description:""`
	Sex          int         `json:"sex"          orm:"sex"            description:"性别:0未知、1男、2女"`
	Remark       string      `json:"remark"       orm:"remark"         description:"备注"`
	CountryCode  string      `json:"countryCode"  orm:"country_code"   description:"所属国家编码"`
	Region       string      `json:"region"       orm:"region"         description:"所属地区"`
	Email        string      `json:"email"        orm:"email"          description:"业务邮箱"`
}

CompanyEmployee is the golang structure for table company_employee.

type CompanyTeam

type CompanyTeam struct {
	Id                int64       `json:"id"                orm:"id"                  description:"ID"`
	Name              string      `json:"name"              orm:"name"                description:"团队名称,公司维度下唯一"`
	OwnerEmployeeId   int64       `json:"ownerEmployeeId"   orm:"owner_employee_id"   description:"团队所有者/业务总监/业务经理/团队队长"`
	CaptainEmployeeId int64       `json:"captainEmployeeId" orm:"captain_employee_id" description:"团队队长编号/小组组长"`
	UnionMainId       int64       `json:"unionMainId"       orm:"union_main_id"       description:"所属主体单位ID"`
	ParentId          int64       `json:"parentId"          orm:"parent_id"           description:"父级ID"`
	Remark            string      `json:"remark"            orm:"remark"              description:"备注"`
	CreatedAt         *gtime.Time `json:"createdAt"         orm:"created_at"          description:""`
	UpdatedAt         *gtime.Time `json:"updatedAt"         orm:"updated_at"          description:""`
	DeletedAt         *gtime.Time `json:"deletedAt"         orm:"deleted_at"          description:""`
}

CompanyTeam is the golang structure for table company_team.

type CompanyTeamMember

type CompanyTeamMember struct {
	Id           int64       `json:"id"           orm:"id"             description:"ID"`
	TeamId       int64       `json:"teamId"       orm:"team_id"        description:"团队ID"`
	EmployeeId   int64       `json:"employeeId"   orm:"employee_id"    description:"成员ID"`
	InviteUserId int64       `json:"inviteUserId" orm:"invite_user_id" description:"邀约人ID"`
	UnionMainId  int64       `json:"unionMainId"  orm:"union_main_id"  description:"关联主体ID"`
	JoinAt       *gtime.Time `json:"joinAt"       orm:"join_at"        description:"加入时间"`
}

CompanyTeamMember is the golang structure for table company_team_member.

type FdAccount added in v0.1.112

type FdAccount struct {
	Id                 int64       `json:"id"                 orm:"id"                   description:"ID"`
	Name               string      `json:"name"               orm:"name"                 description:"账户名称"`
	UnionLicenseId     int64       `` /* 136-byte string literal not displayed */
	UnionUserId        int64       `json:"unionUserId"        orm:"union_user_id"        description:"关联用户ID"`
	CurrencyCode       string      `json:"currencyCode"       orm:"currency_code"        description:"货币代码"`
	IsEnabled          int         `json:"isEnabled"          orm:"is_enabled"           description:"是否启用:1启用,0禁用"`
	LimitState         int         `json:"limitState"         orm:"limit_state"          description:"限制状态:0不限制,1限制支出、2限制收入"`
	PrecisionOfBalance int         `` /* 144-byte string literal not displayed */
	Balance            int64       `` /* 136-byte string literal not displayed */
	Version            int         `json:"version"            orm:"version"              description:"乐观锁所需数据版本字段"`
	CreatedAt          *gtime.Time `json:"createdAt"          orm:"created_at"           description:""`
	CreatedBy          int64       `json:"createdBy"          orm:"created_by"           description:""`
	UpdatedAt          *gtime.Time `json:"updatedAt"          orm:"updated_at"           description:""`
	UpdatedBy          int64       `json:"updatedBy"          orm:"updated_by"           description:""`
	DeletedAt          *gtime.Time `json:"deletedAt"          orm:"deleted_at"           description:""`
	DeletedBy          int64       `json:"deletedBy"          orm:"deleted_by"           description:""`
	SceneType          int         `json:"sceneType"          orm:"scene_type"           description:"场景类型:0不限、1充电佣金收入"`
	AccountType        int         `` /* 157-byte string literal not displayed */
	AccountNumber      string      `` /* 163-byte string literal not displayed */
	UnionMainId        int64       `` /* 130-byte string literal not displayed */
	AllowExceed        int         `json:"allowExceed"        orm:"allow_exceed"         description:"是否允许存在负余额: 0禁止、1允许"`
}

FdAccount is the golang structure for table fd_account.

type FdAccountBill added in v0.1.112

type FdAccountBill struct {
	Id            int64       `json:"id"            orm:"id"             description:"ID"`
	FromUserId    int64       `json:"fromUserId"    orm:"from_user_id"   description:"交易发起方UserID,如果是系统则固定为-1"`
	ToUserId      int64       `json:"toUserId"      orm:"to_user_id"     description:"交易对象UserID"`
	FdAccountId   int64       `json:"fdAccountId"   orm:"fd_account_id"  description:"财务账户ID"`
	BeforeBalance int64       `json:"beforeBalance" orm:"before_balance" description:"交易前账户余额"`
	Amount        int64       `json:"amount"        orm:"amount"         description:"交易金额"`
	AfterBalance  int64       `json:"afterBalance"  orm:"after_balance"  description:"交易后账户余额"`
	UnionOrderId  int64       `json:"unionOrderId"  orm:"union_order_id" description:"关联业务订单ID"`
	InOutType     int         `json:"inOutType"     orm:"in_out_type"    description:"收支类型:1收入,2支出"`
	TradeType     int         `` /* 209-byte string literal not displayed */
	TradeAt       *gtime.Time `json:"tradeAt"       orm:"trade_at"       description:"交易时间"`
	Remark        string      `json:"remark"        orm:"remark"         description:"备注信息"`
	TradeState    int         `` /* 201-byte string literal not displayed */
	DeletedAt     *gtime.Time `json:"deletedAt"     orm:"deleted_at"     description:""`
	CreatedAt     *gtime.Time `json:"createdAt"     orm:"created_at"     description:""`
	CreatedBy     int64       `json:"createdBy"     orm:"created_by"     description:""`
}

FdAccountBill is the golang structure for table fd_account_bill.

type FdAccountDetail added in v0.3.12

type FdAccountDetail struct {
	Id                int64       `json:"id"                orm:"id"                  description:"和财务账号 id保持一致"`
	TodayAccountSum   int         `json:"todayAccountSum"   orm:"today_account_sum"   description:"今日金额"`
	TodayUpdatedAt    *gtime.Time `json:"todayUpdatedAt"    orm:"today_updated_at"    description:"今日金额更新时间"`
	WeekAccountSum    int         `json:"weekAccountSum"    orm:"week_account_sum"    description:"本周金额"`
	WeekUpdatedAt     *gtime.Time `json:"weekUpdatedAt"     orm:"week_updated_at"     description:"本周金额更新时间"`
	MonthAccountSum   int         `json:"monthAccountSum"   orm:"month_account_sum"   description:"本月金额"`
	MonthUpdatedAt    *gtime.Time `json:"monthUpdatedAt"    orm:"month_updated_at"    description:"本月金额更新时间"`
	QuarterAccountSum int         `json:"quarterAccountSum" orm:"quarter_account_sum" description:"本季度金额统计"`
	QuarterUpdatedAt  *gtime.Time `json:"quarterUpdatedAt"  orm:"quarter_updated_at"  description:"本季度金额更新时间"`
	YearAccountSum    int64       `json:"yearAccountSum"    orm:"year_account_sum"    description:"本年度金额统计"`
	YearUpdatedAt     *gtime.Time `json:"yearUpdatedAt"     orm:"year_updated_at"     description:"本年度金额更新时间"`
	UnionMainId       int64       `json:"unionMainId"       orm:"union_main_id"       description:"关联主体id"`
	SysUserId         int64       `json:"sysUserId"         orm:"sys_user_id"         description:"关联用户id"`
	Version           int         `json:"version"           orm:"version"             description:"乐观锁所需数据版本字段"`
	SceneType         int         `json:"sceneType"         orm:"scene_type"          description:"场景类型:0不限、1充电佣金收入"`
}

FdAccountDetail is the golang structure for table fd_account_detail.

type FdBankCard added in v0.1.112

type FdBankCard struct {
	Id            int64       `json:"id"            orm:"id"              description:"ID"`
	BankName      string      `json:"bankName"      orm:"bank_name"       description:"银行名称"`
	CardType      int         `json:"cardType"      orm:"card_type"       description:"银行卡类型:1借记卡,2储蓄卡"`
	CardNumber    string      `json:"cardNumber"    orm:"card_number"     description:"银行卡号"`
	ExpiredAt     *gtime.Time `json:"expiredAt"     orm:"expired_at"      description:"有效期"`
	HolderName    string      `json:"holderName"    orm:"holder_name"     description:"银行卡开户名"`
	BankOfAccount string      `json:"bankOfAccount" orm:"bank_of_account" description:"开户行"`
	State         int         `json:"state"         orm:"state"           description:"状态:0禁用,1正常"`
	Remark        string      `json:"remark"        orm:"remark"          description:"备注信息"`
	UserId        int64       `json:"userId"        orm:"user_id"         description:"用户id,表示属于谁"`
	CreatedAt     *gtime.Time `json:"createdAt"     orm:"created_at"      description:""`
	CreatedBy     int64       `json:"createdBy"     orm:"created_by"      description:""`
	UpdatedAt     *gtime.Time `json:"updatedAt"     orm:"updated_at"      description:""`
	UpdatedBy     int64       `json:"updatedBy"     orm:"updated_by"      description:""`
	DeletedAt     *gtime.Time `json:"deletedAt"     orm:"deleted_at"      description:""`
	DeletedBy     int64       `json:"deletedBy"     orm:"deleted_by"      description:""`
}

FdBankCard is the golang structure for table fd_bank_card.

type FdCurrency added in v0.1.112

type FdCurrency struct {
	Code          string  `json:"code"          orm:"code"            description:"国家编码"`
	EnName        string  `json:"enName"        orm:"en_name"         description:"国家英文名称"`
	CnName        string  `json:"cnName"        orm:"cn_name"         description:"国家中文名称"`
	CurrencyCode  string  `json:"currencyCode"  orm:"currency_code"   description:"货币编码"`
	CurrencyCn    string  `json:"currencyCn"    orm:"currency_cn"     description:"货币中文名称"`
	CurrencyEn    string  `json:"currencyEn"    orm:"currency_en"     description:"货币英文名称"`
	Symbol        string  `json:"symbol"        orm:"symbol"          description:"货币符号"`
	SymbolNative  string  `json:"symbolNative"  orm:"symbol_native"   description:"货币原生符号"`
	IsLegalTender int     `json:"isLegalTender" orm:"is_legal_tender" description:"是否法定货币:1是,0否"`
	CurrencyRate  float64 `json:"currencyRate"  orm:"currency_rate"   description:"货币汇率,本币为人民币"`
}

FdCurrency is the golang structure for table fd_currency.

type FdInvoice added in v0.1.112

type FdInvoice struct {
	Id            int64       `json:"id"            orm:"id"              description:""`
	Name          string      `json:"name"          orm:"name"            description:"发票抬头名称"`
	TaxId         string      `json:"taxId"         orm:"tax_id"          description:"纳税识别号"`
	Addr          string      `json:"addr"          orm:"addr"            description:"发票收件地址,限纸质"`
	Email         string      `json:"email"         orm:"email"           description:"发票收件邮箱,限电子发票"`
	UserId        int64       `json:"userId"        orm:"user_id"         description:"申请人UserID"`
	AuditUserId   int64       `json:"auditUserId"   orm:"audit_user_id"   description:"审核人UserID"`
	AuditReplyMsg string      `json:"auditReplyMsg" orm:"audit_reply_msg" description:"审核回复,仅审核不通过时才有值"`
	AuditAt       *gtime.Time `json:"auditAt"       orm:"audit_at"        description:"审核时间"`
	State         int         `json:"state"         orm:"state"           description:"状态:0待审核、1已通过、-1不通过"`
	UnionMainId   int64       `json:"unionMainId"   orm:"union_main_id"   description:"主体ID:运营商ID、服务商ID、商户ID、消费者ID"`
	CreatedAt     *gtime.Time `json:"createdAt"     orm:"created_at"      description:""`
	CreatedBy     int64       `json:"createdBy"     orm:"created_by"      description:""`
	UpdatedAt     *gtime.Time `json:"updatedAt"     orm:"updated_at"      description:""`
	UpdatedBy     int64       `json:"updatedBy"     orm:"updated_by"      description:""`
	DeletedAt     *gtime.Time `json:"deletedAt"     orm:"deleted_at"      description:""`
	DeletedBy     int64       `json:"deletedBy"     orm:"deleted_by"      description:""`
}

FdInvoice is the golang structure for table fd_invoice.

type FdInvoiceDetail added in v0.1.112

type FdInvoiceDetail struct {
	Id            int64       `json:"id"            orm:"id"              description:"ID"`
	TaxNumber     string      `json:"taxNumber"     orm:"tax_number"      description:"纳税识别号"`
	TaxName       string      `json:"taxName"       orm:"tax_name"        description:"纳税人名称"`
	BillIds       string      `json:"billIds"       orm:"bill_ids"        description:"账单ID组"`
	Amount        int64       `json:"amount"        orm:"amount"          description:"开票金额,单位精度:分"`
	Rate          int         `json:"rate"          orm:"rate"            description:"税率,如3% 则填入3"`
	RateMount     int64       `json:"rateMount"     orm:"rate_mount"      description:"税额,单位精度:分"`
	Remark        string      `json:"remark"        orm:"remark"          description:"发布内容描述"`
	Type          int         `json:"type"          orm:"type"            description:"发票类型:1电子发票,2纸质发票"`
	State         int         `` /* 132-byte string literal not displayed */
	AuditUserIds  int64       `json:"auditUserIds"  orm:"audit_user_ids"  description:"审核者UserID,多个用逗号隔开"`
	MakeType      int         `` /* 126-byte string literal not displayed */
	MakeUserId    int64       `json:"makeUserId"    orm:"make_user_id"    description:"出票人UserID,如果是系统出票则默认-1"`
	MakeAt        *gtime.Time `json:"makeAt"        orm:"make_at"         description:"出票时间"`
	CourierName   string      `json:"courierName"   orm:"courier_name"    description:"快递名称,限纸质发票"`
	CourierNumber string      `json:"courierNumber" orm:"courier_number"  description:"快递编号,限纸质发票"`
	FdInvoiceId   int64       `json:"fdInvoiceId"   orm:"fd_invoice_id"   description:"发票抬头ID"`
	AuditUserId   int64       `json:"auditUserId"   orm:"audit_user_id"   description:"审核者UserID"`
	AuditReplyMsg string      `json:"auditReplyMsg" orm:"audit_reply_msg" description:"审核回复,仅审核不通过时才有值"`
	AuditAt       *gtime.Time `json:"auditAt"       orm:"audit_at"        description:"审核时间"`
	UserId        int64       `json:"userId"        orm:"user_id"         description:"申请者用户ID"`
	UnionMainId   int64       `json:"unionMainId"   orm:"union_main_id"   description:"主体ID:运营商ID、服务商ID、商户ID、消费者ID"`
	Email         string      `json:"email"         orm:"email"           description:"发票收件邮箱,限电子发票"`
	CreatedAt     *gtime.Time `json:"createdAt"     orm:"created_at"      description:""`
	CreatedBy     int64       `json:"createdBy"     orm:"created_by"      description:""`
	UpdatedAt     *gtime.Time `json:"updatedAt"     orm:"updated_at"      description:""`
	UpdatedBy     int64       `json:"updatedBy"     orm:"updated_by"      description:""`
	DeletedAt     *gtime.Time `json:"deletedAt"     orm:"deleted_at"      description:""`
	DeletedBy     int64       `json:"deletedBy"     orm:"deleted_by"      description:""`
	BelongTo      int         `json:"belongTo"      orm:"belong_to"       description:"发票拥有者类型:1个人  2主体"`
}

FdInvoiceDetail is the golang structure for table fd_invoice_detail.

type License added in v0.5.10

type License struct {
	Id                         int64       `json:"id"                         orm:"id"                            description:""`
	IdcardFrontPath            string      `json:"idcardFrontPath"            orm:"idcard_front_path"             description:"身份证头像面照片"`
	IdcardBackPath             string      `json:"idcardBackPath"             orm:"idcard_back_path"              description:"身份证国徽面照片"`
	IdcardNo                   string      `json:"idcardNo"                   orm:"idcard_no"                     description:"身份证号"`
	IdcardExpiredDate          *gtime.Time `json:"idcardExpiredDate"          orm:"idcard_expired_date"           description:"身份证有效期"`
	IdcardAddress              string      `json:"idcardAddress"              orm:"idcard_address"                description:"身份证户籍地址"`
	PersonContactName          string      `json:"personContactName"          orm:"person_contact_name"           description:"负责人,必须是自然人"`
	PersonContactMobile        string      `json:"personContactMobile"        orm:"person_contact_mobile"         description:"负责人,联系电话"`
	BusinessLicenseName        string      `json:"businessLicenseName"        orm:"business_license_name"         description:"公司全称"`
	BusinessLicenseAddress     string      `json:"businessLicenseAddress"     orm:"business_license_address"      description:"公司地址"`
	BusinessLicensePath        string      `json:"businessLicensePath"        orm:"business_license_path"         description:"营业执照图片地址"`
	BusinessLicenseScope       string      `json:"businessLicenseScope"       orm:"business_license_scope"        description:"经营范围"`
	BusinessLicenseRegCapital  string      `json:"businessLicenseRegCapital"  orm:"business_license_reg_capital"  description:"注册资本"`
	BusinessLicenseTermTime    string      `json:"businessLicenseTermTime"    orm:"business_license_term_time"    description:"营业期限"`
	BusinessLicenseOrgCode     string      `json:"businessLicenseOrgCode"     orm:"business_license_org_code"     description:"组织机构代码"`
	BusinessLicenseCreditCode  string      `json:"businessLicenseCreditCode"  orm:"business_license_credit_code"  description:"统一社会信用代码"`
	BusinessLicenseLegal       string      `json:"businessLicenseLegal"       orm:"business_license_legal"        description:"法人"`
	BusinessLicenseLegalPath   string      `` /* 144-byte string literal not displayed */
	LatestAuditLogId           int64       `json:"latestAuditLogId"           orm:"latest_audit_log_id"           description:"最新的审核记录ID"`
	State                      int         `json:"state"                      orm:"state"                         description:"状态:0失效、1正常"`
	AuthType                   int         `json:"authType"                   orm:"auth_type"                     description:"认证类型:"`
	Remark                     string      `json:"remark"                     orm:"remark"                        description:"备注信息"`
	UpdatedAt                  *gtime.Time `json:"updatedAt"                  orm:"updated_at"                    description:""`
	CreatedAt                  *gtime.Time `json:"createdAt"                  orm:"created_at"                    description:""`
	DeletedAt                  *gtime.Time `json:"deletedAt"                  orm:"deleted_at"                    description:""`
	BrandName                  string      `json:"brandName"                  orm:"brand_name"                    description:"品牌名称"`
	BusinessLicenseLegalMobile string      `json:"businessLicenseLegalMobile" orm:"business_license_legal_mobile" description:"法人联系电话"`
	ServerMobile               string      `json:"serverMobile"               orm:"server_mobile"                 description:"服务电话"`
	DoorPicturesJson           string      `json:"doorPicturesJson"           orm:"door_pictures_json"            description:"门头照"`
}

License is the golang structure for table license.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL