internal

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorsAchievementColumns added in v1.0.1

type ActorsAchievementColumns struct {
	Id          string // 演员个人成就ID
	ActorsId    string // 演员ID
	AchTitle    string // 成就Title
	AchieveDate string // 成就时间
	UpdateAt    string // 更新时间
	CreateAt    string // 创建时间
}

ActorsAchievementColumns defines and stores column names for table actors_achievement.

type ActorsAchievementDao added in v1.0.1

type ActorsAchievementDao struct {
	// contains filtered or unexported fields
}

ActorsAchievementDao is the data access object for table actors_achievement.

func NewActorsAchievementDao added in v1.0.1

func NewActorsAchievementDao() *ActorsAchievementDao

NewActorsAchievementDao creates and returns a new DAO object for table data access.

func (*ActorsAchievementDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*ActorsAchievementDao) Ctx added in v1.0.1

func (dao *ActorsAchievementDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*ActorsAchievementDao) DB added in v1.0.1

func (dao *ActorsAchievementDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*ActorsAchievementDao) Group added in v1.0.1

func (dao *ActorsAchievementDao) Group() string

Group returns the configuration group name of database of current dao.

func (*ActorsAchievementDao) Table added in v1.0.1

func (dao *ActorsAchievementDao) Table() string

Table returns the table name of current dao.

func (*ActorsAchievementDao) Transaction added in v1.0.1

func (dao *ActorsAchievementDao) 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 ActorsColumns added in v1.0.1

type ActorsColumns struct {
	Id            string // 演员ID
	Name          string // 姓名
	StageName     string // 艺名
	FormerName    string // 曾用名
	Country       string // 国籍
	NativePlace   string // 祖籍
	PlaceBirth    string // 出生地
	BloodType     string // 血型
	Constellation string // 星座
	Zodiac        string // 生肖
	Birthday      string // 出生日期
	Sex           string // 性别:0男,1女
	Height        string // 身高(CM)
	Weight        string // 体重(KG)
	DebutAt       string // 出道时间
	Synopsis      string // 简介
	ImageUrl      string // 头像
	WorksNum      string // 作品数
	RwNum         string // 代表作品数
	Nation        string // 民族
	GradInst      string // 毕业院校
	GradDate      string // 毕业时间
	UpdateAt      string // 更新时间
	CreateAt      string // 创建时间
}

ActorsColumns defines and stores column names for table actors.

type ActorsDao added in v1.0.1

type ActorsDao struct {
	// contains filtered or unexported fields
}

ActorsDao is the data access object for table actors.

func NewActorsDao added in v1.0.1

func NewActorsDao() *ActorsDao

NewActorsDao creates and returns a new DAO object for table data access.

func (*ActorsDao) Columns added in v1.0.1

func (dao *ActorsDao) Columns() ActorsColumns

Columns returns all column names of current dao.

func (*ActorsDao) Ctx added in v1.0.1

func (dao *ActorsDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*ActorsDao) DB added in v1.0.1

func (dao *ActorsDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*ActorsDao) Group added in v1.0.1

func (dao *ActorsDao) Group() string

Group returns the configuration group name of database of current dao.

func (*ActorsDao) Table added in v1.0.1

func (dao *ActorsDao) Table() string

Table returns the table name of current dao.

func (*ActorsDao) Transaction added in v1.0.1

func (dao *ActorsDao) 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 ActorsExperienceColumns added in v1.0.1

type ActorsExperienceColumns struct {
	Id       string // 个人经历ID
	ActorsId string // 演员ID
	Content  string // 经历内容
	ExpDate  string // 相关经历时间
	UpdateAt string // 更新时间
	CreateAt string // 创建时间
}

ActorsExperienceColumns defines and stores column names for table actors_experience.

type ActorsExperienceDao added in v1.0.1

type ActorsExperienceDao struct {
	// contains filtered or unexported fields
}

ActorsExperienceDao is the data access object for table actors_experience.

func NewActorsExperienceDao added in v1.0.1

func NewActorsExperienceDao() *ActorsExperienceDao

NewActorsExperienceDao creates and returns a new DAO object for table data access.

func (*ActorsExperienceDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*ActorsExperienceDao) Ctx added in v1.0.1

func (dao *ActorsExperienceDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*ActorsExperienceDao) DB added in v1.0.1

func (dao *ActorsExperienceDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*ActorsExperienceDao) Group added in v1.0.1

func (dao *ActorsExperienceDao) Group() string

Group returns the configuration group name of database of current dao.

func (*ActorsExperienceDao) Table added in v1.0.1

func (dao *ActorsExperienceDao) Table() string

Table returns the table name of current dao.

func (*ActorsExperienceDao) Transaction added in v1.0.1

func (dao *ActorsExperienceDao) 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 ActorsWorksColumns added in v1.0.1

type ActorsWorksColumns struct {
	Id             string // 演员作品ID
	ActorsId       string // 演员ID
	WorksName      string // 作品名
	Type           string // 类型:0主演,1领衔主演,2客串嘉宾,3群众
	IsMasterpieces string // 是否代表作:0否,1是
	Portray        string // 饰演角色
	UpdateAt       string // 更新时间
	CreateAt       string // 创建时间
}

ActorsWorksColumns defines and stores column names for table actors_works.

type ActorsWorksDao added in v1.0.1

type ActorsWorksDao struct {
	// contains filtered or unexported fields
}

ActorsWorksDao is the data access object for table actors_works.

func NewActorsWorksDao added in v1.0.1

func NewActorsWorksDao() *ActorsWorksDao

NewActorsWorksDao creates and returns a new DAO object for table data access.

func (*ActorsWorksDao) Columns added in v1.0.1

func (dao *ActorsWorksDao) Columns() ActorsWorksColumns

Columns returns all column names of current dao.

func (*ActorsWorksDao) Ctx added in v1.0.1

func (dao *ActorsWorksDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*ActorsWorksDao) DB added in v1.0.1

func (dao *ActorsWorksDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*ActorsWorksDao) Group added in v1.0.1

func (dao *ActorsWorksDao) Group() string

Group returns the configuration group name of database of current dao.

func (*ActorsWorksDao) Table added in v1.0.1

func (dao *ActorsWorksDao) Table() string

Table returns the table name of current dao.

func (*ActorsWorksDao) Transaction added in v1.0.1

func (dao *ActorsWorksDao) 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 AdminDepartmentColumns

type AdminDepartmentColumns struct {
	Id       string // 管理员部门ID
	AdminId  string // 管理员ID,非用户ID
	DepartId string // 部门ID
	UpdateAt string // 更新时间
	CreateAt string // 创建时间
}

AdminDepartmentColumns defines and stores column names for table admin_department.

type AdminDepartmentDao

type AdminDepartmentDao struct {
	// contains filtered or unexported fields
}

AdminDepartmentDao is the data access object for table admin_department.

func NewAdminDepartmentDao

func NewAdminDepartmentDao() *AdminDepartmentDao

NewAdminDepartmentDao creates and returns a new DAO object for table data access.

func (*AdminDepartmentDao) Columns

Columns returns all column names of current dao.

func (*AdminDepartmentDao) Ctx

func (dao *AdminDepartmentDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*AdminDepartmentDao) DB

func (dao *AdminDepartmentDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*AdminDepartmentDao) Group

func (dao *AdminDepartmentDao) Group() string

Group returns the configuration group name of database of current dao.

func (*AdminDepartmentDao) Table

func (dao *AdminDepartmentDao) Table() string

Table returns the table name of current dao.

func (*AdminDepartmentDao) Transaction

func (dao *AdminDepartmentDao) 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 AdminInviteColumns

type AdminInviteColumns struct {
	Id            string // 邀请ID
	Token         string // 邀请Token
	AdminId       string // 邀请管理员ID
	ManageName    string // 邀请管理员名
	Expired       string // 过期时间
	Status        string // 状态:0邀请中,1已邀请,2已撤销
	Uid           string // 被邀请人用户ID
	RefreshNum    string // 刷新次数
	DepartId      string // 部门ID
	IsSuperManage string // 是否超管:0普管,1超管
	UpdateAt      string // 更新时间
	CreateAt      string // 创建时间
}

AdminInviteColumns defines and stores column names for table admin_invite.

type AdminInviteDao

type AdminInviteDao struct {
	// contains filtered or unexported fields
}

AdminInviteDao is the data access object for table admin_invite.

func NewAdminInviteDao

func NewAdminInviteDao() *AdminInviteDao

NewAdminInviteDao creates and returns a new DAO object for table data access.

func (*AdminInviteDao) Columns

func (dao *AdminInviteDao) Columns() AdminInviteColumns

Columns returns all column names of current dao.

func (*AdminInviteDao) Ctx

func (dao *AdminInviteDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*AdminInviteDao) DB

func (dao *AdminInviteDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*AdminInviteDao) Group

func (dao *AdminInviteDao) Group() string

Group returns the configuration group name of database of current dao.

func (*AdminInviteDao) Table

func (dao *AdminInviteDao) Table() string

Table returns the table name of current dao.

func (*AdminInviteDao) Transaction

func (dao *AdminInviteDao) 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 ArticleCategoryColumns

type ArticleCategoryColumns struct {
	Id          string // 文章类目ID
	Name        string // 文章类目名
	Description string // 详情
	Pid         string // 父级ID
	Status      string // 状态:0正常,1禁用
	IsShow      string // 是否显示:0显示,1隐藏
	UpdateAt    string // 更新时间
	CreateAt    string // 创建时间
}

