co_model

package
v0.7.48 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 12 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountBillRegister added in v0.1.112

type AccountBillRegister struct {
	OverrideDo    base_interface.DoModel[co_do.FdAccountBill] `json:"-"`
	FromUserId    int64                                       `` /* 126-byte string literal not displayed */
	ToUserId      int64                                       `json:"toUserId"       v:"required#请输入交易接收方用户id"  dc:"交易对象UserID"`
	FdAccountId   int64                                       `json:"fdAccountId"    v:"required#财务账号ID不能为空" dc:"财务账户ID"`
	BeforeBalance int64                                       `json:"beforeBalance"  v:"required#交易前余额不能为空" dc:"交易前账户余额"`
	Amount        int64                                       `json:"amount"         v:"required#交易金额不能为空" dc:"交易金额"`
	AfterBalance  int64                                       `json:"afterBalance"   v:"required#交易后账号余额不能为空" dc:"交易后账户余额"`
	UnionOrderId  int64                                       `json:"unionOrderId"   dc:"关联业务订单ID"`
	InOutType     int                                         `json:"inOutType"      v:"required|in:1,2#请输入1.收入 2.支出" dc:"收支类型:1收入,2支出"`
	TradeType     int                                         `` /* 249-byte string literal not displayed */
	TradeAt       *gtime.Time                                 `json:"tradeAt"        v:"required#交易时间不能为空"   dc:"交易时间"`
	Remark        string                                      `json:"remark"         dc:"备注信息"`
	TradeState    int                                         `` /* 233-byte string literal not displayed */
}

type AccountBillRes added in v0.4.7

type AccountBillRes struct {
	Account co_entity.FdAccount   `json:"account" dc:"财务账号"`
	Bill    *FdAccountBillListRes `json:"bill" dc:"财务账号对应的账单"`
}

type AuditLicense added in v0.5.10

type AuditLicense struct {
	UnionMainId int64 `json:"unionMainId"             dc:"资质审核关联的业务主体ID"`
	LicenseId   int64 `json:"licenseId"             dc:"资质ID"`
	UserId      int64 `json:"userId" dc:"上传资质的userId"`
	License
}

type BankCardRegister added in v0.1.112

type BankCardRegister struct {
	OverrideDo    base_interface.DoModel[co_do.FdBankCard] `p:"-"`
	BankName      string                                   `json:"bankName"      v:"required#请输入银行卡名称" dc:"银行名称"`
	CardType      int                                      `json:"cardType"      v:"required|in:1,2#请输入银行类型" dc:"银行卡类型:1借记卡,2储蓄卡"`
	CardNumber    string                                   `json:"cardNumber"    v:"required|bank-card#请输入银行卡号|银行卡号错误" dc:"银行卡号"`
	ExpiredAt     *gtime.Time                              `json:"expiredAt"     dc:"有效期"`
	HolderName    string                                   `json:"holderName"    v:"required#请输入银行卡开户姓名" dc:"银行卡开户名"`
	UserId        int64                                    `json:"userId"        dc:"银行卡所属用户id,表示属于谁"`
	BankOfAccount string                                   `json:"bankOfAccount" dc:"开户行"`
	State         int                                      `json:"state"         dc:"状态:0禁用,1正常"`
	Remark        string                                   `json:"remark"        dc:"备注信息"`
}

type Company

type Company struct {
	OverrideDo base_interface.DoModel[co_do.Company] `json:"-"`
	// 兼容用法
	Employee      base_interface.DoModel[*Employee] `json:"-"`
	Id            int64                             `json:"id"             dc:"ID"`
	Name          *string                           `json:"name"           dc:"服务商名称" v:"required|max-length:128#请输入名称|名称最大支持128个字符"`
	ContactName   *string                           `` /* 145-byte string literal not displayed */
	ContactMobile *string                           `` /* 196-byte string literal not displayed */
	Remark        *string                           `json:"remark"         dc:"备注"`
	Address       *string                           `json:"address"       dc:"地址,主体资质审核通过后,会通过实际地址覆盖掉该地址"`
	LicenseId     *int64                            `json:"licenseId"     description:"主体资质id"`
	LicenseState  *int                              `json:"licenseState"  description:"主体状态,和主体资质状态保持一致"`
}

