co_entity

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 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"            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"`
}

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:""`
}

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 added in v0.1.112

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:""`
}

FdAccount is the golang structure for table fd_account.

type FdAccountBill added in v0.1.112

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         `json:"tradeState"    description:"交易状态:1待支付、2支付中、4已支付、8支付失败、16交易完成、"`
	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 FdBankCard added in v0.1.112

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 added in v0.1.112

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 added in v0.1.112

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"`
	AuditReplayMsg string      `json:"auditReplayMsg" 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 added in v0.1.112

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.

Jump to

Keyboard shortcuts

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