ArticleCategoryColumns defines and stores column names for table article_category.

type ArticleCategoryDao

type ArticleCategoryDao struct {
	// contains filtered or unexported fields
}

ArticleCategoryDao is the data access object for table article_category.

func NewArticleCategoryDao

func NewArticleCategoryDao() *ArticleCategoryDao

NewArticleCategoryDao creates and returns a new DAO object for table data access.

func (*ArticleCategoryDao) Columns

Columns returns all column names of current dao.

func (*ArticleCategoryDao) Ctx

func (dao *ArticleCategoryDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*ArticleCategoryDao) DB

func (dao *ArticleCategoryDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*ArticleCategoryDao) Group

func (dao *ArticleCategoryDao) Group() string

Group returns the configuration group name of database of current dao.

func (*ArticleCategoryDao) Table

func (dao *ArticleCategoryDao) Table() string

Table returns the table name of current dao.

func (*ArticleCategoryDao) Transaction

func (dao *ArticleCategoryDao) 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 ArticleColumns

type ArticleColumns struct {
	Id          string // 文章ID
	Name        string // 文章名
	AbbrevName  string // 文章缩写名
	Description string // 文章摘要
	Cid         string // 文章分类ID
	Keywords    string // 关键词
	ImgUrl      string // 图片地址
	VideoUrl    string // 视频地址
	Content     string // 文章内容
	Status      string // 状态:0正常,1禁用
	IsShow      string // 是否显示:0正常,1隐藏
	Sort        string // 排序值:0-99999升序
	AssocAlias  string // 关联别名,例如:注册协议、网服协议等
	UpdateAt    string // 更新时间
	CreateAt    string // 创建时间
}

ArticleColumns defines and stores column names for table article.

type ArticleDao

type ArticleDao struct {
	// contains filtered or unexported fields
}

ArticleDao is the data access object for table article.

func NewArticleDao

func NewArticleDao() *ArticleDao

NewArticleDao creates and returns a new DAO object for table data access.

func (*ArticleDao) Columns

func (dao *ArticleDao) Columns() ArticleColumns

Columns returns all column names of current dao.

func (*ArticleDao) Ctx

func (dao *ArticleDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*ArticleDao) DB

func (dao *ArticleDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*ArticleDao) Group

func (dao *ArticleDao) Group() string

Group returns the configuration group name of database of current dao.

func (*ArticleDao) Table

func (dao *ArticleDao) Table() string

Table returns the table name of current dao.

func (*ArticleDao) Transaction

func (dao *ArticleDao) 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 AttachmentColumns

type AttachmentColumns struct {
	Id             string // 附件ID
	CatId          string // 附件分类
	Name           string // 附件名
	RealName       string // 附件原名
	AttSize        string // 附件尺寸大小
	AttPath        string // 附件路径
	AttUrl         string // 附件地址
	AttType        string // 附件类型:image/png
	Position       string // 排序位置:从小到大
	ChannelId      string // 渠道ID
	StorageType    string // 存储类型:local本地,qiniu七牛等
	Hasher         string // Hash值
	AttachId       string // 附件ID
	Width          string // 宽度
	Height         string // 高度
	Duration       string // 视频时长(S)
	DurationString string // 格式化视频时长
	UpdateAt       string // 更新时间
	CreateAt       string // 创建时间
}

AttachmentColumns defines and stores column names for table attachment.

type AttachmentDao

type AttachmentDao struct {
	// contains filtered or unexported fields
}

AttachmentDao is the data access object for table attachment.

func NewAttachmentDao

func NewAttachmentDao() *AttachmentDao

NewAttachmentDao creates and returns a new DAO object for table data access.

func (*AttachmentDao) Columns

func (dao *AttachmentDao) Columns() AttachmentColumns

Columns returns all column names of current dao.

func (*AttachmentDao) Ctx

func (dao *AttachmentDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*AttachmentDao) DB

func (dao *AttachmentDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*AttachmentDao) Group

func (dao *AttachmentDao) Group() string

Group returns the configuration group name of database of current dao.

func (*AttachmentDao) Table

func (dao *AttachmentDao) Table() string

Table returns the table name of current dao.

func (*AttachmentDao) Transaction

func (dao *AttachmentDao) 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 ConfigColumns

type ConfigColumns struct {
	Id           string // 配置ID
	Name         string // 配置名称
	Description  string // 配置详情简介
	Value        string // 配置值
	DefaultValue string // 默认配置值
	GroupId      string // 配置组ID
	GroupName    string // 配置组名
	Remark       string // 备注
	UpdateAt     string // 更新时间
	CreateAt     string // 创建时间
}

ConfigColumns defines and stores column names for table config.

type ConfigDao

type ConfigDao struct {
	// contains filtered or unexported fields
}

ConfigDao is the data access object for table config.

func NewConfigDao

func NewConfigDao() *ConfigDao

NewConfigDao creates and returns a new DAO object for table data access.

func (*ConfigDao) Columns

func (dao *ConfigDao) Columns() ConfigColumns

Columns returns all column names of current dao.

func (*ConfigDao) Ctx

func (dao *ConfigDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*ConfigDao) DB

func (dao *ConfigDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*ConfigDao) Group

func (dao *ConfigDao) Group() string

Group returns the configuration group name of database of current dao.

func (*ConfigDao) Table

func (dao *ConfigDao) Table() string

Table returns the table name of current dao.

func (*ConfigDao) Transaction

func (dao *ConfigDao) 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 ConfigGroupColumns

type ConfigGroupColumns struct {
	Id          string // 配置组ID
	Name        string // 配置组名
	GroupName   string // 配置组关联名:basic基础配置
	Description string // 详情
	Pid         string // 父级ID
	UpdateAt    string // 更新时间
	CreateAt    string // 创建时间
}

ConfigGroupColumns defines and stores column names for table config_group.

type ConfigGroupDao

type ConfigGroupDao struct {
	// contains filtered or unexported fields
}

ConfigGroupDao is the data access object for table config_group.

func NewConfigGroupDao

func NewConfigGroupDao() *ConfigGroupDao

NewConfigGroupDao creates and returns a new DAO object for table data access.

func (*ConfigGroupDao) Columns

func (dao *ConfigGroupDao) Columns() ConfigGroupColumns

Columns returns all column names of current dao.

func (*ConfigGroupDao) Ctx

func (dao *ConfigGroupDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*ConfigGroupDao) DB

func (dao *ConfigGroupDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*ConfigGroupDao) Group

func (dao *ConfigGroupDao) Group() string

Group returns the configuration group name of database of current dao.

func (*ConfigGroupDao) Table

func (dao *ConfigGroupDao) Table() string

Table returns the table name of current dao.

func (*ConfigGroupDao) Transaction

func (dao *ConfigGroupDao) 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 DepartmentColumns

type DepartmentColumns struct {
	Id         string // 部门ID
	DepartName string // 全称,例如:财务部
	AbbrevName string // 简称,例如:财务
	DepartNo   string // 部门编号
	Pid        string // 父级ID
	Status     string // 部门状态:0正常,1禁用
	Sort       string // 排序:0-255,默认255
	UpdateAt   string // 更新时间
	CreateAt   string // 创建时间
}

DepartmentColumns defines and stores column names for table department.

type DepartmentDao

type DepartmentDao struct {
	// contains filtered or unexported fields
}

DepartmentDao is the data access object for table department.

func NewDepartmentDao

func NewDepartmentDao() *DepartmentDao

NewDepartmentDao creates and returns a new DAO object for table data access.

func (*DepartmentDao) Columns

func (dao *DepartmentDao) Columns() DepartmentColumns

Columns returns all column names of current dao.

func (*DepartmentDao) Ctx

func (dao *DepartmentDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*DepartmentDao) DB

func (dao *DepartmentDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*DepartmentDao) Group

func (dao *DepartmentDao) Group() string

Group returns the configuration group name of database of current dao.

func (*DepartmentDao) Table

func (dao *DepartmentDao) Table() string

Table returns the table name of current dao.

func (*DepartmentDao) Transaction

func (dao *DepartmentDao) 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 DepartmentRolesColumns

type DepartmentRolesColumns struct {
	Id       string // 部门角色关联ID
	RoleId   string // 角色ID
	DepartId string // 部门ID
	CreateAt string // 创建时间
}

DepartmentRolesColumns defines and stores column names for table department_roles.

type DepartmentRolesDao

type DepartmentRolesDao struct {
	// contains filtered or unexported fields
}

DepartmentRolesDao is the data access object for table department_roles.

func NewDepartmentRolesDao

func NewDepartmentRolesDao() *DepartmentRolesDao

NewDepartmentRolesDao creates and returns a new DAO object for table data access.

func (*DepartmentRolesDao) Columns

Columns returns all column names of current dao.

func (*DepartmentRolesDao) Ctx

func (dao *DepartmentRolesDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*DepartmentRolesDao) DB

func (dao *DepartmentRolesDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*DepartmentRolesDao) Group

func (dao *DepartmentRolesDao) Group() string

Group returns the configuration group name of database of current dao.

func (*DepartmentRolesDao) Table

func (dao *DepartmentRolesDao) Table() string

Table returns the table name of current dao.

func (*DepartmentRolesDao) Transaction

func (dao *DepartmentRolesDao) 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 MemberBenefitsColumns added in v1.0.1

type MemberBenefitsColumns struct {
	Id       string // 会员可享服务ID
	Title    string // 服务名
	Content  string // 内容
	Alias    string // 服务别名,例如:video视频服务
	CreateAt string // 创建时间
}