type CompanyListRes

type CompanyListRes base_model.CollectRes[CompanyRes]

type CompanyRes

type CompanyRes struct {
	*co_entity.Company
	AdminUser *EmployeeRes `json:"adminUser"`
}

func (*CompanyRes) Data added in v0.3.0

func (m *CompanyRes) Data() *CompanyRes

func (*CompanyRes) SetAdminUser added in v0.5.4

func (m *CompanyRes) SetAdminUser(employee interface{})

type Config

type Config struct {
	DB                             gdb.DB            `p:"-" dc:"数据库连接"`
	AllowEmptyNo                   bool              `p:"allowEmptyNo" dc:"允许员工工号为空" default:"false"`
	IsCreateDefaultEmployeeAndRole bool              `p:"isCreateDefaultEmployeeAndRole" dc:"是否创建默认员工和角色"`
	HardDeleteWaitAt               int64             `p:"hardDeleteWaitAt" dc:"硬删除等待时限,单位/小时" default:"12"`
	KeyIndex                       string            `p:"keyIndex" dc:"配置索引"`
	I18nName                       string            `p:"i18NName" dc:"i18n文件名称"`
	RoutePrefix                    string            `p:"routePrefix" dc:"路由前缀"`
	StoragePath                    string            `p:"storagePath" dc:"资源存储路径"`
	UserType                       sys_enum.UserType `p:"userType" dc:"用户类型"`
	Identifier                     Identifier        `p:"identifier" dc:"标识符"`
	TableName                      TableName         `p:"tableName" dc:"模块表名"`
}

type Employee

type Employee struct {
	OverrideDo  base_interface.DoModel[co_do.CompanyEmployee] `json:"-"`
	Id          int64                                         `json:"id"           dc:"ID,保持与USERID一致"`
	No          string                                        `json:"no"           v:"max-length:16#工号长度超出限定16字符" dc:"工号"`
	Avatar      string                                        `json:"avatar"       dc:"头像"`
	Name        string                                        `json:"name"         v:"required|max-length:16#名称不能为空|工号长度超出限定16字符" dc:"姓名"`
	Mobile      string                                        `json:"mobile"       v:"phone#手机号校验失败" dc:"手机号"`
	State       int                                           `json:"state"        v:"in:-1,0,1#请选择员工状态" dc:"状态:-1已离职,0待确认,1已入职"`
	UnionMainId int64                                         `json:"-"  dc:"所属主体"`
	HiredAt     *gtime.Time                                   `json:"hiredAt"      v:"date-format:Y-m-d#入职日期格式错误" dc:"入职日期"`
	Sex         int                                           `json:"sex"          dc:"性别:0女 1男"`
	Remark      string                                        `json:"remark"       description:"备注"`
}

type EmployeeListRes

type EmployeeListRes base_model.CollectRes[*EmployeeRes]

type EmployeeRes

type EmployeeRes struct {
	co_entity.CompanyEmployee
	User     *EmployeeUser             ` json:"user"`
	Detail   *sys_entity.SysUserDetail ` json:"detail"`
	TeamList []Team                    `json:"teamList"`
}

func (*EmployeeRes) Data added in v0.3.0

func (m *EmployeeRes) Data() *EmployeeRes

func (*EmployeeRes) NewTeamList added in v0.5.4

func (m *EmployeeRes) NewTeamList() interface{}

func (*EmployeeRes) SetTeamList added in v0.5.4

func (m *EmployeeRes) SetTeamList(data interface{})

func (*EmployeeRes) SetUser added in v0.5.4

func (m *EmployeeRes) SetUser(user interface{})

type EmployeeUser

