Documentation ¶
Index ¶
- type CompanyColumns
- type CompanyDao
- func (dao *CompanyDao) Columns() CompanyColumns
- func (dao *CompanyDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *CompanyDao) DB() gdb.DB
- func (dao *CompanyDao) Group() string
- func (dao *CompanyDao) Table() string
- func (dao *CompanyDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type CompanyEmployeeColumns
- type CompanyEmployeeDao
- func (dao *CompanyEmployeeDao) Columns() CompanyEmployeeColumns
- func (dao *CompanyEmployeeDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *CompanyEmployeeDao) DB() gdb.DB
- func (dao *CompanyEmployeeDao) Group() string
- func (dao *CompanyEmployeeDao) Table() string
- func (dao *CompanyEmployeeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type CompanyTeamColumns
- type CompanyTeamDao
- func (dao *CompanyTeamDao) Columns() CompanyTeamColumns
- func (dao *CompanyTeamDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *CompanyTeamDao) DB() gdb.DB
- func (dao *CompanyTeamDao) Group() string
- func (dao *CompanyTeamDao) Table() string
- func (dao *CompanyTeamDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
- type CompanyTeamMemberColumns
- type CompanyTeamMemberDao
- func (dao *CompanyTeamMemberDao) Columns() CompanyTeamMemberColumns
- func (dao *CompanyTeamMemberDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
- func (dao *CompanyTeamMemberDao) DB() gdb.DB
- func (dao *CompanyTeamMemberDao) Group() string
- func (dao *CompanyTeamMemberDao) Table() string
- func (dao *CompanyTeamMemberDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompanyColumns ¶
type CompanyColumns struct { Id string // ID Name string // 名称 ContactName string // 商务联系人 ContactMobile string // 商务联系电话 UserId string // 管理员ID ParentId string // 父级ID State string // 状态:0未启用,1正常 Remark string // 备注 CreatedBy string // 创建者 CreatedAt string // 创建时间 UpdatedBy string // 更新者 UpdatedAt string // 更新时间 DeletedBy string // 删除者 DeletedAt string // 删除时间 }
CompanyColumns defines and stores column names for table co_company.
type CompanyDao ¶
type CompanyDao struct {
// contains filtered or unexported fields
}
CompanyDao is the data access object for table co_company.
func NewCompanyDao ¶
func NewCompanyDao(proxy ...dao_interface.IDao) *CompanyDao
NewCompanyDao creates and returns a new DAO object for table data access.
func (*CompanyDao) Columns ¶
func (dao *CompanyDao) Columns() CompanyColumns
Columns returns all column names of current dao.
func (*CompanyDao) Ctx ¶
func (dao *CompanyDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*CompanyDao) DB ¶
func (dao *CompanyDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*CompanyDao) Group ¶
func (dao *CompanyDao) Group() string
Group returns the configuration group name of database of current dao.
func (*CompanyDao) Table ¶
func (dao *CompanyDao) Table() string
Table returns the table name of current dao.
func (*CompanyDao) Transaction ¶
func (dao *CompanyDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.
Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.
type CompanyEmployeeColumns ¶
type CompanyEmployeeColumns struct { Id string // ID,保持与USERID一致 No string // 工号 Avatar string // 头像 Name string // 姓名 Mobile string // 手机号 UnionMainId string // 所属主体 State string // 状态: -1已离职,0待确认,1已入职 LastActiveIp string // 最后活跃IP HiredAt string // 入职时间 CreatedBy string // CreatedAt string // UpdatedBy string // UpdatedAt string // DeletedBy string // DeletedAt string // }
CompanyEmployeeColumns defines and stores column names for table co_company_employee.
type CompanyEmployeeDao ¶
type CompanyEmployeeDao struct {
// contains filtered or unexported fields
}
CompanyEmployeeDao is the data access object for table co_company_employee.
func NewCompanyEmployeeDao ¶
func NewCompanyEmployeeDao(proxy ...dao_interface.IDao) *CompanyEmployeeDao
NewCompanyEmployeeDao creates and returns a new DAO object for table data access.
func (*CompanyEmployeeDao) Columns ¶
func (dao *CompanyEmployeeDao) Columns() CompanyEmployeeColumns
Columns returns all column names of current dao.
func (*CompanyEmployeeDao) Ctx ¶
func (dao *CompanyEmployeeDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*CompanyEmployeeDao) DB ¶
func (dao *CompanyEmployeeDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*CompanyEmployeeDao) Group ¶
func (dao *CompanyEmployeeDao) Group() string
Group returns the configuration group name of database of current dao.
func (*CompanyEmployeeDao) Table ¶
func (dao *CompanyEmployeeDao) Table() string
Table returns the table name of current dao.
func (*CompanyEmployeeDao) Transaction ¶
func (dao *CompanyEmployeeDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.
Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.
type CompanyTeamColumns ¶
type CompanyTeamColumns struct { Id string // Name string // 团队名称,公司维度下唯一 OwnerEmployeeId string // 团队所有者/业务总监/业务经理/团队队长 CaptainEmployeeId string // 团队队长编号/小组组长 UnionMainId string // 所属主体单位ID ParentId string // 父级ID Remark string // 备注 CreatedAt string // UpdatedAt string // DeletedAt string // }
CompanyTeamColumns defines and stores column names for table co_company_team.
type CompanyTeamDao ¶
type CompanyTeamDao struct {
// contains filtered or unexported fields
}
CompanyTeamDao is the data access object for table co_company_team.
func NewCompanyTeamDao ¶
func NewCompanyTeamDao(proxy ...dao_interface.IDao) *CompanyTeamDao
NewCompanyTeamDao creates and returns a new DAO object for table data access.
func (*CompanyTeamDao) Columns ¶
func (dao *CompanyTeamDao) Columns() CompanyTeamColumns
Columns returns all column names of current dao.
func (*CompanyTeamDao) Ctx ¶
func (dao *CompanyTeamDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*CompanyTeamDao) DB ¶
func (dao *CompanyTeamDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*CompanyTeamDao) Group ¶
func (dao *CompanyTeamDao) Group() string
Group returns the configuration group name of database of current dao.
func (*CompanyTeamDao) Table ¶
func (dao *CompanyTeamDao) Table() string
Table returns the table name of current dao.
func (*CompanyTeamDao) Transaction ¶
func (dao *CompanyTeamDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.
Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.
type CompanyTeamMemberColumns ¶
type CompanyTeamMemberColumns struct { Id string // ID TeamId string // 团队ID EmployeeId string // 成员ID InviteUserId string // 邀约人ID UnionMainId string // 关联主体ID JoinAt string // 加入时间 }
CompanyTeamMemberColumns defines and stores column names for table co_company_team_member.
type CompanyTeamMemberDao ¶
type CompanyTeamMemberDao struct {
// contains filtered or unexported fields
}
CompanyTeamMemberDao is the data access object for table co_company_team_member.
func NewCompanyTeamMemberDao ¶
func NewCompanyTeamMemberDao(proxy ...dao_interface.IDao) *CompanyTeamMemberDao
NewCompanyTeamMemberDao creates and returns a new DAO object for table data access.
func (*CompanyTeamMemberDao) Columns ¶
func (dao *CompanyTeamMemberDao) Columns() CompanyTeamMemberColumns
Columns returns all column names of current dao.
func (*CompanyTeamMemberDao) Ctx ¶
func (dao *CompanyTeamMemberDao) Ctx(ctx context.Context, cacheOption ...*gdb.CacheOption) *gdb.Model
Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (*CompanyTeamMemberDao) DB ¶
func (dao *CompanyTeamMemberDao) DB() gdb.DB
DB retrieves and returns the underlying raw database management object of current DAO.
func (*CompanyTeamMemberDao) Group ¶
func (dao *CompanyTeamMemberDao) Group() string
Group returns the configuration group name of database of current dao.
func (*CompanyTeamMemberDao) Table ¶
func (dao *CompanyTeamMemberDao) Table() string
Table returns the table name of current dao.
func (*CompanyTeamMemberDao) Transaction ¶
func (dao *CompanyTeamMemberDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error)
Transaction wraps the transaction logic using function f. It rollbacks the transaction and returns the error from function f if it returns non-nil error. It commits the transaction and returns nil if function f returns nil.
Note that, you should not Commit or Rollback the transaction in function f as it is automatically handled by this function.