MemberBenefitsColumns defines and stores column names for table member_benefits.

type MemberBenefitsDao added in v1.0.1

type MemberBenefitsDao struct {
	// contains filtered or unexported fields
}

MemberBenefitsDao is the data access object for table member_benefits.

func NewMemberBenefitsDao added in v1.0.1

func NewMemberBenefitsDao() *MemberBenefitsDao

NewMemberBenefitsDao creates and returns a new DAO object for table data access.

func (*MemberBenefitsDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*MemberBenefitsDao) Ctx added in v1.0.1

func (dao *MemberBenefitsDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*MemberBenefitsDao) DB added in v1.0.1

func (dao *MemberBenefitsDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*MemberBenefitsDao) Group added in v1.0.1

func (dao *MemberBenefitsDao) Group() string

Group returns the configuration group name of database of current dao.

func (*MemberBenefitsDao) Table added in v1.0.1

func (dao *MemberBenefitsDao) Table() string

Table returns the table name of current dao.

func (*MemberBenefitsDao) Transaction added in v1.0.1

func (dao *MemberBenefitsDao) 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 MemberSubscriberColumns added in v1.0.1

type MemberSubscriberColumns struct {
	Id           string // 会员订阅ID
	SubscriberNo string // 订阅编号
	Uid          string // 用户ID
	PayStatus    string // 支付状态:0待支付,1已支付
	Status       string // 订阅状态:0待确认,1服务中,2服务完成,3取消服务,4已退款
	PayCode      string // 支付方式别名
	PayName      string // 支付方式名
	DayFee       string // 折扣每日单价=支付总额/订阅天数
	SubTotalNum  string // 订阅天数
	PayFee       string // 支付金额
	RefundFee    string // 退款金额
	MbId         string // 会员身份ID
	MbName       string // 会员身份名
	SubStartDate string // 会员生效时间
	SubEndDate   string // 会员过期时间
	PayAt        string // 会员支付时间
	TradeNo      string // 商户交易支付号
	PayNo        string // 第三方支付交易号
	RefundNo     string // 第三方退款交易号
	RefundAt     string // 退款时间
	Remark       string // 备注
	UpdateAt     string // 更新时间
	CreateAt     string // 创建时间
}

MemberSubscriberColumns defines and stores column names for table member_subscriber.

type MemberSubscriberDao added in v1.0.1

type MemberSubscriberDao struct {
	// contains filtered or unexported fields
}

MemberSubscriberDao is the data access object for table member_subscriber.

func NewMemberSubscriberDao added in v1.0.1

func NewMemberSubscriberDao() *MemberSubscriberDao

NewMemberSubscriberDao creates and returns a new DAO object for table data access.

func (*MemberSubscriberDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*MemberSubscriberDao) Ctx added in v1.0.1

func (dao *MemberSubscriberDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*MemberSubscriberDao) DB added in v1.0.1

func (dao *MemberSubscriberDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*MemberSubscriberDao) Group added in v1.0.1

func (dao *MemberSubscriberDao) Group() string

Group returns the configuration group name of database of current dao.

func (*MemberSubscriberDao) Table added in v1.0.1

func (dao *MemberSubscriberDao) Table() string

Table returns the table name of current dao.

func (*MemberSubscriberDao) Transaction added in v1.0.1

func (dao *MemberSubscriberDao) 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 MemberTiersBeneJoinColumns added in v1.0.1

type MemberTiersBeneJoinColumns struct {
	Id            string // 会员关联ID
	BenefitsAlias string // 会员可享服务别名
	MbTiersId     string // 会员身份ID
	CreateAt      string // 创建时间
}

MemberTiersBeneJoinColumns defines and stores column names for table member_tiers_bene_join.

type MemberTiersBeneJoinDao added in v1.0.1

type MemberTiersBeneJoinDao struct {
	// contains filtered or unexported fields
}

MemberTiersBeneJoinDao is the data access object for table member_tiers_bene_join.

func NewMemberTiersBeneJoinDao added in v1.0.1

func NewMemberTiersBeneJoinDao() *MemberTiersBeneJoinDao

NewMemberTiersBeneJoinDao creates and returns a new DAO object for table data access.

func (*MemberTiersBeneJoinDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*MemberTiersBeneJoinDao) Ctx added in v1.0.1

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*MemberTiersBeneJoinDao) DB added in v1.0.1

func (dao *MemberTiersBeneJoinDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*MemberTiersBeneJoinDao) Group added in v1.0.1

func (dao *MemberTiersBeneJoinDao) Group() string

Group returns the configuration group name of database of current dao.

func (*MemberTiersBeneJoinDao) Table added in v1.0.1

func (dao *MemberTiersBeneJoinDao) Table() string

Table returns the table name of current dao.

func (*MemberTiersBeneJoinDao) Transaction added in v1.0.1

func (dao *MemberTiersBeneJoinDao) 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 MemberTiersColumns added in v1.0.1

type MemberTiersColumns struct {
	Id          string // 会员身份ID
	Name        string // 会员身份名
	Description string // 会员服务描述
	Tiers       string // 会员等级:0普通会员,1初级会员,2中级会员,3高级会员,4级顶级会员,5级超级会员,6至臻级会员
	MarketPrice string // 原价
	Price       string // 销售价
	ServiceDate string // 服务时间期限
	ServiceUnit string // 服务时间单位:d天,m月,y年
	Status      string // 会员状态:0启用,1禁用
	SaleNum     string // 销量
	ImageUrl    string // 会员推广图
	BgColor     string // 背景色
	Creator     string // 创建人名
	CreatorId   string // 创建人ID
	UpdateAt    string // 更新时间
	CreateAt    string // 创建时间
}

MemberTiersColumns defines and stores column names for table member_tiers.

type MemberTiersDao added in v1.0.1

type MemberTiersDao struct {
	// contains filtered or unexported fields
}

MemberTiersDao is the data access object for table member_tiers.

func NewMemberTiersDao added in v1.0.1

func NewMemberTiersDao() *MemberTiersDao

NewMemberTiersDao creates and returns a new DAO object for table data access.

func (*MemberTiersDao) Columns added in v1.0.1

func (dao *MemberTiersDao) Columns() MemberTiersColumns

Columns returns all column names of current dao.

func (*MemberTiersDao) Ctx added in v1.0.1

func (dao *MemberTiersDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*MemberTiersDao) DB added in v1.0.1

func (dao *MemberTiersDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*MemberTiersDao) Group added in v1.0.1

func (dao *MemberTiersDao) Group() string

Group returns the configuration group name of database of current dao.

func (*MemberTiersDao) Table added in v1.0.1

func (dao *MemberTiersDao) Table() string

Table returns the table name of current dao.

func (*MemberTiersDao) Transaction added in v1.0.1

func (dao *MemberTiersDao) 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 PanguCoinBillColumns added in v1.0.1

type PanguCoinBillColumns struct {
	Id                 string // 盘古币账单
	Uid                string // 用户ID
	OrderId            string // 盘古币充值订单ID
	BillNo             string // 账单编号
	TotalPanguCoin     string // 初始盘古币-留存记录不变
	AvailablePanguCoin string // 可用盘古币
	ExpiredPanguCoin   string // 过期盘古币
	ExpiredDate        string // 过期时间
	Status             string // 盘古币账单状态:0正常,1交易完成,2部分过期,3全额过期,4部分退款,5全额退款
	BillType           string // 账单类型:0充值兑换,1活动赠送,2平台赠送,3新用户赠送
	Remark             string // 备注
	UpdateAt           string // 更新时间
	CreateAt           string // 创建时间
}

PanguCoinBillColumns defines and stores column names for table pangu_coin_bill.

type PanguCoinBillDao added in v1.0.1

type PanguCoinBillDao struct {
	// contains filtered or unexported fields
}

PanguCoinBillDao is the data access object for table pangu_coin_bill.

func NewPanguCoinBillDao added in v1.0.1

func NewPanguCoinBillDao() *PanguCoinBillDao

NewPanguCoinBillDao creates and returns a new DAO object for table data access.

func (*PanguCoinBillDao) Columns added in v1.0.1

func (dao *PanguCoinBillDao) Columns() PanguCoinBillColumns

Columns returns all column names of current dao.

func (*PanguCoinBillDao) Ctx added in v1.0.1

func (dao *PanguCoinBillDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*PanguCoinBillDao) DB added in v1.0.1

func (dao *PanguCoinBillDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*PanguCoinBillDao) Group added in v1.0.1

func (dao *PanguCoinBillDao) Group() string

Group returns the configuration group name of database of current dao.

func (*PanguCoinBillDao) Table added in v1.0.1

func (dao *PanguCoinBillDao) Table() string

Table returns the table name of current dao.

func (*PanguCoinBillDao) Transaction added in v1.0.1

func (dao *PanguCoinBillDao) 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 PanguCoinOrderColumns added in v1.0.1

type PanguCoinOrderColumns struct {
	Id              string // 盘古币订单ID
	Uid             string // 用户ID
	OrderNo         string // 订单号
	TradeNo         string // 商户交易号
	PayNo           string // 第三方支付交易号
	RefundNo        string // 退款交易号
	PayCode         string // 支付别名
	PayName         string // 支付名
	PayFee          string // 支付金额
	RefundFee       string // 退款金额
	PanguCoin       string // 兑换盘古币数量
	RefundPanguCoin string // 退回盘古币数量
	Currency        string // 当前支付货币,默认人民币CNY
	PayAt           string // 支付时间
	RefundAt        string // 退款时间
	PayStatus       string // 支付状态:0待支付,1已支付
	Status          string // 状态:0待确认,1已完成,2已取消,3已退款
	Remark          string // 备注
	Content         string // 描述内容
	UpdateAt        string // 更新时间
	CreateAt        string // 创建时间
}