type EmployeeUser struct {
	g.Meta   `orm:"table:sys_user"`
	Id       int64  `json:"id"           dc:"ID,保持与USERID一致"`
	Username string `json:"username"  dc:"账号"`
	State    int    `json:"state"     dc:"状态:0未激活、1正常、-1封号、-2异常、-3已注销"`
	Type     int    `json:"type"      dc:"用户类型,0匿名,1用户,2微商,4商户、8广告主、16服务商、32运营中心"`
}

type FdAccountBillListRes added in v0.4.4

type FdAccountBillListRes base_model.CollectRes[FdAccountBillRes]

type FdAccountBillRes added in v0.3.0

type FdAccountBillRes struct {
	co_entity.FdAccountBill
}

func (*FdAccountBillRes) Data added in v0.3.0

type FdAccountDetail added in v0.3.12

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

FdAccountDetail 财务账号相关金额统计

type FdAccountDetailListRes added in v0.3.12

type FdAccountDetailListRes base_model.CollectRes[FdAccountDetailRes]

type FdAccountDetailRes added in v0.3.12

type FdAccountDetailRes struct {
	co_entity.FdAccountDetail
}

func (*FdAccountDetailRes) Data added in v0.3.12

type FdAccountListRes added in v0.4.7

type FdAccountListRes base_model.CollectRes[FdAccountRes]

type FdAccountRegister added in v0.1.112

type FdAccountRegister struct {
	Name        string `json:"name" v:"required#请输入财务账号名称"    dc:"账户开户名称,姓名或者是单位全称"`
	UnionUserId int64  `json:"unionUserId"        dc:"关联用户ID"`
	UnionMainId int64  `json:"unionMainId"         dc:"关联主体ID"`

	// 货币标识后期还有积分标识
	CurrencyCode       string `` /* 162-byte string literal not displayed */
	PrecisionOfBalance int    `` /* 152-byte string literal not displayed */

	SceneType     int    `json:"sceneType"          dc:"场景类型:0不限制、1充电佣金收入、"`
	AccountType   int    `` /* 279-byte string literal not displayed */
	AccountNumber string `` /* 127-byte string literal not displayed */

	LimitState  int `json:"limitState" dc:"限制状态:0不限制,1限制支出、2限制收入" v:"in:0,1,2#限制状态范围有误"`
	AllowExceed int `` /* 134-byte string literal not displayed */
}

type FdAccountRes added in v0.3.0

type FdAccountRes struct {
	co_entity.FdAccount

	Detail *co_entity.FdAccountDetail `json:"detail" dc:"财务账号周期金额统计"`
}

func (*FdAccountRes) Data added in v0.3.0

func (m *FdAccountRes) Data() *FdAccountRes

func (*FdAccountRes) SetDetail added in v0.6.29

func (m *FdAccountRes) SetDetail(detail interface{})

type FdBankCardListRes added in v0.3.0

type FdBankCardListRes base_model.CollectRes[*FdBankCardRes]

type FdBankCardRes added in v0.3.0

type FdBankCardRes struct {
	co_entity.FdBankCard
}

func (*FdBankCardRes) Data added in v0.3.0

func (m *FdBankCardRes) Data() *FdBankCardRes

type FdCurrencyRes added in v0.3.0

type FdCurrencyRes struct {
	co_entity.FdCurrency
}

func (*FdCurrencyRes) Data added in v0.3.0

func (m *FdCurrencyRes) Data() *FdCurrencyRes

type FdInvoiceAuditInfo added in v0.1.112

type FdInvoiceAuditInfo struct {
	State       int    `` /* 127-byte string literal not displayed */
	AuditUserId int64  `json:"auditUserId" dc:"审核者UserId"`
	ReplyMsg    string `json:"replyMsg" dc:"审核失败时必填的原因回复"`
}

FdInvoiceAuditInfo 审核发票

type FdInvoiceDetailListRes added in v0.1.112

type FdInvoiceDetailListRes base_model.CollectRes[FdInvoiceDetailRes]

type FdInvoiceDetailRegister added in v0.1.112

