初始
This commit is contained in:
29
internal/app/wxApplet/dao/bus_askforleave.go
Normal file
29
internal/app/wxApplet/dao/bus_askforleave.go
Normal file
@ -0,0 +1,29 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao操作代码。
|
||||
// 生成日期:2025-03-27 14:14:25
|
||||
// 生成路径: internal/app/wxApplet/dao/bus_askforleave.go
|
||||
// 生成人:gfast
|
||||
// desc:请假
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/wxApplet/dao/internal"
|
||||
)
|
||||
|
||||
// busAskforleaveDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type busAskforleaveDao struct {
|
||||
*internal.BusAskforleaveDao
|
||||
}
|
||||
|
||||
var (
|
||||
// BusAskforleave is globally public accessible object for table tools_gen_table operations.
|
||||
BusAskforleave = busAskforleaveDao{
|
||||
internal.NewBusAskforleaveDao(),
|
||||
}
|
||||
)
|
||||
|
||||
// Fill with you ideas below.
|
||||
29
internal/app/wxApplet/dao/bus_attendance.go
Normal file
29
internal/app/wxApplet/dao/bus_attendance.go
Normal file
@ -0,0 +1,29 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao操作代码。
|
||||
// 生成日期:2023-08-07 16:29:52
|
||||
// 生成路径: internal/app/wxApplet/dao/bus_attendance.go
|
||||
// 生成人:gfast
|
||||
// desc:考勤
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/wxApplet/dao/internal"
|
||||
)
|
||||
|
||||
// busAttendanceDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type busAttendanceDao struct {
|
||||
*internal.BusAttendanceDao
|
||||
}
|
||||
|
||||
var (
|
||||
// BusAttendance is globally public accessible object for table tools_gen_table operations.
|
||||
BusAttendance = busAttendanceDao{
|
||||
internal.NewBusAttendanceDao(),
|
||||
}
|
||||
)
|
||||
|
||||
// Fill with you ideas below.
|
||||
29
internal/app/wxApplet/dao/bus_construction_project.go
Normal file
29
internal/app/wxApplet/dao/bus_construction_project.go
Normal file
@ -0,0 +1,29 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao操作代码。
|
||||
// 生成日期:2023-08-07 11:17:50
|
||||
// 生成路径: internal/app/wxApplet/dao/bus_construction_project.go
|
||||
// 生成人:gfast
|
||||
// desc:施工人员对应项目
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/wxApplet/dao/internal"
|
||||
)
|
||||
|
||||
// busConstructionProjectDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type busConstructionProjectDao struct {
|
||||
*internal.BusConstructionProjectDao
|
||||
}
|
||||
|
||||
var (
|
||||
// BusConstructionProject is globally public accessible object for table tools_gen_table operations.
|
||||
BusConstructionProject = busConstructionProjectDao{
|
||||
internal.NewBusConstructionProjectDao(),
|
||||
}
|
||||
)
|
||||
|
||||
// Fill with you ideas below.
|
||||
29
internal/app/wxApplet/dao/bus_construction_user.go
Normal file
29
internal/app/wxApplet/dao/bus_construction_user.go
Normal file
@ -0,0 +1,29 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao操作代码。
|
||||
// 生成日期:2023-08-07 11:17:50
|
||||
// 生成路径: internal/app/wxApplet/dao/bus_construction_user.go
|
||||
// 生成人:gfast
|
||||
// desc:施工人员
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/wxApplet/dao/internal"
|
||||
)
|
||||
|
||||
// busConstructionUserDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type busConstructionUserDao struct {
|
||||
*internal.BusConstructionUserDao
|
||||
}
|
||||
|
||||
var (
|
||||
// BusConstructionUser is globally public accessible object for table tools_gen_table operations.
|
||||
BusConstructionUser = busConstructionUserDao{
|
||||
internal.NewBusConstructionUserDao(),
|
||||
}
|
||||
)
|
||||
|
||||
// Fill with you ideas below.
|
||||
29
internal/app/wxApplet/dao/bus_construction_user_file.go
Normal file
29
internal/app/wxApplet/dao/bus_construction_user_file.go
Normal file
@ -0,0 +1,29 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao操作代码。
|
||||
// 生成日期:2023-08-07 11:17:55
|
||||
// 生成路径: internal/app/wxApplet/dao/bus_construction_user_file.go
|
||||
// 生成人:gfast
|
||||
// desc:微信用户的文件存储
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/wxApplet/dao/internal"
|
||||
)
|
||||
|
||||
// busConstructionUserFileDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type busConstructionUserFileDao struct {
|
||||
*internal.BusConstructionUserFileDao
|
||||
}
|
||||
|
||||
var (
|
||||
// BusConstructionUserFile is globally public accessible object for table tools_gen_table operations.
|
||||
BusConstructionUserFile = busConstructionUserFileDao{
|
||||
internal.NewBusConstructionUserFileDao(),
|
||||
}
|
||||
)
|
||||
|
||||
// Fill with you ideas below.
|
||||
29
internal/app/wxApplet/dao/bus_construction_user_post.go
Normal file
29
internal/app/wxApplet/dao/bus_construction_user_post.go
Normal file
@ -0,0 +1,29 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao操作代码。
|
||||
// 生成日期:2023-08-07 11:17:55
|
||||
// 生成路径: internal/app/wxApplet/dao/bus_construction_user_post.go
|
||||
// 生成人:gfast
|
||||
// desc:施工人员岗位
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/wxApplet/dao/internal"
|
||||
)
|
||||
|
||||
// busConstructionUserPostDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type busConstructionUserPostDao struct {
|
||||
*internal.BusConstructionUserPostDao
|
||||
}
|
||||
|
||||
var (
|
||||
// BusConstructionUserPost is globally public accessible object for table tools_gen_table operations.
|
||||
BusConstructionUserPost = busConstructionUserPostDao{
|
||||
internal.NewBusConstructionUserPostDao(),
|
||||
}
|
||||
)
|
||||
|
||||
// Fill with you ideas below.
|
||||
29
internal/app/wxApplet/dao/bus_labourservice.go
Normal file
29
internal/app/wxApplet/dao/bus_labourservice.go
Normal file
@ -0,0 +1,29 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao操作代码。
|
||||
// 生成日期:2023-08-14 11:24:31
|
||||
// 生成路径: internal/app/wxApplet/dao/bus_labourservice.go
|
||||
// 生成人:gfast
|
||||
// desc:劳务公司
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/wxApplet/dao/internal"
|
||||
)
|
||||
|
||||
// busLabourserviceDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type busLabourserviceDao struct {
|
||||
*internal.BusLabourserviceDao
|
||||
}
|
||||
|
||||
var (
|
||||
// BusLabourservice is globally public accessible object for table tools_gen_table operations.
|
||||
BusLabourservice = busLabourserviceDao{
|
||||
internal.NewBusLabourserviceDao(),
|
||||
}
|
||||
)
|
||||
|
||||
// Fill with you ideas below.
|
||||
120
internal/app/wxApplet/dao/internal/bus_askforleave.go
Normal file
120
internal/app/wxApplet/dao/internal/bus_askforleave.go
Normal file
@ -0,0 +1,120 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao internal操作代码。
|
||||
// 生成日期:2025-03-27 14:14:25
|
||||
// 生成路径: internal/app/wxApplet/dao/internal/bus_askforleave.go
|
||||
// 生成人:gfast
|
||||
// desc:请假
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// BusAskforleaveDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
type BusAskforleaveDao struct {
|
||||
table string // Table is the underlying table name of the DAO.
|
||||
group string // Group is the database configuration group name of current DAO.
|
||||
columns BusAskforleaveColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
|
||||
}
|
||||
|
||||
// BusAskforleaveColumns defines and stores column names for table bus_askforleave.
|
||||
type BusAskforleaveColumns struct {
|
||||
Id string // 主键ID
|
||||
ProjectId string // 项目ID
|
||||
ProjectName string // 项目名称
|
||||
TeamId string // 班组ID
|
||||
TeamName string // 班组名称
|
||||
StartTime string // 开始时间
|
||||
EndTime string // 结束时间
|
||||
Argument string // 请假理由
|
||||
Ganger string // 班组长
|
||||
GangerOpinion string // 班组长意见(1未读 2同意 3拒绝)
|
||||
GangerExplain string // 拒绝理由
|
||||
GangerTime string // 班组长操作时间
|
||||
Manager string // 管理员
|
||||
ManagerOpinion string // 管理员意见(1未读 2同意 3拒绝)
|
||||
ManagerExplain string // 拒绝理由
|
||||
ManagerTime string // 管理员操作时间
|
||||
CreateBy string // 创建人
|
||||
UpdateBy string // 更新人
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 删除时间
|
||||
Remark string // 备注
|
||||
Openid string // 备注
|
||||
}
|
||||
|
||||
var busAskforleaveColumns = BusAskforleaveColumns{
|
||||
Id: "id",
|
||||
ProjectId: "project_id",
|
||||
ProjectName: "project_name",
|
||||
TeamId: "team_id",
|
||||
TeamName: "team_name",
|
||||
StartTime: "start time",
|
||||
EndTime: "end_time",
|
||||
Argument: "argument",
|
||||
Ganger: "ganger",
|
||||
GangerOpinion: "ganger_opinion",
|
||||
GangerExplain: "ganger_explain",
|
||||
GangerTime: "ganger_time",
|
||||
Manager: "manager",
|
||||
ManagerOpinion: "manager_opinion",
|
||||
ManagerExplain: "manager_explain",
|
||||
ManagerTime: "manager_time",
|
||||
CreateBy: "create_by",
|
||||
UpdateBy: "update_by",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
Remark: "remark",
|
||||
Openid: "openid",
|
||||
}
|
||||
|
||||
// NewBusAskforleaveDao creates and returns a new DAO object for table data access.
|
||||
func NewBusAskforleaveDao() *BusAskforleaveDao {
|
||||
return &BusAskforleaveDao{
|
||||
group: "default",
|
||||
table: "bus_askforleave",
|
||||
columns: busAskforleaveColumns,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *BusAskforleaveDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *BusAskforleaveDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *BusAskforleaveDao) Columns() BusAskforleaveColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *BusAskforleaveDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *BusAskforleaveDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (dao *BusAskforleaveDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
110
internal/app/wxApplet/dao/internal/bus_attendance.go
Normal file
110
internal/app/wxApplet/dao/internal/bus_attendance.go
Normal file
@ -0,0 +1,110 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao internal操作代码。
|
||||
// 生成日期:2023-08-07 16:29:52
|
||||
// 生成路径: internal/app/wxApplet/dao/internal/bus_attendance.go
|
||||
// 生成人:gfast
|
||||
// desc:考勤
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// BusAttendanceDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
type BusAttendanceDao struct {
|
||||
table string // Table is the underlying table name of the DAO.
|
||||
group string // Group is the database configuration group name of current DAO.
|
||||
columns BusAttendanceColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
|
||||
}
|
||||
|
||||
// BusAttendanceColumns defines and stores column names for table bus_attendance.
|
||||
type BusAttendanceColumns struct {
|
||||
Id string // 序号
|
||||
UserName string // 人员姓名
|
||||
PacePhoto string // 人脸照
|
||||
ProjectId string // 项目id
|
||||
CreateBy string // 创建者
|
||||
UpdateBy string // 更新者
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 删除时间
|
||||
ClockOn string // 上午打卡
|
||||
ClockOff string // 下午打卡
|
||||
PrintingDate string // 年月日打卡时间
|
||||
IsPinch string // 打卡状态
|
||||
Openid string // 微信id
|
||||
PinchOpenId string // 代打id
|
||||
ClockRecord string // 多次打卡时间记录
|
||||
PinchUserName string // 代打人姓名
|
||||
Commuter string // 上下班(1上班2下班)
|
||||
}
|
||||
|
||||
var busAttendanceColumns = BusAttendanceColumns{
|
||||
Id: "id",
|
||||
UserName: "user_name",
|
||||
PacePhoto: "pace_photo",
|
||||
ProjectId: "project_id",
|
||||
CreateBy: "create_by",
|
||||
UpdateBy: "update_by",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
ClockOn: "clock_on",
|
||||
ClockOff: "clock_off",
|
||||
PrintingDate: "printing_date",
|
||||
IsPinch: "is_pinch",
|
||||
Openid: "openid",
|
||||
PinchOpenId: "pinch_openId",
|
||||
ClockRecord: "clock_record",
|
||||
PinchUserName: "pinch_user_name",
|
||||
Commuter: "commuter",
|
||||
}
|
||||
|
||||
// NewBusAttendanceDao creates and returns a new DAO object for table data access.
|
||||
func NewBusAttendanceDao() *BusAttendanceDao {
|
||||
return &BusAttendanceDao{
|
||||
group: "default",
|
||||
table: "bus_attendance",
|
||||
columns: busAttendanceColumns,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *BusAttendanceDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *BusAttendanceDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *BusAttendanceDao) Columns() BusAttendanceColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *BusAttendanceDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *BusAttendanceDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (dao *BusAttendanceDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao internal操作代码。
|
||||
// 生成日期:2023-08-07 11:17:50
|
||||
// 生成路径: internal/app/wxApplet/dao/internal/bus_construction_project.go
|
||||
// 生成人:gfast
|
||||
// desc:施工人员对应项目
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// BusConstructionProjectDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
type BusConstructionProjectDao struct {
|
||||
table string // Table is the underlying table name of the DAO.
|
||||
group string // Group is the database configuration group name of current DAO.
|
||||
columns BusConstructionProjectColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
|
||||
}
|
||||
|
||||
// BusConstructionProjectColumns defines and stores column names for table bus_construction_project.
|
||||
type BusConstructionProjectColumns struct {
|
||||
Id string // 序号
|
||||
ConstructionUserId string // 微信用户id
|
||||
ProjectId string // 项目id
|
||||
}
|
||||
|
||||
var busConstructionProjectColumns = BusConstructionProjectColumns{
|
||||
Id: "id",
|
||||
ConstructionUserId: "construction_user_id",
|
||||
ProjectId: "project_id",
|
||||
}
|
||||
|
||||
// NewBusConstructionProjectDao creates and returns a new DAO object for table data access.
|
||||
func NewBusConstructionProjectDao() *BusConstructionProjectDao {
|
||||
return &BusConstructionProjectDao{
|
||||
group: "default",
|
||||
table: "bus_construction_project",
|
||||
columns: busConstructionProjectColumns,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *BusConstructionProjectDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *BusConstructionProjectDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *BusConstructionProjectDao) Columns() BusConstructionProjectColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *BusConstructionProjectDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *BusConstructionProjectDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (dao *BusConstructionProjectDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
133
internal/app/wxApplet/dao/internal/bus_construction_user.go
Normal file
133
internal/app/wxApplet/dao/internal/bus_construction_user.go
Normal file
@ -0,0 +1,133 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao internal操作代码。
|
||||
// 生成日期:2023-08-07 11:17:50
|
||||
// 生成路径: internal/app/wxApplet/dao/internal/bus_construction_user.go
|
||||
// 生成人:gfast
|
||||
// desc:施工人员
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// BusConstructionUserDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
type BusConstructionUserDao struct {
|
||||
table string // Table is the underlying table name of the DAO.
|
||||
group string // Group is the database configuration group name of current DAO.
|
||||
columns BusConstructionUserColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
|
||||
}
|
||||
|
||||
// BusConstructionUserColumns defines and stores column names for table bus_construction_user.
|
||||
type BusConstructionUserColumns struct {
|
||||
Id string // 序号
|
||||
Openid string // 微信id
|
||||
NickName string // 微信名称
|
||||
TeamId string // 班组id
|
||||
HeadIcon string // 登陆照片
|
||||
PacePhoto string // 人脸照
|
||||
UserName string // 人员姓名
|
||||
ProjectId string // 项目id
|
||||
Status string // 状态
|
||||
WxOrPc string // 状态
|
||||
IsPinch string // 是否代打
|
||||
IfManagement string // 是否班组管理
|
||||
CreateBy string // 创建者
|
||||
UpdateBy string // 更新者
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 删除时间
|
||||
Phone string // 电话
|
||||
Sex string // 性别
|
||||
SfzNation string // 身份证民族
|
||||
SfzNumber string // 身份证号码
|
||||
SfzStart string // 身份证有效开始期
|
||||
SfzEnd string // 身份证有效结束期
|
||||
SfzSite string // 身份证地址
|
||||
NativePlace string // 籍贯
|
||||
YhkNumber string // 银行卡号
|
||||
YhkOpeningBank string // 开户行
|
||||
YhkCardholder string // 持卡人
|
||||
TypeOfWork string // 持卡人
|
||||
LabourserviceId string // 劳务公司ID
|
||||
}
|
||||
|
||||
var busConstructionUserColumns = BusConstructionUserColumns{
|
||||
Id: "id",
|
||||
Openid: "openid",
|
||||
NickName: "nick_name",
|
||||
TeamId: "team_id",
|
||||
HeadIcon: "head_icon",
|
||||
PacePhoto: "pace_photo",
|
||||
UserName: "user_name",
|
||||
ProjectId: "project_id",
|
||||
Status: "status",
|
||||
IsPinch: "is_pinch",
|
||||
IfManagement: "if_management",
|
||||
CreateBy: "create_by",
|
||||
UpdateBy: "update_by",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
Phone: "phone",
|
||||
Sex: "sex",
|
||||
SfzNation: "sfz_nation",
|
||||
SfzNumber: "sfz_number",
|
||||
SfzStart: "sfz_start",
|
||||
SfzEnd: "sfz_end",
|
||||
SfzSite: "sfz_site",
|
||||
NativePlace: "native_place",
|
||||
YhkNumber: "yhk_number",
|
||||
YhkOpeningBank: "yhk_opening_bank",
|
||||
YhkCardholder: "yhk_cardholder",
|
||||
TypeOfWork: "type_of_work",
|
||||
LabourserviceId: "labourservice_id",
|
||||
}
|
||||
|
||||
// NewBusConstructionUserDao creates and returns a new DAO object for table data access.
|
||||
func NewBusConstructionUserDao() *BusConstructionUserDao {
|
||||
return &BusConstructionUserDao{
|
||||
group: "default",
|
||||
table: "bus_construction_user",
|
||||
columns: busConstructionUserColumns,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *BusConstructionUserDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *BusConstructionUserDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *BusConstructionUserDao) Columns() BusConstructionUserColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *BusConstructionUserDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *BusConstructionUserDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (dao *BusConstructionUserDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
@ -0,0 +1,94 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao internal操作代码。
|
||||
// 生成日期:2023-08-07 11:17:55
|
||||
// 生成路径: internal/app/wxApplet/dao/internal/bus_construction_user_file.go
|
||||
// 生成人:gfast
|
||||
// desc:微信用户的文件存储
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// BusConstructionUserFileDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
type BusConstructionUserFileDao struct {
|
||||
table string // Table is the underlying table name of the DAO.
|
||||
group string // Group is the database configuration group name of current DAO.
|
||||
columns BusConstructionUserFileColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
|
||||
}
|
||||
|
||||
// BusConstructionUserFileColumns defines and stores column names for table bus_construction_user_file.
|
||||
type BusConstructionUserFileColumns struct {
|
||||
Id string // 主键ID
|
||||
UserId string // 用户id
|
||||
UserImgType string // 图片类型
|
||||
Path string // 图片路径
|
||||
CreateBy string // 创建者
|
||||
UpdateBy string // 更新者
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 删除时间
|
||||
Remark string // 备注
|
||||
}
|
||||
|
||||
var busConstructionUserFileColumns = BusConstructionUserFileColumns{
|
||||
Id: "id",
|
||||
UserId: "user_id",
|
||||
UserImgType: "user_img_type",
|
||||
Path: "path",
|
||||
CreateBy: "create_by",
|
||||
UpdateBy: "update_by",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
Remark: "remark",
|
||||
}
|
||||
|
||||
// NewBusConstructionUserFileDao creates and returns a new DAO object for table data access.
|
||||
func NewBusConstructionUserFileDao() *BusConstructionUserFileDao {
|
||||
return &BusConstructionUserFileDao{
|
||||
group: "default",
|
||||
table: "bus_construction_user_file",
|
||||
columns: busConstructionUserFileColumns,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *BusConstructionUserFileDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *BusConstructionUserFileDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *BusConstructionUserFileDao) Columns() BusConstructionUserFileColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *BusConstructionUserFileDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *BusConstructionUserFileDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (dao *BusConstructionUserFileDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao internal操作代码。
|
||||
// 生成日期:2023-08-07 11:17:55
|
||||
// 生成路径: internal/app/wxApplet/dao/internal/bus_construction_user_post.go
|
||||
// 生成人:gfast
|
||||
// desc:施工人员岗位
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// BusConstructionUserPostDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
type BusConstructionUserPostDao struct {
|
||||
table string // Table is the underlying table name of the DAO.
|
||||
group string // Group is the database configuration group name of current DAO.
|
||||
columns BusConstructionUserPostColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
|
||||
}
|
||||
|
||||
// BusConstructionUserPostColumns defines and stores column names for table bus_construction_user_post.
|
||||
type BusConstructionUserPostColumns struct {
|
||||
Id string // 序号
|
||||
ConstructionUserId string // 施工人员id
|
||||
PostId string // 岗位id
|
||||
}
|
||||
|
||||
var busConstructionUserPostColumns = BusConstructionUserPostColumns{
|
||||
Id: "id",
|
||||
ConstructionUserId: "construction_user_id",
|
||||
PostId: "post_id",
|
||||
}
|
||||
|
||||
// NewBusConstructionUserPostDao creates and returns a new DAO object for table data access.
|
||||
func NewBusConstructionUserPostDao() *BusConstructionUserPostDao {
|
||||
return &BusConstructionUserPostDao{
|
||||
group: "default",
|
||||
table: "bus_construction_user_post",
|
||||
columns: busConstructionUserPostColumns,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *BusConstructionUserPostDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *BusConstructionUserPostDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *BusConstructionUserPostDao) Columns() BusConstructionUserPostColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *BusConstructionUserPostDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *BusConstructionUserPostDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (dao *BusConstructionUserPostDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
94
internal/app/wxApplet/dao/internal/bus_labourservice.go
Normal file
94
internal/app/wxApplet/dao/internal/bus_labourservice.go
Normal file
@ -0,0 +1,94 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao internal操作代码。
|
||||
// 生成日期:2023-08-14 11:24:31
|
||||
// 生成路径: internal/app/wxApplet/dao/internal/bus_labourservice.go
|
||||
// 生成人:gfast
|
||||
// desc:劳务公司
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// BusLabourserviceDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
type BusLabourserviceDao struct {
|
||||
table string // Table is the underlying table name of the DAO.
|
||||
group string // Group is the database configuration group name of current DAO.
|
||||
columns BusLabourserviceColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
|
||||
}
|
||||
|
||||
// BusLabourserviceColumns defines and stores column names for table bus_labourservice.
|
||||
type BusLabourserviceColumns struct {
|
||||
Id string // 主键ID
|
||||
Name string // 劳务公司
|
||||
Principal string // 负责人
|
||||
Phone string // 联系电话
|
||||
CreateBy string // 创建人
|
||||
UpdateBy string // 更新人
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 删除时间
|
||||
Remark string // 备注
|
||||
}
|
||||
|
||||
var busLabourserviceColumns = BusLabourserviceColumns{
|
||||
Id: "id",
|
||||
Name: "name",
|
||||
Principal: "principal",
|
||||
Phone: "phone",
|
||||
CreateBy: "create_by",
|
||||
UpdateBy: "update_by",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
Remark: "remark",
|
||||
}
|
||||
|
||||
// NewBusLabourserviceDao creates and returns a new DAO object for table data access.
|
||||
func NewBusLabourserviceDao() *BusLabourserviceDao {
|
||||
return &BusLabourserviceDao{
|
||||
group: "default",
|
||||
table: "bus_labourservice",
|
||||
columns: busLabourserviceColumns,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *BusLabourserviceDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *BusLabourserviceDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *BusLabourserviceDao) Columns() BusLabourserviceColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *BusLabourserviceDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *BusLabourserviceDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (dao *BusLabourserviceDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
90
internal/app/wxApplet/dao/internal/sys_project_team.go
Normal file
90
internal/app/wxApplet/dao/internal/sys_project_team.go
Normal file
@ -0,0 +1,90 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao internal操作代码。
|
||||
// 生成日期:2023-08-15 09:34:52
|
||||
// 生成路径: internal/app/wxApplet/dao/internal/sys_project_team.go
|
||||
// 生成人:gfast
|
||||
// desc:项目班组
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SysProjectTeamDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
type SysProjectTeamDao struct {
|
||||
table string // Table is the underlying table name of the DAO.
|
||||
group string // Group is the database configuration group name of current DAO.
|
||||
columns SysProjectTeamColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
|
||||
}
|
||||
|
||||
// SysProjectTeamColumns defines and stores column names for table sys_project_team.
|
||||
type SysProjectTeamColumns struct {
|
||||
Id string // 主键ID
|
||||
ProjectId string // 项目id
|
||||
Name string // 班组名称
|
||||
CreateBy string // 创建者
|
||||
UpdateBy string // 更新者
|
||||
CreateTime string // 创建时间
|
||||
UpdateTime string // 更新时间
|
||||
DeletedAt string // 删除时间
|
||||
}
|
||||
|
||||
var sysProjectTeamColumns = SysProjectTeamColumns{
|
||||
Id: "id",
|
||||
ProjectId: "project_id",
|
||||
Name: "name",
|
||||
CreateBy: "create_by",
|
||||
UpdateBy: "update_by",
|
||||
CreateTime: "create_time",
|
||||
UpdateTime: "update_time",
|
||||
DeletedAt: "deleted_at",
|
||||
}
|
||||
|
||||
// NewSysProjectTeamDao creates and returns a new DAO object for table data access.
|
||||
func NewSysProjectTeamDao() *SysProjectTeamDao {
|
||||
return &SysProjectTeamDao{
|
||||
group: "default",
|
||||
table: "sys_project_team",
|
||||
columns: sysProjectTeamColumns,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *SysProjectTeamDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *SysProjectTeamDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *SysProjectTeamDao) Columns() SysProjectTeamColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *SysProjectTeamDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *SysProjectTeamDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (dao *SysProjectTeamDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao internal操作代码。
|
||||
// 生成日期:2023-08-15 09:34:52
|
||||
// 生成路径: internal/app/wxApplet/dao/internal/sys_project_team_member.go
|
||||
// 生成人:gfast
|
||||
// desc:项目班组下的成员
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SysProjectTeamMemberDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
type SysProjectTeamMemberDao struct {
|
||||
table string // Table is the underlying table name of the DAO.
|
||||
group string // Group is the database configuration group name of current DAO.
|
||||
columns SysProjectTeamMemberColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
|
||||
}
|
||||
|
||||
// SysProjectTeamMemberColumns defines and stores column names for table sys_project_team_member.
|
||||
type SysProjectTeamMemberColumns struct {
|
||||
Id string // 主键ID
|
||||
TeamId string // 班组id
|
||||
Openid string // 微信用户标识
|
||||
PostId string // 岗位(默认为4普通员工,组长为10)
|
||||
ProjectId string // 项目id
|
||||
CreateTime string // 创建时间
|
||||
UpdateTime string // 更新时间
|
||||
DeletedAt string // 删除时间
|
||||
}
|
||||
|
||||
var sysProjectTeamMemberColumns = SysProjectTeamMemberColumns{
|
||||
Id: "id",
|
||||
TeamId: "team_id",
|
||||
Openid: "openid",
|
||||
PostId: "post_id",
|
||||
ProjectId: "project_id",
|
||||
CreateTime: "create_time",
|
||||
UpdateTime: "update_time",
|
||||
DeletedAt: "deleted_at",
|
||||
}
|
||||
|
||||
// NewSysProjectTeamMemberDao creates and returns a new DAO object for table data access.
|
||||
func NewSysProjectTeamMemberDao() *SysProjectTeamMemberDao {
|
||||
return &SysProjectTeamMemberDao{
|
||||
group: "default",
|
||||
table: "sys_project_team_member",
|
||||
columns: sysProjectTeamMemberColumns,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *SysProjectTeamMemberDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *SysProjectTeamMemberDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *SysProjectTeamMemberDao) Columns() SysProjectTeamMemberColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *SysProjectTeamMemberDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *SysProjectTeamMemberDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (dao *SysProjectTeamMemberDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
99
internal/app/wxApplet/dao/internal/sys_project_team_squad.go
Normal file
99
internal/app/wxApplet/dao/internal/sys_project_team_squad.go
Normal file
@ -0,0 +1,99 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao internal操作代码。
|
||||
// 生成日期:2023-08-30 15:24:06
|
||||
// 生成路径: internal/app/wxApplet/dao/internal/sys_project_team_squad.go
|
||||
// 生成人:gfast
|
||||
// desc:站班会
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SysProjectTeamSquadDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
type SysProjectTeamSquadDao struct {
|
||||
table string // Table is the underlying table name of the DAO.
|
||||
group string // Group is the database configuration group name of current DAO.
|
||||
columns SysProjectTeamSquadColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
|
||||
}
|
||||
|
||||
// SysProjectTeamSquadColumns defines and stores column names for table sys_project_team_squad.
|
||||
type SysProjectTeamSquadColumns struct {
|
||||
Id string // 主键ID
|
||||
TeamId string // 班组ID
|
||||
MeetingDate string // 开会时间
|
||||
CompereId string // 宣讲人
|
||||
ParticipantId string // 参与人ID(多个用,号隔开)
|
||||
Content string // 班会内容
|
||||
Picture string // 班会图片(多个用,号隔开)
|
||||
CreateBy string // 创建人
|
||||
UpdateBy string // 更新人
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 删除时间
|
||||
ProjectId string // 删除时间
|
||||
}
|
||||
|
||||
var sysProjectTeamSquadColumns = SysProjectTeamSquadColumns{
|
||||
Id: "id",
|
||||
TeamId: "team_id",
|
||||
MeetingDate: "meeting_date",
|
||||
CompereId: "compere_id",
|
||||
ParticipantId: "participant_id",
|
||||
Content: "content",
|
||||
Picture: "picture",
|
||||
CreateBy: "create_by",
|
||||
UpdateBy: "update_by",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
ProjectId: "project_id",
|
||||
}
|
||||
|
||||
// NewSysProjectTeamSquadDao creates and returns a new DAO object for table data access.
|
||||
func NewSysProjectTeamSquadDao() *SysProjectTeamSquadDao {
|
||||
return &SysProjectTeamSquadDao{
|
||||
group: "default",
|
||||
table: "sys_project_team_squad",
|
||||
columns: sysProjectTeamSquadColumns,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *SysProjectTeamSquadDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *SysProjectTeamSquadDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *SysProjectTeamSquadDao) Columns() SysProjectTeamSquadColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *SysProjectTeamSquadDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *SysProjectTeamSquadDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (dao *SysProjectTeamSquadDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao internal操作代码。
|
||||
// 生成日期:2023-08-21 09:19:15
|
||||
// 生成路径: internal/app/wxApplet/dao/internal/sys_user_project_relevancy.go
|
||||
// 生成人:gfast
|
||||
// desc:系统用户与项目关联
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package internal
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// SysUserProjectRelevancyDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
type SysUserProjectRelevancyDao struct {
|
||||
table string // Table is the underlying table name of the DAO.
|
||||
group string // Group is the database configuration group name of current DAO.
|
||||
columns SysUserProjectRelevancyColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
|
||||
}
|
||||
|
||||
// SysUserProjectRelevancyColumns defines and stores column names for table sys_user_project_relevancy.
|
||||
type SysUserProjectRelevancyColumns struct {
|
||||
Id string // 主键ID
|
||||
UserId string // 用户ID
|
||||
ProjectId string // 项目ID
|
||||
CreateBy string // 创建人
|
||||
UpdateBy string // 更新人
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 删除时间
|
||||
}
|
||||
|
||||
var sysUserProjectRelevancyColumns = SysUserProjectRelevancyColumns{
|
||||
Id: "id",
|
||||
UserId: "user_id",
|
||||
ProjectId: "project_id",
|
||||
CreateBy: "create_by",
|
||||
UpdateBy: "update_by",
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
}
|
||||
|
||||
// NewSysUserProjectRelevancyDao creates and returns a new DAO object for table data access.
|
||||
func NewSysUserProjectRelevancyDao() *SysUserProjectRelevancyDao {
|
||||
return &SysUserProjectRelevancyDao{
|
||||
group: "default",
|
||||
table: "sys_user_project_relevancy",
|
||||
columns: sysUserProjectRelevancyColumns,
|
||||
}
|
||||
}
|
||||
|
||||
// DB retrieves and returns the underlying raw database management object of current DAO.
|
||||
func (dao *SysUserProjectRelevancyDao) DB() gdb.DB {
|
||||
return g.DB(dao.group)
|
||||
}
|
||||
|
||||
// Table returns the table name of current dao.
|
||||
func (dao *SysUserProjectRelevancyDao) Table() string {
|
||||
return dao.table
|
||||
}
|
||||
|
||||
// Columns returns all column names of current dao.
|
||||
func (dao *SysUserProjectRelevancyDao) Columns() SysUserProjectRelevancyColumns {
|
||||
return dao.columns
|
||||
}
|
||||
|
||||
// Group returns the configuration group name of database of current dao.
|
||||
func (dao *SysUserProjectRelevancyDao) Group() string {
|
||||
return dao.group
|
||||
}
|
||||
|
||||
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
|
||||
func (dao *SysUserProjectRelevancyDao) Ctx(ctx context.Context) *gdb.Model {
|
||||
return dao.DB().Model(dao.table).Safe().Ctx(ctx)
|
||||
}
|
||||
|
||||
// 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.
|
||||
func (dao *SysUserProjectRelevancyDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
|
||||
return dao.Ctx(ctx).Transaction(ctx, f)
|
||||
}
|
||||
29
internal/app/wxApplet/dao/sys_project_team.go
Normal file
29
internal/app/wxApplet/dao/sys_project_team.go
Normal file
@ -0,0 +1,29 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao操作代码。
|
||||
// 生成日期:2023-08-15 09:34:52
|
||||
// 生成路径: internal/app/wxApplet/dao/sys_project_team.go
|
||||
// 生成人:gfast
|
||||
// desc:项目班组
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/wxApplet/dao/internal"
|
||||
)
|
||||
|
||||
// sysProjectTeamDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type sysProjectTeamDao struct {
|
||||
*internal.SysProjectTeamDao
|
||||
}
|
||||
|
||||
var (
|
||||
// SysProjectTeam is globally public accessible object for table tools_gen_table operations.
|
||||
SysProjectTeam = sysProjectTeamDao{
|
||||
internal.NewSysProjectTeamDao(),
|
||||
}
|
||||
)
|
||||
|
||||
// Fill with you ideas below.
|
||||
29
internal/app/wxApplet/dao/sys_project_team_member.go
Normal file
29
internal/app/wxApplet/dao/sys_project_team_member.go
Normal file
@ -0,0 +1,29 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao操作代码。
|
||||
// 生成日期:2023-08-15 09:34:52
|
||||
// 生成路径: internal/app/wxApplet/dao/sys_project_team_member.go
|
||||
// 生成人:gfast
|
||||
// desc:项目班组下的成员
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/wxApplet/dao/internal"
|
||||
)
|
||||
|
||||
// sysProjectTeamMemberDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type sysProjectTeamMemberDao struct {
|
||||
*internal.SysProjectTeamMemberDao
|
||||
}
|
||||
|
||||
var (
|
||||
// SysProjectTeamMember is globally public accessible object for table tools_gen_table operations.
|
||||
SysProjectTeamMember = sysProjectTeamMemberDao{
|
||||
internal.NewSysProjectTeamMemberDao(),
|
||||
}
|
||||
)
|
||||
|
||||
// Fill with you ideas below.
|
||||
29
internal/app/wxApplet/dao/sys_project_team_squad.go
Normal file
29
internal/app/wxApplet/dao/sys_project_team_squad.go
Normal file
@ -0,0 +1,29 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao操作代码。
|
||||
// 生成日期:2023-08-30 15:24:06
|
||||
// 生成路径: internal/app/wxApplet/dao/sys_project_team_squad.go
|
||||
// 生成人:gfast
|
||||
// desc:站班会
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/wxApplet/dao/internal"
|
||||
)
|
||||
|
||||
// sysProjectTeamSquadDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type sysProjectTeamSquadDao struct {
|
||||
*internal.SysProjectTeamSquadDao
|
||||
}
|
||||
|
||||
var (
|
||||
// SysProjectTeamSquad is globally public accessible object for table tools_gen_table operations.
|
||||
SysProjectTeamSquad = sysProjectTeamSquadDao{
|
||||
internal.NewSysProjectTeamSquadDao(),
|
||||
}
|
||||
)
|
||||
|
||||
// Fill with you ideas below.
|
||||
29
internal/app/wxApplet/dao/sys_user_project_relevancy.go
Normal file
29
internal/app/wxApplet/dao/sys_user_project_relevancy.go
Normal file
@ -0,0 +1,29 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成dao操作代码。
|
||||
// 生成日期:2023-08-21 09:19:14
|
||||
// 生成路径: internal/app/wxApplet/dao/sys_user_project_relevancy.go
|
||||
// 生成人:gfast
|
||||
// desc:系统用户与项目关联
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/tiger1103/gfast/v3/internal/app/wxApplet/dao/internal"
|
||||
)
|
||||
|
||||
// sysUserProjectRelevancyDao is the manager for logic model data accessing and custom defined data operations functions management.
|
||||
// You can define custom methods on it to extend its functionality as you wish.
|
||||
type sysUserProjectRelevancyDao struct {
|
||||
*internal.SysUserProjectRelevancyDao
|
||||
}
|
||||
|
||||
var (
|
||||
// SysUserProjectRelevancy is globally public accessible object for table tools_gen_table operations.
|
||||
SysUserProjectRelevancy = sysUserProjectRelevancyDao{
|
||||
internal.NewSysUserProjectRelevancyDao(),
|
||||
}
|
||||
)
|
||||
|
||||
// Fill with you ideas below.
|
||||
Reference in New Issue
Block a user