PanguCoinOrderColumns defines and stores column names for table pangu_coin_order.

type PanguCoinOrderDao added in v1.0.1

type PanguCoinOrderDao struct {
	// contains filtered or unexported fields
}

PanguCoinOrderDao is the data access object for table pangu_coin_order.

func NewPanguCoinOrderDao added in v1.0.1

func NewPanguCoinOrderDao() *PanguCoinOrderDao

NewPanguCoinOrderDao creates and returns a new DAO object for table data access.

func (*PanguCoinOrderDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*PanguCoinOrderDao) Ctx added in v1.0.1

func (dao *PanguCoinOrderDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*PanguCoinOrderDao) DB added in v1.0.1

func (dao *PanguCoinOrderDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*PanguCoinOrderDao) Group added in v1.0.1

func (dao *PanguCoinOrderDao) Group() string

Group returns the configuration group name of database of current dao.

func (*PanguCoinOrderDao) Table added in v1.0.1

func (dao *PanguCoinOrderDao) Table() string

Table returns the table name of current dao.

func (*PanguCoinOrderDao) Transaction added in v1.0.1

func (dao *PanguCoinOrderDao) 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 PanguCoinTransactionColumns added in v1.0.1

type PanguCoinTransactionColumns struct {
	Id              string // 盘古币流水ID
	BillId          string // 盘古币账单交易ID
	Uid             string // 用户ID
	BeforePanguCoin string // 变动前盘古币
	PanguCoin       string // 变动盘古币
	AfterPanguCoin  string // 变动后盘古币(当前数量)
	Type            string // 流水类型:0收入,1支出
	Remark          string // 备注
	CreateAt        string // 流水记录时间
}

PanguCoinTransactionColumns defines and stores column names for table pangu_coin_transaction.

type PanguCoinTransactionDao added in v1.0.1

type PanguCoinTransactionDao struct {
	// contains filtered or unexported fields
}

PanguCoinTransactionDao is the data access object for table pangu_coin_transaction.

func NewPanguCoinTransactionDao added in v1.0.1

func NewPanguCoinTransactionDao() *PanguCoinTransactionDao

NewPanguCoinTransactionDao creates and returns a new DAO object for table data access.

func (*PanguCoinTransactionDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*PanguCoinTransactionDao) Ctx added in v1.0.1

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*PanguCoinTransactionDao) DB added in v1.0.1

func (dao *PanguCoinTransactionDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*PanguCoinTransactionDao) Group added in v1.0.1

func (dao *PanguCoinTransactionDao) Group() string

Group returns the configuration group name of database of current dao.

func (*PanguCoinTransactionDao) Table added in v1.0.1

func (dao *PanguCoinTransactionDao) Table() string

Table returns the table name of current dao.

func (*PanguCoinTransactionDao) Transaction added in v1.0.1

func (dao *PanguCoinTransactionDao) 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 PermissionsColumns

type PermissionsColumns struct {
	Id            string // 权限ID
	Name          string // 权限名
	Description   string // 权限详情
	MenuType      string // 权限类型:0主菜单,1子菜单,2页面操作,3数据授权
	Icon          string // Icon图
	Path          string // 页面地址
	ApiPath       string // 接口地址
	Pid           string // 父级权限ID
	IsShow        string // 菜单是否显示:0显示,1隐藏
	IsDisabled    string // 是否禁用:0正常,1禁用
	PermCode      string // 操作权限码
	DisableColumn string // 禁用字段(3.数据授权类型)
	Sort          string // 排序值0-255
	UpdateAt      string // 更新时间
	CreateAt      string // 创建时间
}

PermissionsColumns defines and stores column names for table permissions.

type PermissionsDao

type PermissionsDao struct {
	// contains filtered or unexported fields
}

PermissionsDao is the data access object for table permissions.

func NewPermissionsDao

func NewPermissionsDao() *PermissionsDao

NewPermissionsDao creates and returns a new DAO object for table data access.

func (*PermissionsDao) Columns

func (dao *PermissionsDao) Columns() PermissionsColumns

Columns returns all column names of current dao.

func (*PermissionsDao) Ctx

func (dao *PermissionsDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*PermissionsDao) DB

func (dao *PermissionsDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*PermissionsDao) Group

func (dao *PermissionsDao) Group() string

Group returns the configuration group name of database of current dao.

func (*PermissionsDao) Table

func (dao *PermissionsDao) Table() string

Table returns the table name of current dao.

func (*PermissionsDao) Transaction

func (dao *PermissionsDao) 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 PermissonsAssocColumns

type PermissonsAssocColumns struct {
	Id            string // 角色权限关联ID
	AssocId       string // 角色ID
	PermissionsId string // 权限ID
	AssocType     string // 关联类型:0角色关联,1账户关联
	CreateAt      string // 创建时间
}

PermissonsAssocColumns defines and stores column names for table permissons_assoc.

type PermissonsAssocDao

type PermissonsAssocDao struct {
	// contains filtered or unexported fields
}

PermissonsAssocDao is the data access object for table permissons_assoc.

func NewPermissonsAssocDao

func NewPermissonsAssocDao() *PermissonsAssocDao

NewPermissonsAssocDao creates and returns a new DAO object for table data access.

func (*PermissonsAssocDao) Columns

Columns returns all column names of current dao.

func (*PermissonsAssocDao) Ctx

func (dao *PermissonsAssocDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*PermissonsAssocDao) DB

func (dao *PermissonsAssocDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*PermissonsAssocDao) Group

func (dao *PermissonsAssocDao) Group() string

Group returns the configuration group name of database of current dao.

func (*PermissonsAssocDao) Table

func (dao *PermissonsAssocDao) Table() string

Table returns the table name of current dao.

func (*PermissonsAssocDao) Transaction

func (dao *PermissonsAssocDao) 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 RolesColumns

type RolesColumns struct {
	Id          string // 角色ID
	Name        string // 角色名
	Description string // 详情
	RoleStatus  string // 角色状态:0正常,1冻结
	Sort        string // 排序:0-255,默认255
	UpdateAt    string // 更新时间
	CreateAt    string // 创建时间
}

RolesColumns defines and stores column names for table roles.

type RolesDao

type RolesDao struct {
	// contains filtered or unexported fields
}

RolesDao is the data access object for table roles.

func NewRolesDao

func NewRolesDao() *RolesDao

NewRolesDao creates and returns a new DAO object for table data access.

func (*RolesDao) Columns

func (dao *RolesDao) Columns() RolesColumns

Columns returns all column names of current dao.

func (*RolesDao) Ctx

func (dao *RolesDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*RolesDao) DB

func (dao *RolesDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*RolesDao) Group

func (dao *RolesDao) Group() string

Group returns the configuration group name of database of current dao.

func (*RolesDao) Table

func (dao *RolesDao) Table() string

Table returns the table name of current dao.

func (*RolesDao) Transaction

func (dao *RolesDao) 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 SmsRecordColumns

type SmsRecordColumns struct {
	Id         string // 短信发送记录编号
	Mobile     string // 接受短信的手机号
	Content    string // 短信内容
	Code       string // 验证码
	Ip         string // 添加记录ip
	TemplateId string // 短信模板ID
	SmsType    string // 短信类型:0验证码,1消息通知,2营销短信
	SerialId   string // 发送记录id
	Results    string // 发送结果
	UpdateAt   string // 更新时间
	CreateAt   string // 创建时间
}

SmsRecordColumns defines and stores column names for table sms_record.

type SmsRecordDao

type SmsRecordDao struct {
	// contains filtered or unexported fields
}

SmsRecordDao is the data access object for table sms_record.

func NewSmsRecordDao

func NewSmsRecordDao() *SmsRecordDao

NewSmsRecordDao creates and returns a new DAO object for table data access.

func (*SmsRecordDao) Columns

func (dao *SmsRecordDao) Columns() SmsRecordColumns

Columns returns all column names of current dao.

func (*SmsRecordDao) Ctx

func (dao *SmsRecordDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SmsRecordDao) DB

func (dao *SmsRecordDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SmsRecordDao) Group

func (dao *SmsRecordDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SmsRecordDao) Table

func (dao *SmsRecordDao) Table() string

Table returns the table name of current dao.

func (*SmsRecordDao) Transaction

func (dao *SmsRecordDao) 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 SmsTemplateColumns

type SmsTemplateColumns struct {
	Id       string // 模板ID
	Name     string // 模板名
	Content  string // 模板内容
	VarAlias string // 模板别名
	SmsType  string // 短信类型:0验证码,1消息通知,2营销短信
	Status   string // 模板状态:0关闭,1启用
	Remark   string // 备注
	UpdateAt string // 更新时间
	CreateAt string // 创建时间
}

SmsTemplateColumns defines and stores column names for table sms_template.

type SmsTemplateDao

type SmsTemplateDao struct {
	// contains filtered or unexported fields
}

SmsTemplateDao is the data access object for table sms_template.

func NewSmsTemplateDao

func NewSmsTemplateDao() *SmsTemplateDao

NewSmsTemplateDao creates and returns a new DAO object for table data access.

func (*SmsTemplateDao) Columns

func (dao *SmsTemplateDao) Columns() SmsTemplateColumns

Columns returns all column names of current dao.