type FdInvoiceDetailRegister struct {
	OverrideDo    base_interface.DoModel[co_do.FdInvoiceDetail] `json:"-"`
	TaxNumber     string                                        `json:"taxNumber"     v:"required#请输入纳税识别号" dc:"纳税识别号"`
	TaxName       string                                        `json:"taxName"       v:"required#请输入纳税人名称"  dc:"纳税人名称"`
	BillIds       string                                        `json:"billIds"       v:"required#请输入开支账单"  dc:"账单ID组"`
	Amount        int64                                         `json:"amount"        v:"required#请输入开票金额"  dc:"开票金额,单位精度:分"`
	Rate          int                                           `json:"rate"          v:"required#请输入税率"  dc:"税率,如3% 则填入3"`
	RateMount     int64                                         `json:"rateMount"     v:"required#请输入税额"  dc:"税额,单位精度:分"`
	Remark        string                                        `json:"remark"        v:"required#请输入发票内容描述"  dc:"发票内容描述"`
	Type          int                                           `json:"type"          v:"required|in:1,2#请输入发票类型"  dc:"发票类型:1电子发票,2纸质发票"`
	State         int                                           `` /* 157-byte string literal not displayed */
	AuditUserIds  int64                                         `json:"auditUserIds"  dc:"审核者UserID,多个用逗号隔开"`
	MakeType      int                                           `json:"makeType"      dc:"出票类型:1普通发票、2增值税专用发票、3专业发票"`
	MakeUserId    int64                                         `json:"makeUserId"    dc:"出票人UserID,如果是系统出票则默认-1"`
	MakeAt        *gtime.Time                                   `json:"makeAt"        dc:"出票时间"`
	CourierName   string                                        `json:"courierName"   dc:"快递名称"`
	CourierNumber string                                        `json:"courierNumber" dc:"快递编号"`
	FdInvoiceId   int64                                         `json:"fdInvoiceId"   dc:"发票抬头ID"`
	AuditUserId   int64                                         `json:"auditUserId"   dc:"审核者UserID"`
	AuditReplyMsg string                                        `json:"auditReplyMsg" dc:"审核回复,仅审核不通过时才有值"`
	AuditAt       *gtime.Time                                   `json:"auditAt"       dc:"审核时间"`
	UserId        int64                                         `json:"userId"        dc:"申请者用户ID"`
	UnionMainId   int64                                         `json:"unionMainId"   dc:"主体ID:运营商ID、服务商ID、商户ID、消费者ID"`
	BelongTo      int                                           `` /* 128-byte string literal not displayed */
}

FdInvoiceDetailRegister 申请创建发票

type FdInvoiceDetailRes added in v0.3.0

type FdInvoiceDetailRes struct {
	co_entity.FdInvoiceDetail
}

func (*FdInvoiceDetailRes) Data added in v0.3.0

type FdInvoiceListRes added in v0.1.112

type FdInvoiceListRes base_model.CollectRes[FdInvoiceRes]

type FdInvoiceRegister added in v0.1.112

type FdInvoiceRegister struct {
	OverrideDo    base_interface.DoModel[co_do.FdInvoice] `json:"-"`
	Name          string                                  `json:"name"           v:"required#请输入发票抬头名称" dc:"发票抬头名称"`
	TaxId         string                                  `json:"taxId"          v:"required#请输入纳税识别号" dc:"纳税识别号"`
	Addr          string                                  `json:"addr"           dc:"发票收件地址,限纸质"`
	Email         string                                  `json:"email"          dc:"发票收件邮箱,限电子发票"`
	UserId        int64                                   `json:"userId"         dc:"申请人UserID"`
	AuditUserId   int64                                   `json:"auditUserId"    dc:"审核人UserID"`
	AuditReplyMsg string                                  `json:"auditReplyMsg" dc:"审核回复,仅审核不通过时才有值"`
	AuditAt       *gtime.Time                             `json:"auditAt"        dc:"审核时间"`
	State         int                                     `json:"state"          dc:"状态:0待审核、1已通过、-1不通过"`
	UnionMainId   int64                                   `json:"unionMainId"    dc:"主体ID:运营商ID、服务商ID、商户ID、消费者ID"`
}

