This commit is contained in:
2025-07-07 20:11:59 +08:00
parent ab0fdbc447
commit 06e3aa2eb3
2009 changed files with 193082 additions and 0 deletions

View File

@ -0,0 +1,86 @@
// ==========================================================================
// GFast自动生成dao internal操作代码。
// 生成日期2023-09-01 17:36:18
// 生成路径: internal/app/test/dao/internal/test_contact_info.go
// 生成人yqq
// desc:业主方联系人关联
// company:云南奇讯科技有限公司
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// TestContactInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
type TestContactInfoDao 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 TestContactInfoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
}
// TestContactInfoColumns defines and stores column names for table test_contact_info.
type TestContactInfoColumns struct {
Id string //
OwenerId string //
ContactName string //
ContactPost string //
ContactPhone string //
Creator string //
}
var testContactInfoColumns = TestContactInfoColumns{
Id: "id",
OwenerId: "owener_id",
ContactName: "contact_name",
ContactPost: "contact_post",
ContactPhone: "contact_phone",
Creator: "creator",
}
// NewTestContactInfoDao creates and returns a new DAO object for table data access.
func NewTestContactInfoDao() *TestContactInfoDao {
return &TestContactInfoDao{
group: "default",
table: "test_contact_info",
columns: testContactInfoColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *TestContactInfoDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *TestContactInfoDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *TestContactInfoDao) Columns() TestContactInfoColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *TestContactInfoDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *TestContactInfoDao) 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 *TestContactInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@ -0,0 +1,100 @@
// ==========================================================================
// GFast自动生成dao internal操作代码。
// 生成日期2023-09-01 16:38:07
// 生成路径: internal/app/test/dao/internal/test_follow_info.go
// 生成人yqq
// desc:跟进信息
// company:云南奇讯科技有限公司
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// TestFollowInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
type TestFollowInfoDao 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 TestFollowInfoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
}
// TestFollowInfoColumns defines and stores column names for table test_follow_info.
type TestFollowInfoColumns struct {
Id string //
ProjectId string // 关联的项目
FollowName string // 跟进人姓名
OwnerId string // 业主名
ContactName string // 对接人姓名
ConPostName string // 对接人职称
ContactPhone string // 对接人电话
FollowInfo string // 跟进情况
FollowFile string // 相关附件
CreatedAt string // 创建日期
UpdatedAt string // 修改日期
DeletedAt string // 删除日期
Creator string // 删除日期
}
var testFollowInfoColumns = TestFollowInfoColumns{
Id: "id",
ProjectId: "project_id",
FollowName: "follow_name",
OwnerId: "owner_id",
ContactName: "contact_name",
ConPostName: "con_post_name",
ContactPhone: "contact_phone",
FollowInfo: "follow_info",
FollowFile: "follow_file",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
DeletedAt: "deleted_at",
Creator: "creator",
}
// NewTestFollowInfoDao creates and returns a new DAO object for table data access.
func NewTestFollowInfoDao() *TestFollowInfoDao {
return &TestFollowInfoDao{
group: "default",
table: "test_follow_info",
columns: testFollowInfoColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *TestFollowInfoDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *TestFollowInfoDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *TestFollowInfoDao) Columns() TestFollowInfoColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *TestFollowInfoDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *TestFollowInfoDao) 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 *TestFollowInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@ -0,0 +1,96 @@
// ==========================================================================
// GFast自动生成dao internal操作代码。
// 生成日期2023-09-01 17:51:41
// 生成路径: internal/app/test/dao/internal/test_owner_info.go
// 生成人yqq
// desc:业主方基本情况
// company:云南奇讯科技有限公司
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// TestOwnerInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
type TestOwnerInfoDao 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 TestOwnerInfoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
}
// TestOwnerInfoColumns defines and stores column names for table test_owner_info.
type TestOwnerInfoColumns struct {
Id string //
CompanyName string // 企业名称
CompanyAddress string // 单位地址
RegistrationType string // 企业登记注册类型
RegisteredCapital string // 注册资金
Legaler string // 法人代表
LegalerPhone string // 法人电话
CreatedAt string // 创建日期
UpdatedAt string // 修改日期
DeletedAt string // 删除日期
Creator string // 删除日期
}
var testOwnerInfoColumns = TestOwnerInfoColumns{
Id: "id",
CompanyName: "company_name",
CompanyAddress: "company_address",
RegistrationType: "registration_type",
RegisteredCapital: "registered_capital",
Legaler: "legaler",
LegalerPhone: "legaler_phone",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
DeletedAt: "deleted_at",
Creator: "creator",
}
// NewTestOwnerInfoDao creates and returns a new DAO object for table data access.
func NewTestOwnerInfoDao() *TestOwnerInfoDao {
return &TestOwnerInfoDao{
group: "default",
table: "test_owner_info",
columns: testOwnerInfoColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *TestOwnerInfoDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *TestOwnerInfoDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *TestOwnerInfoDao) Columns() TestOwnerInfoColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *TestOwnerInfoDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *TestOwnerInfoDao) 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 *TestOwnerInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@ -0,0 +1,100 @@
// ==========================================================================
// GFast自动生成dao internal操作代码。
// 生成日期2023-09-01 16:15:09
// 生成路径: internal/app/test/dao/internal/test_project_info.go
// 生成人yqq
// desc:项目备案信息
// company:云南奇讯科技有限公司
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// TestProjectInfoDao is the manager for logic model data accessing and custom defined data operations functions management.
type TestProjectInfoDao 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 TestProjectInfoColumns // Columns is the short type for Columns, which contains all the column names of Table for convenient usage.
}
// TestProjectInfoColumns defines and stores column names for table test_project_info.
type TestProjectInfoColumns struct {
Id string //
ProjectName string // 项目名称
ProjectAddress string // 单位地址
ProjectLeader string // 项目负责人
ResourceName string // 资源方
OwnerId string // 业主名id
ProjectType string // 项目类型
ProjectInfo string // 项目概况
ProjectState string // 项目状态(0未开始 1进行中 2已完成
CreatedAt string // 创建日期
UpdatedAt string // 修改日期
DeletedAt string // 删除日期
Creator string // 删除日期
}
var testProjectInfoColumns = TestProjectInfoColumns{
Id: "id",
ProjectName: "project_name",
ProjectAddress: "project_address",
ProjectLeader: "project_leader",
ResourceName: "resource_name",
OwnerId: "owner_id",
ProjectType: "project_type",
ProjectInfo: "project_info",
ProjectState: "project_state",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
DeletedAt: "deleted_at",
Creator: "creator",
}
// NewTestProjectInfoDao creates and returns a new DAO object for table data access.
func NewTestProjectInfoDao() *TestProjectInfoDao {
return &TestProjectInfoDao{
group: "default",
table: "test_project_info",
columns: testProjectInfoColumns,
}
}
// DB retrieves and returns the underlying raw database management object of current DAO.
func (dao *TestProjectInfoDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of current dao.
func (dao *TestProjectInfoDao) Table() string {
return dao.table
}
// Columns returns all column names of current dao.
func (dao *TestProjectInfoDao) Columns() TestProjectInfoColumns {
return dao.columns
}
// Group returns the configuration group name of database of current dao.
func (dao *TestProjectInfoDao) Group() string {
return dao.group
}
// Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.
func (dao *TestProjectInfoDao) 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 *TestProjectInfoDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}