func (*SmsTemplateDao) Ctx

func (dao *SmsTemplateDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SmsTemplateDao) DB

func (dao *SmsTemplateDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SmsTemplateDao) Group

func (dao *SmsTemplateDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SmsTemplateDao) Table

func (dao *SmsTemplateDao) Table() string

Table returns the table name of current dao.

func (*SmsTemplateDao) Transaction

func (dao *SmsTemplateDao) 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 SmsTemplateOutColumns

type SmsTemplateOutColumns struct {
	Id            string // 短信模板关联外部平台ID
	VarAlias      string // 系统模板变量
	TemplateId    string // 外部平台ID
	FromType      string // 平台类型:tencent腾讯,alipay阿里云[is_config,短信通道]
	OutTmplStatus string // 外部模板状态
	UpdateAt      string // 更新时间
	CreateAt      string // 创建时间
}

SmsTemplateOutColumns defines and stores column names for table sms_template_out.

type SmsTemplateOutDao

type SmsTemplateOutDao struct {
	// contains filtered or unexported fields
}

SmsTemplateOutDao is the data access object for table sms_template_out.

func NewSmsTemplateOutDao

func NewSmsTemplateOutDao() *SmsTemplateOutDao

NewSmsTemplateOutDao creates and returns a new DAO object for table data access.

func (*SmsTemplateOutDao) Columns

Columns returns all column names of current dao.

func (*SmsTemplateOutDao) Ctx

func (dao *SmsTemplateOutDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SmsTemplateOutDao) DB

func (dao *SmsTemplateOutDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SmsTemplateOutDao) Group

func (dao *SmsTemplateOutDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SmsTemplateOutDao) Table

func (dao *SmsTemplateOutDao) Table() string

Table returns the table name of current dao.

func (*SmsTemplateOutDao) Transaction

func (dao *SmsTemplateOutDao) 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 SysMapColumns

type SysMapColumns struct {
	Id        string // 系统字典ID
	Name      string // 字典名,例如:sys_user_sex
	Explain   string // 字典名解析值,例如:用户性别
	IsDisable string // 是否禁用:0正常,1禁用
	UpdateAt  string // 更新时间
	CreateAt  string // 创建时间
}

SysMapColumns defines and stores column names for table sys_map.

type SysMapDao

type SysMapDao struct {
	// contains filtered or unexported fields
}

SysMapDao is the data access object for table sys_map.

func NewSysMapDao

func NewSysMapDao() *SysMapDao

NewSysMapDao creates and returns a new DAO object for table data access.

func (*SysMapDao) Columns

func (dao *SysMapDao) Columns() SysMapColumns

Columns returns all column names of current dao.

func (*SysMapDao) Ctx

func (dao *SysMapDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SysMapDao) DB

func (dao *SysMapDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SysMapDao) Group

func (dao *SysMapDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SysMapDao) Table

func (dao *SysMapDao) Table() string

Table returns the table name of current dao.

func (*SysMapDao) Transaction

func (dao *SysMapDao) 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 SysMapValueColumns

type SysMapValueColumns struct {
	Id       string // 字典值ID
	Value    string // 字典值
	Explain  string // 字典值解析
	Name     string // 字典名-sys_map[name]
	UpdateAt string // 更新时间
	CreateAt string // 创建时间
}

SysMapValueColumns defines and stores column names for table sys_map_value.

type SysMapValueDao

type SysMapValueDao struct {
	// contains filtered or unexported fields
}

SysMapValueDao is the data access object for table sys_map_value.

func NewSysMapValueDao

func NewSysMapValueDao() *SysMapValueDao

NewSysMapValueDao creates and returns a new DAO object for table data access.

func (*SysMapValueDao) Columns

func (dao *SysMapValueDao) Columns() SysMapValueColumns

Columns returns all column names of current dao.

func (*SysMapValueDao) Ctx

func (dao *SysMapValueDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SysMapValueDao) DB

func (dao *SysMapValueDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SysMapValueDao) Group

func (dao *SysMapValueDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SysMapValueDao) Table

func (dao *SysMapValueDao) Table() string

Table returns the table name of current dao.

func (*SysMapValueDao) Transaction

func (dao *SysMapValueDao) 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 SystemLogColumns

type SystemLogColumns struct {
	Id           string // 日志id
	ModuleName   string // 操作模块名
	Content      string // 操作详情
	Ip           string // 操作IP地址
	OperateType  string // 日志操作类型:0操作日志,1登录操作,2系统日志
	ApiUrl       string // api URL
	UserId       string // 用户ID
	ManageId     string // 账户id
	ManageName   string // 账户名
	MerchantId   string // 商户ID
	ResponseText string // 资源响应
	ParamText    string // 请求资源
	UpdateAt     string // 更新时间
	CreateAt     string // 创建时间
}

SystemLogColumns defines and stores column names for table system_log.

type SystemLogDao

type SystemLogDao struct {
	// contains filtered or unexported fields
}

SystemLogDao is the data access object for table system_log.

func NewSystemLogDao

func NewSystemLogDao() *SystemLogDao

NewSystemLogDao creates and returns a new DAO object for table data access.

func (*SystemLogDao) Columns

func (dao *SystemLogDao) Columns() SystemLogColumns

Columns returns all column names of current dao.

func (*SystemLogDao) Ctx

func (dao *SystemLogDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*SystemLogDao) DB

func (dao *SystemLogDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*SystemLogDao) Group

func (dao *SystemLogDao) Group() string

Group returns the configuration group name of database of current dao.

func (*SystemLogDao) Table

func (dao *SystemLogDao) Table() string

Table returns the table name of current dao.

func (*SystemLogDao) Transaction

func (dao *SystemLogDao) 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 UserAdminColumns

type UserAdminColumns struct {
	Id            string // 管理员ID
	UserId        string // 用户ID
	ManageName    string // 管理名称
	ManageNo      string // 管理员编号
	IsSuperManage string // 是否超管:0普管,1超管
	ManageStatus  string // 管理员状态:0正常,1冻结,2离职,3违规,4注销
	LogoffAt      string // 注销时间
	UpdateAt      string // 更新时间
	CreateAt      string // 穿件时间
}

UserAdminColumns defines and stores column names for table user_admin.

type UserAdminDao

type UserAdminDao struct {
	// contains filtered or unexported fields
}

UserAdminDao is the data access object for table user_admin.

func NewUserAdminDao

func NewUserAdminDao() *UserAdminDao

NewUserAdminDao creates and returns a new DAO object for table data access.

func (*UserAdminDao) Columns

func (dao *UserAdminDao) Columns() UserAdminColumns

Columns returns all column names of current dao.

func (*UserAdminDao) Ctx

func (dao *UserAdminDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*UserAdminDao) DB

func (dao *UserAdminDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*UserAdminDao) Group

func (dao *UserAdminDao) Group() string

Group returns the configuration group name of database of current dao.

func (*UserAdminDao) Table

func (dao *UserAdminDao) Table() string

Table returns the table name of current dao.

func (*UserAdminDao) Transaction

func (dao *UserAdminDao) 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 UserColumns

type UserColumns struct {
	Id       string // 用户ID
	Account  string // 账号
	Mobile   string // 手机号(加密)
	Nickname string // 昵称
	UniqueId string // 对外身份ID
	Status   string // 状态:0正常,1冻结,2待注销
	UpdateAt string // 更新时间
	CreateAt string // 注册时间
}

UserColumns defines and stores column names for table user.

type UserCredentialColumns

type UserCredentialColumns struct {
	Id              string // 用户证件ID
	UserId          string // 用户ID
	IdCard          string // 证件编号
	JustUrl         string // 证件正面URL地址
	OppositeUrl     string // 证件反面URL地址
	Type            string // 证件类型:0身份证
	ExpireType      string // 证件效期类型:0有效期,1长期
	ExpireStartDate string // 证件注册时间
	ExpireEndDate   string // 证件到期时间
	UpdateAt        string // 更新时间
	CreateAt        string // 创建时间
}

UserCredentialColumns defines and stores column names for table user_credential.

type UserCredentialDao

type UserCredentialDao struct {
	// contains filtered or unexported fields
}

UserCredentialDao is the data access object for table user_credential.

func NewUserCredentialDao

func NewUserCredentialDao() *UserCredentialDao

NewUserCredentialDao creates and returns a new DAO object for table data access.

func (*UserCredentialDao) Columns

Columns returns all column names of current dao.

func (*UserCredentialDao) Ctx

func (dao *UserCredentialDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*UserCredentialDao) DB

func (dao *UserCredentialDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*UserCredentialDao) Group

func (dao *UserCredentialDao) Group() string

Group returns the configuration group name of database of current dao.

func (*UserCredentialDao) Table

func (dao *UserCredentialDao) Table() string

Table returns the table name of current dao.

func (*UserCredentialDao) Transaction

func (dao *UserCredentialDao) 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 UserDao

type UserDao struct {
	// contains filtered or unexported fields
}

UserDao is the data access object for table user.

func NewUserDao

func NewUserDao() *UserDao

NewUserDao creates and returns a new DAO object for table data access.

func (*UserDao) Columns

func (dao *UserDao) Columns() UserColumns

Columns returns all column names of current dao.

func (*UserDao) Ctx

func (dao *UserDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*UserDao) DB

func (dao *UserDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*UserDao) Group

func (dao *UserDao) Group() string

Group returns the configuration group name of database of current dao.

func (*UserDao) Table

func (dao *UserDao) Table() string

Table returns the table name of current dao.

func (*UserDao) Transaction