type FdInvoiceRes added in v0.3.0

type FdInvoiceRes struct {
	co_entity.FdInvoice
}

func (*FdInvoiceRes) Data added in v0.3.0

func (m *FdInvoiceRes) Data() *FdInvoiceRes

type FdMakeInvoiceDetail added in v0.1.112

type FdMakeInvoiceDetail struct {
	MakeType      int    `json:"makeType" dc:"出票类型:1普通发票、2增值税专用发票、3专业发票"`
	Type          int    `json:"type"          v:"required|in:1,2#请输入发票类型"  dc:"发票类型:1电子发票,2纸质发票"`
	MakeUserId    int64  `json:"makeUserId" dc:"开票者UserID"`
	CourierName   string `json:"courierName" dc:"快递名称,限纸质发票"`
	CourierNumber string `json:"courierNumber" dc:"快递编号,限纸质发票"`
	Email         string `json:"email"         dc:"发票收件邮箱,限电子发票"`
}

FdMakeInvoiceDetail 开发票

type ICompanyRes added in v0.3.0

type ICompanyRes interface {
	Data() *CompanyRes
	SetAdminUser(employee interface{})
}

type IEmployeeRes added in v0.3.0

type IEmployeeRes interface {
	NewTeamList() interface{}
	Data() *EmployeeRes
	SetUser(user interface{})
	SetTeamList(teamList interface{})
}

type IFdAccountBillRes added in v0.3.0

type IFdAccountBillRes interface {
	Data() *FdAccountBillRes
}

type IFdAccountDetailRes added in v0.3.12

type IFdAccountDetailRes interface {
	Data() *FdAccountDetailRes
}

type IFdAccountRes added in v0.3.0

type IFdAccountRes interface {
	Data() *FdAccountRes

	SetDetail(detail interface{})
}

type IFdBankCardRes added in v0.3.0

type IFdBankCardRes interface {
	Data() *FdBankCardRes
}

type IFdCurrencyRes added in v0.3.0

type IFdCurrencyRes interface {
	Data() *FdCurrencyRes
}

type IFdInvoiceDetailRes added in v0.3.0

type IFdInvoiceDetailRes interface {
	Data() *FdInvoiceDetailRes
}

type IFdInvoiceRes added in v0.3.0

type IFdInvoiceRes interface {
	Data() *FdInvoiceRes
}

type IRes added in v0.5.4

type IRes[T interface{}] interface {
	Data() *T
	SetAdminUser(sysUser *sys_model.SysUser)
}

type ITeamRes added in v0.3.0

type ITeamRes interface {
	Data() *TeamRes
	SetOwner(employee interface{})
	SetCaptain(employee interface{})
	SetUnionMain(unionMain interface{})
	SetParentTeam(parent interface{})
}

type Identifier

type Identifier struct {
	Company         string `p:"company" dc:"公司标识符"`
	Employee        string `p:"employee" dc:"员工标识符"`
	Team            string `p:"team" dc:"团队标识符"`
	TeamMember      string `p:"teamMember" dc:"团队成员标识符"`
	FdAccount       string `p:"fdAccount" dc:"财务账户标识符"`
	FdAccountBill   string `p:"fdAccountBill" dc:"财务账单标识符"`
	FdBankCard      string `p:"fdBankCard" dc:"财务银行卡标识符"`
	FdCurrency      string `p:"fdCurrency" dc:"财务结算货币单位标识符"`
	FdInvoice       string `p:"fdInvoice" dc:"财务发票抬头标识符"`
	FdInvoiceDetail string `p:"fdInvoiceDetail" dc:"财务发票明细标识符"`
}

type License added in v0.5.10