View File

@ -0,0 +1,29 @@
// ==========================================================================
// GFast自动生成dao操作代码。
// 生成日期2023-09-01 17:36:18
// 生成路径: internal/app/test/dao/test_contact_info.go
// 生成人yqq
// desc:业主方联系人关联
// company:云南奇讯科技有限公司
// ==========================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/test/dao/internal"
)
// testContactInfoDao 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 testContactInfoDao struct {
*internal.TestContactInfoDao
}
var (
// TestContactInfo is globally public accessible object for table tools_gen_table operations.
TestContactInfo = testContactInfoDao{
internal.NewTestContactInfoDao(),
}
)
// Fill with you ideas below.

View File

@ -0,0 +1,29 @@
// ==========================================================================
// GFast自动生成dao操作代码。
// 生成日期2023-09-01 16:38:07
// 生成路径: internal/app/test/dao/test_follow_info.go
// 生成人yqq
// desc:跟进信息
// company:云南奇讯科技有限公司
// ==========================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/test/dao/internal"
)
// testFollowInfoDao 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 testFollowInfoDao struct {
*internal.TestFollowInfoDao
}
var (
// TestFollowInfo is globally public accessible object for table tools_gen_table operations.
TestFollowInfo = testFollowInfoDao{
internal.NewTestFollowInfoDao(),
}
)
// Fill with you ideas below.

View File

@ -0,0 +1,29 @@
// ==========================================================================
// GFast自动生成dao操作代码。
// 生成日期2023-09-01 17:51:41
// 生成路径: internal/app/test/dao/test_owner_info.go
// 生成人yqq
// desc:业主方基本情况
// company:云南奇讯科技有限公司
// ==========================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/test/dao/internal"
)
// testOwnerInfoDao 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 testOwnerInfoDao struct {
*internal.TestOwnerInfoDao
}
var (
// TestOwnerInfo is globally public accessible object for table tools_gen_table operations.
TestOwnerInfo = testOwnerInfoDao{
internal.NewTestOwnerInfoDao(),
}
)
// Fill with you ideas below.

View File

@ -0,0 +1,29 @@
// ==========================================================================
// GFast自动生成dao操作代码。
// 生成日期2023-09-01 16:15:09
// 生成路径: internal/app/test/dao/test_project_info.go
// 生成人yqq
// desc:项目备案信息
// company:云南奇讯科技有限公司
// ==========================================================================
package dao
import (
"github.com/tiger1103/gfast/v3/internal/app/test/dao/internal"
)
// testProjectInfoDao 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 testProjectInfoDao struct {
*internal.TestProjectInfoDao
}
var (
// TestProjectInfo is globally public accessible object for table tools_gen_table operations.
TestProjectInfo = testProjectInfoDao{
internal.NewTestProjectInfoDao(),
}
)
// Fill with you ideas below.