func (dao *UserDao) 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 UserDetailColumns

type UserDetailColumns struct {
	UserId          string // 用户ID
	Sex             string // 性别:0男,1女
	Birthday        string // 生日
	PwdHash         string // 密码hash值
	PwdSalt         string // 加密盐
	Avatar          string // 头像
	AttachId        string // 附件ID
	RegIp           string // 注册IP
	RegIpLocation   string // 注册归属地
	LoginIp         string // 登录IP
	LoginIpLocation string // 登录归属地
	LogoutAt        string // 注销时间
	SignNum         string // 签到总数
	ConSign         string // 连续签到时间
	UpdateAt        string // 更新时间
}

UserDetailColumns defines and stores column names for table user_detail.

type UserDetailDao

type UserDetailDao struct {
	// contains filtered or unexported fields
}

UserDetailDao is the data access object for table user_detail.

func NewUserDetailDao

func NewUserDetailDao() *UserDetailDao

NewUserDetailDao creates and returns a new DAO object for table data access.

func (*UserDetailDao) Columns

func (dao *UserDetailDao) Columns() UserDetailColumns

Columns returns all column names of current dao.

func (*UserDetailDao) Ctx

func (dao *UserDetailDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*UserDetailDao) DB

func (dao *UserDetailDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*UserDetailDao) Group

func (dao *UserDetailDao) Group() string

Group returns the configuration group name of database of current dao.

func (*UserDetailDao) Table

func (dao *UserDetailDao) Table() string

Table returns the table name of current dao.

func (*UserDetailDao) Transaction

func (dao *UserDetailDao) 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 UserDeviceColumns

type UserDeviceColumns struct {
	Id          string // 用户设备ID
	UserId      string // 用户ID
	DeviceName  string // 设备名称
	DeviceType  string // 设备类型:iOS,安卓,H5,PC
	Mac         string // MAC地址
	DeviceHash  string // 设备Hash值[用户ID+设备名+类型+MAC]
	LastLoginAt string // 最后登录时间
	IsDisabled  string // 是否禁用:0正常,1禁用
	UpdateAt    string // 更新时间
	CreateAt    string // 创建时间
}

UserDeviceColumns defines and stores column names for table user_device.

type UserDeviceDao

type UserDeviceDao struct {
	// contains filtered or unexported fields
}

UserDeviceDao is the data access object for table user_device.

func NewUserDeviceDao

func NewUserDeviceDao() *UserDeviceDao

NewUserDeviceDao creates and returns a new DAO object for table data access.

func (*UserDeviceDao) Columns

func (dao *UserDeviceDao) Columns() UserDeviceColumns

Columns returns all column names of current dao.

func (*UserDeviceDao) Ctx

func (dao *UserDeviceDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*UserDeviceDao) DB

func (dao *UserDeviceDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*UserDeviceDao) Group

func (dao *UserDeviceDao) Group() string

Group returns the configuration group name of database of current dao.

func (*UserDeviceDao) Table

func (dao *UserDeviceDao) Table() string

Table returns the table name of current dao.

func (*UserDeviceDao) Transaction

func (dao *UserDeviceDao) 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 UserFundsColumns

type UserFundsColumns struct {
	UserId                string // 用户ID
	RechargeTotalFee      string // 充值总金额
	AvailableFee          string // 可用金额
	FreezeFee             string // 冻结金额
	PanguCoinTotal        string // 兑换盘古币总数
	AvailablePanguCoin    string // 可用盘古币数
	FreezePanguCoin       string // 冻结盘古币数
	ConsumeTotalPanguCoin string // 消费总盘古币数
	ConsumeTotalFee       string // 消费总金额
	UpdateAt              string // 更新时间
}

UserFundsColumns defines and stores column names for table user_funds.

type UserFundsDao

type UserFundsDao struct {
	// contains filtered or unexported fields
}

UserFundsDao is the data access object for table user_funds.

func NewUserFundsDao

func NewUserFundsDao() *UserFundsDao

NewUserFundsDao creates and returns a new DAO object for table data access.

func (*UserFundsDao) Columns

func (dao *UserFundsDao) Columns() UserFundsColumns

Columns returns all column names of current dao.

func (*UserFundsDao) Ctx

func (dao *UserFundsDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*UserFundsDao) DB

func (dao *UserFundsDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*UserFundsDao) Group

func (dao *UserFundsDao) Group() string

Group returns the configuration group name of database of current dao.

func (*UserFundsDao) Table

func (dao *UserFundsDao) Table() string

Table returns the table name of current dao.

func (*UserFundsDao) Transaction

func (dao *UserFundsDao) 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 UserLoginColumns

type UserLoginColumns struct {
	Id              string // 用户登录记录ID
	UserId          string // 用户ID
	LoginIp         string // 登录IP
	LoginIpLocation string // 登录归属地
	Token           string // 登录token
	ExpireTime      string // 过期时间
	Status          string // 状态:0在线,1下线,2超时下线
	IsUse           string // 是否一直在使用;0是,1否
	DeviceType      string // 设备类型
	DeviceContent   string // 设备详情
	IsNewDevice     string // 是否新设备:0是,1新设备
	Mac             string // Mac地址
	UpdateAt        string // 更新时间
	CreateAt        string // 登录时间
}

UserLoginColumns defines and stores column names for table user_login.

type UserLoginDao

type UserLoginDao struct {
	// contains filtered or unexported fields
}

UserLoginDao is the data access object for table user_login.

func NewUserLoginDao

func NewUserLoginDao() *UserLoginDao

NewUserLoginDao creates and returns a new DAO object for table data access.

func (*UserLoginDao) Columns

func (dao *UserLoginDao) Columns() UserLoginColumns

Columns returns all column names of current dao.

func (*UserLoginDao) Ctx

func (dao *UserLoginDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*UserLoginDao) DB

func (dao *UserLoginDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*UserLoginDao) Group

func (dao *UserLoginDao) Group() string

Group returns the configuration group name of database of current dao.

func (*UserLoginDao) Table

func (dao *UserLoginDao) Table() string

Table returns the table name of current dao.

func (*UserLoginDao) Transaction

func (dao *UserLoginDao) 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 VideoAttributeColumns added in v1.0.1

type VideoAttributeColumns struct {
	VideoId           string // 视频ID
	Synopsis          string // 简介概要
	EpisodesNum       string // 总集数
	UpStatus          string // 视频更新状态:0更新中,1已完结
	Description       string // 视频宣传详情
	ShareTitle        string // 分享视频名
	ShareContent      string // 分享视频内容
	IsSeries          string // 是否连续剧:0单剧,1连续剧
	FreePlayNum       string // VIP视频免费播放集数
	TrialDuration     string // 试看时长
	Lang              string // 语言类型:中英双文
	CompletePanguCoin string // 全集购买盘古币
	SinglePanguCoin   string // 单集购买币
	AttachId          string // 附件ID
	UpdateAt          string // 更新时间
}

VideoAttributeColumns defines and stores column names for table video_attribute.

type VideoAttributeDao added in v1.0.1

type VideoAttributeDao struct {
	// contains filtered or unexported fields
}

VideoAttributeDao is the data access object for table video_attribute.

func NewVideoAttributeDao added in v1.0.1

func NewVideoAttributeDao() *VideoAttributeDao

NewVideoAttributeDao creates and returns a new DAO object for table data access.

func (*VideoAttributeDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*VideoAttributeDao) Ctx added in v1.0.1

func (dao *VideoAttributeDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoAttributeDao) DB added in v1.0.1

func (dao *VideoAttributeDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoAttributeDao) Group added in v1.0.1

func (dao *VideoAttributeDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoAttributeDao) Table added in v1.0.1

func (dao *VideoAttributeDao) Table() string

Table returns the table name of current dao.

func (*VideoAttributeDao) Transaction added in v1.0.1

func (dao *VideoAttributeDao) 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 VideoBuyBillColumns added in v1.0.1

type VideoBuyBillColumns struct {
	Id              string // 视频购买账单ID
	BuyId           string // 购买ID
	Uid             string // 用户ID
	BuyPanguCoin    string // 支付盘古币
	RefundPanguCoin string // 退款盘古币
	BuyEpisodesNum  string // 购买集数
	Content         string // 购买内容,例如[视频名+集数,集数,集数。。。]
	Status          string // 购买状态:0已购买,1已退款
	Type            string // 购买类型:0单集购买,1全集购买,2余集买断
	RefundAt        string // 退款时间
	UpdateAt        string // 更新时间
	CreateAt        string // 创建时间
}

VideoBuyBillColumns defines and stores column names for table video_buy_bill.

type VideoBuyBillDao added in v1.0.1

type VideoBuyBillDao struct {
	// contains filtered or unexported fields
}

VideoBuyBillDao is the data access object for table video_buy_bill.

func NewVideoBuyBillDao added in v1.0.1

func NewVideoBuyBillDao() *VideoBuyBillDao

NewVideoBuyBillDao creates and returns a new DAO object for table data access.

func (*VideoBuyBillDao) Columns added in v1.0.1

func (dao *VideoBuyBillDao) Columns() VideoBuyBillColumns

Columns returns all column names of current dao.

func (*VideoBuyBillDao) Ctx added in v1.0.1

func (dao *VideoBuyBillDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoBuyBillDao) DB added in v1.0.1

func (dao *VideoBuyBillDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoBuyBillDao) Group added in v1.0.1

func (dao *VideoBuyBillDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoBuyBillDao) Table added in v1.0.1

func (dao *VideoBuyBillDao) Table() string