type License struct {
	IdcardFrontPath     string      `json:"idcardFrontPath"           dc:"身份证头像面照片" v:"required-license#请上传身份证头像面照片"`
	IdcardBackPath      string      `json:"idcardBackPath"            dc:"身份证国徽面照片" v:"required-license#请上传身份证国徽面照片"`
	IdcardNo            string      `` /* 136-byte string literal not displayed */
	IdcardExpiredDate   *gtime.Time `json:"idcardExpiredDate"         dc:"身份证有效期" v:"date#身份证日期格式错误"`
	IdcardAddress       string      `json:"idcardAddress"             dc:"身份证户籍地址" v:"max-length:128#身份证地址最大支持128个字符"`
	PersonContactName   string      `` /* 158-byte string literal not displayed */
	PersonContactMobile string      `` /* 164-byte string literal not displayed */

	BusinessLicenseName        string `` /* 145-byte string literal not displayed */
	BusinessLicenseAddress     string `` /* 145-byte string literal not displayed */
	BusinessLicensePath        string `json:"businessLicensePath"       dc:"营业执照图片地址" v:"required-license#请上传营业执照图片"`
	BusinessLicenseScope       string `json:"businessLicenseScope"      dc:"经营范围"`
	BusinessLicenseRegCapital  string `json:"businessLicenseRegCapital" dc:"注册资本" v:"max-length:32#注册资本最大支持32字符"`
	BusinessLicenseTermTime    string `json:"businessLicenseTermTime"   dc:"营业期限" v:"max-length:64#营业期限最大支持64字符"`
	BusinessLicenseOrgCode     string `json:"businessLicenseOrgCode"    dc:"组织机构代码" v:"max-length:16#组织机构代码最大支持16字符"`
	BusinessLicenseCreditCode  string `` /* 179-byte string literal not displayed */
	BusinessLicenseLegal       string `` /* 137-byte string literal not displayed */
	BusinessLicenseLegalMobile string `json:"businessLicenseLegalMobile" dc:"法人联系电话"`
	BusinessLicenseLegalPath   string `` /* 160-byte string literal not displayed */
	Remark                     string `json:"remark"                    dc:"备注"`
	BrandName                  string `json:"brandName"                 dc:"品牌名称"`
	ServerMobile               string `json:"serverMobile"               dc:"服务电话"`

	State    int `json:"state"                      description:"状态:0失效、1正常" v:"in:0,1#状态错误"`
	AuthType int `json:"authType"                   description:"主体资质认证类型:"`
}

type LicenseListRes added in v0.5.10

type LicenseListRes base_model.CollectRes[co_entity.License]

type LicenseRes added in v0.5.10

type LicenseRes co_entity.License

type MyAccountBillRes added in v0.4.7

type MyAccountBillRes []AccountBillRes

type MyCompanyRes

type MyCompanyRes co_entity.Company

type MyProfileRes

type MyProfileRes struct {
	User         *sys_model.SysUser `json:"user" dc:"员工信息"`
	IsAdmin      bool               `json:"isAdmin" dc:"是否是主体的管理员"`
	IsSuperAdmin bool               `json:"isSuperAdmin" dc:"是否是系统超级管理员"`
	Employee     *EmployeeRes       `json:"employee" dc:"员工信息"`
}

type MyTeamListRes

type MyTeamListRes []MyTeamRes

type MyTeamRes

type MyTeamRes struct {
	TeamRes
	MemberItems []*EmployeeRes `json:"memberItems" dc:"团队或小组成员"`
}

type TableName

type TableName struct {
	Company         string `p:"company" dc:"公司表名"`
	Employee        string `p:"employee" dc:"员工表名"`
	Team            string `p:"team" dc:"团队表名"`
	TeamMember      string `p:"teamMember" dc:"团队成员表名"`
	FdAccount       string `p:"fdAccount" dc:"财务账户表名"`
	FdAccountBill   string `p:"fdAccountBill" dc:"财务账单表名"`
	FdBankCard      string `p:"fdBankCard" dc:"财务银行卡表名"`
	FdCurrency      string `p:"fdCurrency" dc:"财务结算货币单位表名"`
	FdInvoice       string `p:"fdInvoice" dc:"财务发票抬头表名"`
	FdInvoiceDetail string `p:"fdInvoiceDetail" dc:"财务发票明细表名"`
}

type Team

type Team struct {
	OverrideDo        base_interface.DoModel[co_do.CompanyTeam]       `json:"-"`
	TeamMemberDo      base_interface.DoModel[co_do.CompanyTeamMember] `json:"-"`
	Id                int64                                           `json:"id"                dc:"ID"`
	Name              string                                          `` /* 153-byte string literal not displayed */
	OwnerEmployeeId   int64                                           `json:"ownerEmployeeId"   dc:"团队所有者/业务总监/业务经理/团队队长"`
	CaptainEmployeeId int64                                           `json:"captainEmployeeId" dc:"团队队长编号/小组组长"`
	ParentId          int64                                           `json:"parentId" dc:"团队或小组父级ID"`
	Remark            string                                          `json:"remark"            dc:"备注"`
}

type TeamInviteCodeRes added in v0.6.10

type TeamInviteCodeRes struct {
	Team      co_entity.CompanyTeam `json:"team" dc:"团队信息"`
	InviteRes *sys_model.InviteRes  `json:"inviteRes" dc:"邀约信息"`
}

type TeamMemberRes added in v0.1.99

type TeamMemberRes struct {
	co_entity.CompanyTeamMember
	Employee   *EmployeeRes `json:"employee"   dc:"成员"`
	InviteUser *EmployeeRes `json:"inviteUser" dc:"邀约人"`
	UnionMain  *CompanyRes  `json:"unionMain"  dc:"关联主体"`
}

type TeamRes

type TeamRes struct {
	co_entity.CompanyTeam
	Owner     *EmployeeRes `json:"owner" dc:"团队所有者/业务总监/业务经理/团队队长"`
	Captain   *EmployeeRes `json:"captain" dc:"团队队长编号/小组组长"`
	UnionMain *CompanyRes  `json:"unionMain" dc:"关联主体"`
	Parent    *TeamRes     `json:"parent" dc:"团队或小组父级ID"`
}

func (*TeamRes) Data added in v0.3.0

func (m *TeamRes) Data() *TeamRes

func (*TeamRes) SetCaptain added in v0.5.4

func (m *TeamRes) SetCaptain(employee interface{})

func (*TeamRes) SetOwner added in v0.5.4

func (m *TeamRes) SetOwner(employee interface{})

func (*TeamRes) SetParentTeam added in v0.5.4

func (m *TeamRes) SetParentTeam(parent interface{})

func (*TeamRes) SetUnionMain added in v0.5.4

func (m *TeamRes) SetUnionMain(unionMain interface{})

type UpdateAccount added in v0.4.7

type UpdateAccount struct {
	OverrideDo base_interface.DoModel[co_do.FdAccount] `json:"-"`

	Name          *string `json:"name" dc:"账户开户名称,姓名或者是单位全称"`
	AccountType   *int    `` /* 279-byte string literal not displayed */
	AccountNumber *string `` /* 127-byte string literal not displayed */
	AllowExceed   *int    `` /* 134-byte string literal not displayed */
}

type UpdateEmployee added in v0.4.3

type UpdateEmployee struct {
	OverrideDo base_interface.DoModel[co_do.CompanyEmployee] `json:"-"`
	Id         int64                                         `json:"id"           dc:"ID,保持与USERID一致" v:"required#请输入员工ID"`
	No         *string                                       `json:"no"           v:"max-length:16#工号长度超出限定16字符" dc:"工号"`
	Name       *string                                       `json:"name"         v:"required|max-length:16#名称不能为空|工号长度超出限定16字符" dc:"姓名"`
	Mobile     *string                                       `json:"mobile"       v:"phone#手机号校验失败" dc:"手机号"`
	State      *int                                          `json:"state"        v:"in:-1,0,1#请选择员工状态" dc:"状态:-1已离职,0待确认,1已入职"`
	HiredAt    *gtime.Time                                   `json:"hiredAt"      v:"date-format:Y-m-d#入职日期格式错误" dc:"入职日期"`
	Sex        *int                                          `json:"sex"          dc:"性别:0女 1男"`
	Remark     *string                                       `json:"remark"       description:"备注"`
}

Jump to

Keyboard shortcuts

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