Table returns the table name of current dao.

func (*VideoBuyBillDao) Transaction added in v1.0.1

func (dao *VideoBuyBillDao) 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 VideoBuyColumns added in v1.0.1

type VideoBuyColumns struct {
	Id                string // 视频购买ID
	Uid               string // 用户ID
	VideoId           string // 视频ID
	BuyNo             string // 视频购买编号
	VideoName         string // 视频名称
	CompletePanguCoin string // 全集盘古币数量
	AddPanguCoin      string // 已累计消费盘古币数量
	Status            string // 状态:0购买中,1已全剧购买
	UpdateAt          string // 更新时间
	CreateAt          string // 创建时间
}

VideoBuyColumns defines and stores column names for table video_buy.

type VideoBuyDao added in v1.0.1

type VideoBuyDao struct {
	// contains filtered or unexported fields
}

VideoBuyDao is the data access object for table video_buy.

func NewVideoBuyDao added in v1.0.1

func NewVideoBuyDao() *VideoBuyDao

NewVideoBuyDao creates and returns a new DAO object for table data access.

func (*VideoBuyDao) Columns added in v1.0.1

func (dao *VideoBuyDao) Columns() VideoBuyColumns

Columns returns all column names of current dao.

func (*VideoBuyDao) Ctx added in v1.0.1

func (dao *VideoBuyDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoBuyDao) DB added in v1.0.1

func (dao *VideoBuyDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoBuyDao) Group added in v1.0.1

func (dao *VideoBuyDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoBuyDao) Table added in v1.0.1

func (dao *VideoBuyDao) Table() string

Table returns the table name of current dao.

func (*VideoBuyDao) Transaction added in v1.0.1

func (dao *VideoBuyDao) 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 VideoBuyEpisodesColumns added in v1.0.1

type VideoBuyEpisodesColumns struct {
	Id           string // 视频购买单集ID
	BillId       string // 视频购买账单ID
	Uid          string // 用户ID
	VideoId      string // 视频ID
	EpisodesId   string // 单集ID
	EpisodesName string // 单集名称
	EpisodesNum  string // 续集集数
	CreateAt     string // 创建时间
}

VideoBuyEpisodesColumns defines and stores column names for table video_buy_episodes.

type VideoBuyEpisodesDao added in v1.0.1

type VideoBuyEpisodesDao struct {
	// contains filtered or unexported fields
}

VideoBuyEpisodesDao is the data access object for table video_buy_episodes.

func NewVideoBuyEpisodesDao added in v1.0.1

func NewVideoBuyEpisodesDao() *VideoBuyEpisodesDao

NewVideoBuyEpisodesDao creates and returns a new DAO object for table data access.

func (*VideoBuyEpisodesDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*VideoBuyEpisodesDao) Ctx added in v1.0.1

func (dao *VideoBuyEpisodesDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoBuyEpisodesDao) DB added in v1.0.1

func (dao *VideoBuyEpisodesDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoBuyEpisodesDao) Group added in v1.0.1

func (dao *VideoBuyEpisodesDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoBuyEpisodesDao) Table added in v1.0.1

func (dao *VideoBuyEpisodesDao) Table() string

Table returns the table name of current dao.

func (*VideoBuyEpisodesDao) Transaction added in v1.0.1

func (dao *VideoBuyEpisodesDao) 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 VideoCategoryColumns added in v1.0.1

type VideoCategoryColumns struct {
	Id       string // 视频分类ID
	Name     string // 分类名
	TinyName string // 短标题
	Pid      string // 父级ID
	Sort     string // 排序:升序排序0-99999
	IsShow   string // 是否显示
	UpdateAt string // 更新时间
	CreateAt string // 创建时间
}

VideoCategoryColumns defines and stores column names for table video_category.

type VideoCategoryDao added in v1.0.1

type VideoCategoryDao struct {
	// contains filtered or unexported fields
}

VideoCategoryDao is the data access object for table video_category.

func NewVideoCategoryDao added in v1.0.1

func NewVideoCategoryDao() *VideoCategoryDao

NewVideoCategoryDao creates and returns a new DAO object for table data access.

func (*VideoCategoryDao) Columns added in v1.0.1

func (dao *VideoCategoryDao) Columns() VideoCategoryColumns

Columns returns all column names of current dao.

func (*VideoCategoryDao) Ctx added in v1.0.1

func (dao *VideoCategoryDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoCategoryDao) DB added in v1.0.1

func (dao *VideoCategoryDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoCategoryDao) Group added in v1.0.1

func (dao *VideoCategoryDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoCategoryDao) Table added in v1.0.1

func (dao *VideoCategoryDao) Table() string

Table returns the table name of current dao.

func (*VideoCategoryDao) Transaction added in v1.0.1

func (dao *VideoCategoryDao) 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 VideoColumns added in v1.0.1

type VideoColumns struct {
	Id          string // 视频ID
	VideoNo     string // 视频编号
	VideoName   string // 视频名
	Keywords    string // 关键词
	CateId1     string // 一级类目
	CateId2     string // 二级类目
	Region      string // 地区
	YearDate    string // 上映年份
	ReleaseDate string // 上映时间
	IsRecommend string // 是否推荐:0否,1是
	IsBest      string // 是否精品:0否,1是
	IsTop       string // 是否置顶:0否,1是
	IsNew       string // 是否新剧:0否,1是
	IsHot       string // 是否热播:0否,1是
	FeeType     string // 收费类型:0免费,1VIP付费
	ImageUrl    string // 海报
	Browse      string // 浏览量
	PlayNum     string // 播放量
	Collect     string // 收藏量
	ShareNum    string // 分享量
	Score       string // 评分,最高分10分
	Status      string // 视频状态:0待审核,1审核通过,2驳回申请,3违规下架
	IsRelease   string // 是否发布:0未发布,1已发布
	UpdateAt    string // 更新时间
	CreateAt    string // 创建时间
}

VideoColumns defines and stores column names for table video.

type VideoDao added in v1.0.1

type VideoDao struct {
	// contains filtered or unexported fields
}

VideoDao is the data access object for table video.

func NewVideoDao added in v1.0.1

func NewVideoDao() *VideoDao

NewVideoDao creates and returns a new DAO object for table data access.

func (*VideoDao) Columns added in v1.0.1

func (dao *VideoDao) Columns() VideoColumns

Columns returns all column names of current dao.

func (*VideoDao) Ctx added in v1.0.1

func (dao *VideoDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoDao) DB added in v1.0.1

func (dao *VideoDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoDao) Group added in v1.0.1

func (dao *VideoDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoDao) Table added in v1.0.1

func (dao *VideoDao) Table() string

Table returns the table name of current dao.

func (*VideoDao) Transaction added in v1.0.1

func (dao *VideoDao) 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 VideoEpisodesColumns added in v1.0.1

type VideoEpisodesColumns struct {
	Id            string // 视频集数ID
	VideoId       string // 视频ID
	AttachId      string // 附件ID
	ImageUrl      string // 当前集数海报
	EpisodesName  string // 续集标题
	Synopsis      string // 简介
	EpisodesNum   string // 集数
	ResolutionSet string // 清晰度集合:480P,720P,1080P等
	PlayNum       string // 播放次数
	UpdateAt      string // 更新时间
	CreateAt      string // 创建时间
}

VideoEpisodesColumns defines and stores column names for table video_episodes.

type VideoEpisodesDao added in v1.0.1

type VideoEpisodesDao struct {
	// contains filtered or unexported fields
}

VideoEpisodesDao is the data access object for table video_episodes.

func NewVideoEpisodesDao added in v1.0.1

func NewVideoEpisodesDao() *VideoEpisodesDao

NewVideoEpisodesDao creates and returns a new DAO object for table data access.

func (*VideoEpisodesDao) Columns added in v1.0.1

func (dao *VideoEpisodesDao) Columns() VideoEpisodesColumns

Columns returns all column names of current dao.

func (*VideoEpisodesDao) Ctx added in v1.0.1

func (dao *VideoEpisodesDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoEpisodesDao) DB added in v1.0.1

func (dao *VideoEpisodesDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoEpisodesDao) Group added in v1.0.1

func (dao *VideoEpisodesDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoEpisodesDao) Table added in v1.0.1

func (dao *VideoEpisodesDao) Table() string

Table returns the table name of current dao.

func (*VideoEpisodesDao) Transaction added in v1.0.1

func (dao *VideoEpisodesDao) 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 VideoLabelColumns added in v1.0.1

type VideoLabelColumns struct {
	Id       string // 视频标签ID
	VideoId  string // 视频ID
	Value    string // 标签值
	CreateAt string // 创建时间
}

VideoLabelColumns defines and stores column names for table video_label.

type VideoLabelDao added in v1.0.1

type VideoLabelDao struct {
	// contains filtered or unexported fields
}

VideoLabelDao is the data access object for table video_label.

func NewVideoLabelDao added in v1.0.1

func NewVideoLabelDao() *VideoLabelDao

NewVideoLabelDao creates and returns a new DAO object for table data access.

func (*VideoLabelDao) Columns added in v1.0.1

func (dao *VideoLabelDao) Columns() VideoLabelColumns

Columns returns all column names of current dao.

func (*VideoLabelDao) Ctx added in v1.0.1

func (dao *VideoLabelDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoLabelDao) DB added in v1.0.1

func (dao *VideoLabelDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoLabelDao) Group added in v1.0.1

func (dao *VideoLabelDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoLabelDao) Table added in v1.0.1

func (dao *VideoLabelDao) Table() string

Table returns the table name of current dao.

func (*VideoLabelDao) Transaction added in v1.0.1

func (dao *VideoLabelDao) 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 VideoLogColumns added in v1.0.1

type VideoLogColumns struct {
	Id         string // 视频日志ID
	VideoId    string // 视频ID
	Content    string // 操作内容
	ManageId   string // 管理员ID
	UserId     string // 用户ID
	ManageName string // 操作管理员名
	Url        string // 操作URL
	CreateAt   string // 创建时间
}

VideoLogColumns defines and stores column names for table video_log.

type VideoLogDao added in v1.0.1

type VideoLogDao struct {
	// contains filtered or unexported fields
}

VideoLogDao is the data access object for table video_log.

func NewVideoLogDao added in v1.0.1

func NewVideoLogDao() *VideoLogDao

NewVideoLogDao creates and returns a new DAO object for table data access.

func (*VideoLogDao) Columns added in v1.0.1

func (dao *VideoLogDao) Columns() VideoLogColumns

Columns returns all column names of current dao.

func (*VideoLogDao) Ctx added in v1.0.1

func (dao *VideoLogDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoLogDao) DB added in v1.0.1

func (dao *VideoLogDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoLogDao) Group added in v1.0.1

func (dao *VideoLogDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoLogDao) Table added in v1.0.1

func (dao *VideoLogDao) Table() string

Table returns the table name of current dao.

func (*VideoLogDao) Transaction added in v1.0.1

func (dao *VideoLogDao) 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 VideoPersonalColumns added in v1.0.1

type VideoPersonalColumns struct {
	Id       string // 视频相关人员ID
	VideoId  string // 视频ID
	ActorsId string // 演员ID
	Name     string // 参演名
	Type     string // 角色类型:0导演,1副导演,2领衔主演,3主演,4客串嘉宾,5其他
	Portray  string // 饰演角色
	IsShow   string // 是否展示:0展示,1隐藏
	UpdateAt string // 更新时间
	CreateAt string // 创建时间
}

VideoPersonalColumns defines and stores column names for table video_personal.

type VideoPersonalDao added in v1.0.1

type VideoPersonalDao struct {
	// contains filtered or unexported fields
}

VideoPersonalDao is the data access object for table video_personal.

func NewVideoPersonalDao added in v1.0.1

func NewVideoPersonalDao() *VideoPersonalDao

NewVideoPersonalDao creates and returns a new DAO object for table data access.

func (*VideoPersonalDao) Columns added in v1.0.1

func (dao *VideoPersonalDao) Columns() VideoPersonalColumns

Columns returns all column names of current dao.

func (*VideoPersonalDao) Ctx added in v1.0.1

func (dao *VideoPersonalDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoPersonalDao) DB added in v1.0.1

func (dao *VideoPersonalDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoPersonalDao) Group added in v1.0.1

func (dao *VideoPersonalDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoPersonalDao) Table added in v1.0.1

func (dao *VideoPersonalDao) Table() string

Table returns the table name of current dao.

func (*VideoPersonalDao) Transaction added in v1.0.1

func (dao *VideoPersonalDao) 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 VideoPlayColumns added in v1.0.1

type VideoPlayColumns struct {
	Id             string // 播放ID
	VideoId        string // 视频ID
	UserId         string // 用户ID
	CurrPlayRate   string // 当前播放进度,最大100,最小0
	CurrPlayTime   string // 当前播放时间
	CurrPlaySequel string // 当前播放续集
	PlayTime       string // 播放时间
	Resolution     string // 当前播放精度:480P,720P,1080P等
	Ip             string // 当前播放IP
	UpdateAt       string // 更新时间
	CreateAt       string // 创建时间
}

VideoPlayColumns defines and stores column names for table video_play.

type VideoPlayDao added in v1.0.1

type VideoPlayDao struct {
	// contains filtered or unexported fields
}

VideoPlayDao is the data access object for table video_play.

func NewVideoPlayDao added in v1.0.1

func NewVideoPlayDao() *VideoPlayDao

NewVideoPlayDao creates and returns a new DAO object for table data access.

func (*VideoPlayDao) Columns added in v1.0.1

func (dao *VideoPlayDao) Columns() VideoPlayColumns

Columns returns all column names of current dao.

func (*VideoPlayDao) Ctx added in v1.0.1

func (dao *VideoPlayDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoPlayDao) DB added in v1.0.1

func (dao *VideoPlayDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoPlayDao) Group added in v1.0.1

func (dao *VideoPlayDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoPlayDao) Table added in v1.0.1

func (dao *VideoPlayDao) Table() string

Table returns the table name of current dao.

func (*VideoPlayDao) Transaction added in v1.0.1

func (dao *VideoPlayDao) 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 VideoPlaySequelColumns added in v1.0.1

type VideoPlaySequelColumns struct {
	Id            string // 播放明细ID
	PlayId        string // 播放ID
	VideoSequelId string // 视频续集ID
	CurrPlayRate  string // 当前播放进度
	CurrPlayTime  string // 当前播放时间
	PlaySequel    string // 播放续集
	Resolution    string // 当前播放精度:480P,720P,1080P等
	Ip            string // 当前ip
	UpdateAt      string // 更新时间
	CreateAt      string // 创建时间
}

VideoPlaySequelColumns defines and stores column names for table video_play_sequel.

type VideoPlaySequelDao added in v1.0.1

type VideoPlaySequelDao struct {
	// contains filtered or unexported fields
}

VideoPlaySequelDao is the data access object for table video_play_sequel.

func NewVideoPlaySequelDao added in v1.0.1

func NewVideoPlaySequelDao() *VideoPlaySequelDao

NewVideoPlaySequelDao creates and returns a new DAO object for table data access.

func (*VideoPlaySequelDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*VideoPlaySequelDao) Ctx added in v1.0.1

func (dao *VideoPlaySequelDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoPlaySequelDao) DB added in v1.0.1

func (dao *VideoPlaySequelDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoPlaySequelDao) Group added in v1.0.1

func (dao *VideoPlaySequelDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoPlaySequelDao) Table added in v1.0.1

func (dao *VideoPlaySequelDao) Table() string

Table returns the table name of current dao.

func (*VideoPlaySequelDao) Transaction added in v1.0.1

func (dao *VideoPlaySequelDao) 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 VideoResolutionColumns added in v1.0.1

type VideoResolutionColumns struct {
	Id             string // 视频清晰度ID
	EpisodesId     string // 视频续集ID
	Resolution     string // 清晰度:480P,720P,1080P等
	AttachId       string // 附件ID
	VideoUrl       string // 视频地址
	Size           string // 视频大小(B)
	Duration       string // 时长(S)
	DurationString string // 格式化时长
	MimeType       string // 视频类型
	UpdateAt       string // 更新时间
	CreateAt       string // 创建时间
}

VideoResolutionColumns defines and stores column names for table video_resolution.

type VideoResolutionDao added in v1.0.1

type VideoResolutionDao struct {
	// contains filtered or unexported fields
}

VideoResolutionDao is the data access object for table video_resolution.

func NewVideoResolutionDao added in v1.0.1

func NewVideoResolutionDao() *VideoResolutionDao

NewVideoResolutionDao creates and returns a new DAO object for table data access.

func (*VideoResolutionDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*VideoResolutionDao) Ctx added in v1.0.1

func (dao *VideoResolutionDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoResolutionDao) DB added in v1.0.1

func (dao *VideoResolutionDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoResolutionDao) Group added in v1.0.1

func (dao *VideoResolutionDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoResolutionDao) Table added in v1.0.1

func (dao *VideoResolutionDao) Table() string

Table returns the table name of current dao.

func (*VideoResolutionDao) Transaction added in v1.0.1

func (dao *VideoResolutionDao) 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 VideoUserActionsColumns added in v1.0.1

type VideoUserActionsColumns struct {
	Id       string // 视频收藏ID
	VideoId  string // 视频ID
	UserId   string // 用户ID
	Ip       string // 当前ip
	Type     string // 操作类型:C收藏,L点赞,T踩
	CreateAt string // 创建时间
}

VideoUserActionsColumns defines and stores column names for table video_user_actions.

type VideoUserActionsDao added in v1.0.1

type VideoUserActionsDao struct {
	// contains filtered or unexported fields
}

VideoUserActionsDao is the data access object for table video_user_actions.

func NewVideoUserActionsDao added in v1.0.1

func NewVideoUserActionsDao() *VideoUserActionsDao

NewVideoUserActionsDao creates and returns a new DAO object for table data access.

func (*VideoUserActionsDao) Columns added in v1.0.1

Columns returns all column names of current dao.

func (*VideoUserActionsDao) Ctx added in v1.0.1

func (dao *VideoUserActionsDao) Ctx(ctx context.Context) *gdb.Model

Ctx creates and returns the Model for current DAO, It automatically sets the context for current operation.

func (*VideoUserActionsDao) DB added in v1.0.1

func (dao *VideoUserActionsDao) DB() gdb.DB

DB retrieves and returns the underlying raw database management object of current DAO.

func (*VideoUserActionsDao) Group added in v1.0.1

func (dao *VideoUserActionsDao) Group() string

Group returns the configuration group name of database of current dao.

func (*VideoUserActionsDao) Table added in v1.0.1

func (dao *VideoUserActionsDao) Table() string

Table returns the table name of current dao.

func (*VideoUserActionsDao) Transaction added in v1.0.1

func (dao *VideoUserActionsDao) 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.

Jump to

Keyboard shortcuts

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