Documentation ¶
Index ¶
- Variables
- func SetDefault(db *gorm.DB, opts ...gen.DOOption)
- type ICmsHelpCategoryDo
- type ICmsHelpDo
- type ICmsMemberReportDo
- type ICmsPrefrenceAreaDo
- type ICmsPrefrenceAreaProductRelationDo
- type ICmsSubjectCategoryDo
- type ICmsSubjectCommentDo
- type ICmsSubjectDo
- type ICmsSubjectProductRelationDo
- type ICmsTopicCategoryDo
- type ICmsTopicCommentDo
- type ICmsTopicDo
- type Query
- func (q *Query) Available() bool
- func (q *Query) Begin(opts ...*sql.TxOptions) *QueryTx
- func (q *Query) ReadDB() *Query
- func (q *Query) ReplaceDB(db *gorm.DB) *Query
- func (q *Query) Transaction(fc func(tx *Query) error, opts ...*sql.TxOptions) error
- func (q *Query) WithContext(ctx context.Context) *queryCtx
- func (q *Query) WriteDB() *Query
- type QueryTx
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Q = new(Query) CmsHelp *cmsHelp CmsHelpCategory *cmsHelpCategory CmsMemberReport *cmsMemberReport CmsPrefrenceArea *cmsPrefrenceArea CmsPrefrenceAreaProductRelation *cmsPrefrenceAreaProductRelation CmsSubject *cmsSubject CmsSubjectCategory *cmsSubjectCategory CmsSubjectComment *cmsSubjectComment CmsSubjectProductRelation *cmsSubjectProductRelation CmsTopic *cmsTopic CmsTopicCategory *cmsTopicCategory CmsTopicComment *cmsTopicComment )
Functions ¶
Types ¶
type ICmsHelpCategoryDo ¶
type ICmsHelpCategoryDo interface { gen.SubQuery Debug() ICmsHelpCategoryDo WithContext(ctx context.Context) ICmsHelpCategoryDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsHelpCategoryDo WriteDB() ICmsHelpCategoryDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsHelpCategoryDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsHelpCategoryDo Not(conds ...gen.Condition) ICmsHelpCategoryDo Or(conds ...gen.Condition) ICmsHelpCategoryDo Select(conds ...field.Expr) ICmsHelpCategoryDo Where(conds ...gen.Condition) ICmsHelpCategoryDo Order(conds ...field.Expr) ICmsHelpCategoryDo Distinct(cols ...field.Expr) ICmsHelpCategoryDo Omit(cols ...field.Expr) ICmsHelpCategoryDo Join(table schema.Tabler, on ...field.Expr) ICmsHelpCategoryDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsHelpCategoryDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsHelpCategoryDo Group(cols ...field.Expr) ICmsHelpCategoryDo Having(conds ...gen.Condition) ICmsHelpCategoryDo Limit(limit int) ICmsHelpCategoryDo Offset(offset int) ICmsHelpCategoryDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsHelpCategoryDo Unscoped() ICmsHelpCategoryDo Create(values ...*model.CmsHelpCategory) error CreateInBatches(values []*model.CmsHelpCategory, batchSize int) error Save(values ...*model.CmsHelpCategory) error First() (*model.CmsHelpCategory, error) Take() (*model.CmsHelpCategory, error) Last() (*model.CmsHelpCategory, error) Find() ([]*model.CmsHelpCategory, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsHelpCategory, err error) FindInBatches(result *[]*model.CmsHelpCategory, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsHelpCategory) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsHelpCategoryDo Assign(attrs ...field.AssignExpr) ICmsHelpCategoryDo Joins(fields ...field.RelationField) ICmsHelpCategoryDo Preload(fields ...field.RelationField) ICmsHelpCategoryDo FirstOrInit() (*model.CmsHelpCategory, error) FirstOrCreate() (*model.CmsHelpCategory, error) FindByPage(offset int, limit int) (result []*model.CmsHelpCategory, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsHelpCategoryDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICmsHelpDo ¶
type ICmsHelpDo interface { gen.SubQuery Debug() ICmsHelpDo WithContext(ctx context.Context) ICmsHelpDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsHelpDo WriteDB() ICmsHelpDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsHelpDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsHelpDo Not(conds ...gen.Condition) ICmsHelpDo Or(conds ...gen.Condition) ICmsHelpDo Select(conds ...field.Expr) ICmsHelpDo Where(conds ...gen.Condition) ICmsHelpDo Order(conds ...field.Expr) ICmsHelpDo Distinct(cols ...field.Expr) ICmsHelpDo Omit(cols ...field.Expr) ICmsHelpDo Join(table schema.Tabler, on ...field.Expr) ICmsHelpDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsHelpDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsHelpDo Group(cols ...field.Expr) ICmsHelpDo Having(conds ...gen.Condition) ICmsHelpDo Limit(limit int) ICmsHelpDo Offset(offset int) ICmsHelpDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsHelpDo Unscoped() ICmsHelpDo Create(values ...*model.CmsHelp) error CreateInBatches(values []*model.CmsHelp, batchSize int) error Save(values ...*model.CmsHelp) error First() (*model.CmsHelp, error) Take() (*model.CmsHelp, error) Last() (*model.CmsHelp, error) Find() ([]*model.CmsHelp, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsHelp, err error) FindInBatches(result *[]*model.CmsHelp, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsHelp) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsHelpDo Assign(attrs ...field.AssignExpr) ICmsHelpDo Joins(fields ...field.RelationField) ICmsHelpDo Preload(fields ...field.RelationField) ICmsHelpDo FirstOrInit() (*model.CmsHelp, error) FirstOrCreate() (*model.CmsHelp, error) FindByPage(offset int, limit int) (result []*model.CmsHelp, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsHelpDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICmsMemberReportDo ¶
type ICmsMemberReportDo interface { gen.SubQuery Debug() ICmsMemberReportDo WithContext(ctx context.Context) ICmsMemberReportDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsMemberReportDo WriteDB() ICmsMemberReportDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsMemberReportDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsMemberReportDo Not(conds ...gen.Condition) ICmsMemberReportDo Or(conds ...gen.Condition) ICmsMemberReportDo Select(conds ...field.Expr) ICmsMemberReportDo Where(conds ...gen.Condition) ICmsMemberReportDo Order(conds ...field.Expr) ICmsMemberReportDo Distinct(cols ...field.Expr) ICmsMemberReportDo Omit(cols ...field.Expr) ICmsMemberReportDo Join(table schema.Tabler, on ...field.Expr) ICmsMemberReportDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsMemberReportDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsMemberReportDo Group(cols ...field.Expr) ICmsMemberReportDo Having(conds ...gen.Condition) ICmsMemberReportDo Limit(limit int) ICmsMemberReportDo Offset(offset int) ICmsMemberReportDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsMemberReportDo Unscoped() ICmsMemberReportDo Create(values ...*model.CmsMemberReport) error CreateInBatches(values []*model.CmsMemberReport, batchSize int) error Save(values ...*model.CmsMemberReport) error First() (*model.CmsMemberReport, error) Take() (*model.CmsMemberReport, error) Last() (*model.CmsMemberReport, error) Find() ([]*model.CmsMemberReport, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsMemberReport, err error) FindInBatches(result *[]*model.CmsMemberReport, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsMemberReport) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsMemberReportDo Assign(attrs ...field.AssignExpr) ICmsMemberReportDo Joins(fields ...field.RelationField) ICmsMemberReportDo Preload(fields ...field.RelationField) ICmsMemberReportDo FirstOrInit() (*model.CmsMemberReport, error) FirstOrCreate() (*model.CmsMemberReport, error) FindByPage(offset int, limit int) (result []*model.CmsMemberReport, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsMemberReportDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICmsPrefrenceAreaDo ¶
type ICmsPrefrenceAreaDo interface { gen.SubQuery Debug() ICmsPrefrenceAreaDo WithContext(ctx context.Context) ICmsPrefrenceAreaDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsPrefrenceAreaDo WriteDB() ICmsPrefrenceAreaDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsPrefrenceAreaDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsPrefrenceAreaDo Not(conds ...gen.Condition) ICmsPrefrenceAreaDo Or(conds ...gen.Condition) ICmsPrefrenceAreaDo Select(conds ...field.Expr) ICmsPrefrenceAreaDo Where(conds ...gen.Condition) ICmsPrefrenceAreaDo Order(conds ...field.Expr) ICmsPrefrenceAreaDo Distinct(cols ...field.Expr) ICmsPrefrenceAreaDo Omit(cols ...field.Expr) ICmsPrefrenceAreaDo Join(table schema.Tabler, on ...field.Expr) ICmsPrefrenceAreaDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsPrefrenceAreaDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsPrefrenceAreaDo Group(cols ...field.Expr) ICmsPrefrenceAreaDo Having(conds ...gen.Condition) ICmsPrefrenceAreaDo Limit(limit int) ICmsPrefrenceAreaDo Offset(offset int) ICmsPrefrenceAreaDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsPrefrenceAreaDo Unscoped() ICmsPrefrenceAreaDo Create(values ...*model.CmsPrefrenceArea) error CreateInBatches(values []*model.CmsPrefrenceArea, batchSize int) error Save(values ...*model.CmsPrefrenceArea) error First() (*model.CmsPrefrenceArea, error) Take() (*model.CmsPrefrenceArea, error) Last() (*model.CmsPrefrenceArea, error) Find() ([]*model.CmsPrefrenceArea, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsPrefrenceArea, err error) FindInBatches(result *[]*model.CmsPrefrenceArea, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsPrefrenceArea) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsPrefrenceAreaDo Assign(attrs ...field.AssignExpr) ICmsPrefrenceAreaDo Joins(fields ...field.RelationField) ICmsPrefrenceAreaDo Preload(fields ...field.RelationField) ICmsPrefrenceAreaDo FirstOrInit() (*model.CmsPrefrenceArea, error) FirstOrCreate() (*model.CmsPrefrenceArea, error) FindByPage(offset int, limit int) (result []*model.CmsPrefrenceArea, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsPrefrenceAreaDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICmsPrefrenceAreaProductRelationDo ¶
type ICmsPrefrenceAreaProductRelationDo interface { gen.SubQuery Debug() ICmsPrefrenceAreaProductRelationDo WithContext(ctx context.Context) ICmsPrefrenceAreaProductRelationDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsPrefrenceAreaProductRelationDo WriteDB() ICmsPrefrenceAreaProductRelationDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsPrefrenceAreaProductRelationDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsPrefrenceAreaProductRelationDo Not(conds ...gen.Condition) ICmsPrefrenceAreaProductRelationDo Or(conds ...gen.Condition) ICmsPrefrenceAreaProductRelationDo Select(conds ...field.Expr) ICmsPrefrenceAreaProductRelationDo Where(conds ...gen.Condition) ICmsPrefrenceAreaProductRelationDo Order(conds ...field.Expr) ICmsPrefrenceAreaProductRelationDo Distinct(cols ...field.Expr) ICmsPrefrenceAreaProductRelationDo Omit(cols ...field.Expr) ICmsPrefrenceAreaProductRelationDo Join(table schema.Tabler, on ...field.Expr) ICmsPrefrenceAreaProductRelationDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsPrefrenceAreaProductRelationDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsPrefrenceAreaProductRelationDo Group(cols ...field.Expr) ICmsPrefrenceAreaProductRelationDo Having(conds ...gen.Condition) ICmsPrefrenceAreaProductRelationDo Limit(limit int) ICmsPrefrenceAreaProductRelationDo Offset(offset int) ICmsPrefrenceAreaProductRelationDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsPrefrenceAreaProductRelationDo Unscoped() ICmsPrefrenceAreaProductRelationDo Create(values ...*model.CmsPrefrenceAreaProductRelation) error CreateInBatches(values []*model.CmsPrefrenceAreaProductRelation, batchSize int) error Save(values ...*model.CmsPrefrenceAreaProductRelation) error First() (*model.CmsPrefrenceAreaProductRelation, error) Take() (*model.CmsPrefrenceAreaProductRelation, error) Last() (*model.CmsPrefrenceAreaProductRelation, error) Find() ([]*model.CmsPrefrenceAreaProductRelation, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsPrefrenceAreaProductRelation, err error) FindInBatches(result *[]*model.CmsPrefrenceAreaProductRelation, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsPrefrenceAreaProductRelation) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsPrefrenceAreaProductRelationDo Assign(attrs ...field.AssignExpr) ICmsPrefrenceAreaProductRelationDo Joins(fields ...field.RelationField) ICmsPrefrenceAreaProductRelationDo Preload(fields ...field.RelationField) ICmsPrefrenceAreaProductRelationDo FirstOrInit() (*model.CmsPrefrenceAreaProductRelation, error) FirstOrCreate() (*model.CmsPrefrenceAreaProductRelation, error) FindByPage(offset int, limit int) (result []*model.CmsPrefrenceAreaProductRelation, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsPrefrenceAreaProductRelationDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICmsSubjectCategoryDo ¶
type ICmsSubjectCategoryDo interface { gen.SubQuery Debug() ICmsSubjectCategoryDo WithContext(ctx context.Context) ICmsSubjectCategoryDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsSubjectCategoryDo WriteDB() ICmsSubjectCategoryDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsSubjectCategoryDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsSubjectCategoryDo Not(conds ...gen.Condition) ICmsSubjectCategoryDo Or(conds ...gen.Condition) ICmsSubjectCategoryDo Select(conds ...field.Expr) ICmsSubjectCategoryDo Where(conds ...gen.Condition) ICmsSubjectCategoryDo Order(conds ...field.Expr) ICmsSubjectCategoryDo Distinct(cols ...field.Expr) ICmsSubjectCategoryDo Omit(cols ...field.Expr) ICmsSubjectCategoryDo Join(table schema.Tabler, on ...field.Expr) ICmsSubjectCategoryDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsSubjectCategoryDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsSubjectCategoryDo Group(cols ...field.Expr) ICmsSubjectCategoryDo Having(conds ...gen.Condition) ICmsSubjectCategoryDo Limit(limit int) ICmsSubjectCategoryDo Offset(offset int) ICmsSubjectCategoryDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsSubjectCategoryDo Unscoped() ICmsSubjectCategoryDo Create(values ...*model.CmsSubjectCategory) error CreateInBatches(values []*model.CmsSubjectCategory, batchSize int) error Save(values ...*model.CmsSubjectCategory) error First() (*model.CmsSubjectCategory, error) Take() (*model.CmsSubjectCategory, error) Last() (*model.CmsSubjectCategory, error) Find() ([]*model.CmsSubjectCategory, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsSubjectCategory, err error) FindInBatches(result *[]*model.CmsSubjectCategory, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsSubjectCategory) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsSubjectCategoryDo Assign(attrs ...field.AssignExpr) ICmsSubjectCategoryDo Joins(fields ...field.RelationField) ICmsSubjectCategoryDo Preload(fields ...field.RelationField) ICmsSubjectCategoryDo FirstOrInit() (*model.CmsSubjectCategory, error) FirstOrCreate() (*model.CmsSubjectCategory, error) FindByPage(offset int, limit int) (result []*model.CmsSubjectCategory, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsSubjectCategoryDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICmsSubjectCommentDo ¶
type ICmsSubjectCommentDo interface { gen.SubQuery Debug() ICmsSubjectCommentDo WithContext(ctx context.Context) ICmsSubjectCommentDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsSubjectCommentDo WriteDB() ICmsSubjectCommentDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsSubjectCommentDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsSubjectCommentDo Not(conds ...gen.Condition) ICmsSubjectCommentDo Or(conds ...gen.Condition) ICmsSubjectCommentDo Select(conds ...field.Expr) ICmsSubjectCommentDo Where(conds ...gen.Condition) ICmsSubjectCommentDo Order(conds ...field.Expr) ICmsSubjectCommentDo Distinct(cols ...field.Expr) ICmsSubjectCommentDo Omit(cols ...field.Expr) ICmsSubjectCommentDo Join(table schema.Tabler, on ...field.Expr) ICmsSubjectCommentDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsSubjectCommentDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsSubjectCommentDo Group(cols ...field.Expr) ICmsSubjectCommentDo Having(conds ...gen.Condition) ICmsSubjectCommentDo Limit(limit int) ICmsSubjectCommentDo Offset(offset int) ICmsSubjectCommentDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsSubjectCommentDo Unscoped() ICmsSubjectCommentDo Create(values ...*model.CmsSubjectComment) error CreateInBatches(values []*model.CmsSubjectComment, batchSize int) error Save(values ...*model.CmsSubjectComment) error First() (*model.CmsSubjectComment, error) Take() (*model.CmsSubjectComment, error) Last() (*model.CmsSubjectComment, error) Find() ([]*model.CmsSubjectComment, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsSubjectComment, err error) FindInBatches(result *[]*model.CmsSubjectComment, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsSubjectComment) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsSubjectCommentDo Assign(attrs ...field.AssignExpr) ICmsSubjectCommentDo Joins(fields ...field.RelationField) ICmsSubjectCommentDo Preload(fields ...field.RelationField) ICmsSubjectCommentDo FirstOrInit() (*model.CmsSubjectComment, error) FirstOrCreate() (*model.CmsSubjectComment, error) FindByPage(offset int, limit int) (result []*model.CmsSubjectComment, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsSubjectCommentDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICmsSubjectDo ¶
type ICmsSubjectDo interface { gen.SubQuery Debug() ICmsSubjectDo WithContext(ctx context.Context) ICmsSubjectDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsSubjectDo WriteDB() ICmsSubjectDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsSubjectDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsSubjectDo Not(conds ...gen.Condition) ICmsSubjectDo Or(conds ...gen.Condition) ICmsSubjectDo Select(conds ...field.Expr) ICmsSubjectDo Where(conds ...gen.Condition) ICmsSubjectDo Order(conds ...field.Expr) ICmsSubjectDo Distinct(cols ...field.Expr) ICmsSubjectDo Omit(cols ...field.Expr) ICmsSubjectDo Join(table schema.Tabler, on ...field.Expr) ICmsSubjectDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsSubjectDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsSubjectDo Group(cols ...field.Expr) ICmsSubjectDo Having(conds ...gen.Condition) ICmsSubjectDo Limit(limit int) ICmsSubjectDo Offset(offset int) ICmsSubjectDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsSubjectDo Unscoped() ICmsSubjectDo Create(values ...*model.CmsSubject) error CreateInBatches(values []*model.CmsSubject, batchSize int) error Save(values ...*model.CmsSubject) error First() (*model.CmsSubject, error) Take() (*model.CmsSubject, error) Last() (*model.CmsSubject, error) Find() ([]*model.CmsSubject, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsSubject, err error) FindInBatches(result *[]*model.CmsSubject, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsSubject) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsSubjectDo Assign(attrs ...field.AssignExpr) ICmsSubjectDo Joins(fields ...field.RelationField) ICmsSubjectDo Preload(fields ...field.RelationField) ICmsSubjectDo FirstOrInit() (*model.CmsSubject, error) FirstOrCreate() (*model.CmsSubject, error) FindByPage(offset int, limit int) (result []*model.CmsSubject, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsSubjectDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICmsSubjectProductRelationDo ¶
type ICmsSubjectProductRelationDo interface { gen.SubQuery Debug() ICmsSubjectProductRelationDo WithContext(ctx context.Context) ICmsSubjectProductRelationDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsSubjectProductRelationDo WriteDB() ICmsSubjectProductRelationDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsSubjectProductRelationDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsSubjectProductRelationDo Not(conds ...gen.Condition) ICmsSubjectProductRelationDo Or(conds ...gen.Condition) ICmsSubjectProductRelationDo Select(conds ...field.Expr) ICmsSubjectProductRelationDo Where(conds ...gen.Condition) ICmsSubjectProductRelationDo Order(conds ...field.Expr) ICmsSubjectProductRelationDo Distinct(cols ...field.Expr) ICmsSubjectProductRelationDo Omit(cols ...field.Expr) ICmsSubjectProductRelationDo Join(table schema.Tabler, on ...field.Expr) ICmsSubjectProductRelationDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsSubjectProductRelationDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsSubjectProductRelationDo Group(cols ...field.Expr) ICmsSubjectProductRelationDo Having(conds ...gen.Condition) ICmsSubjectProductRelationDo Limit(limit int) ICmsSubjectProductRelationDo Offset(offset int) ICmsSubjectProductRelationDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsSubjectProductRelationDo Unscoped() ICmsSubjectProductRelationDo Create(values ...*model.CmsSubjectProductRelation) error CreateInBatches(values []*model.CmsSubjectProductRelation, batchSize int) error Save(values ...*model.CmsSubjectProductRelation) error First() (*model.CmsSubjectProductRelation, error) Take() (*model.CmsSubjectProductRelation, error) Last() (*model.CmsSubjectProductRelation, error) Find() ([]*model.CmsSubjectProductRelation, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsSubjectProductRelation, err error) FindInBatches(result *[]*model.CmsSubjectProductRelation, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsSubjectProductRelation) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsSubjectProductRelationDo Assign(attrs ...field.AssignExpr) ICmsSubjectProductRelationDo Joins(fields ...field.RelationField) ICmsSubjectProductRelationDo Preload(fields ...field.RelationField) ICmsSubjectProductRelationDo FirstOrInit() (*model.CmsSubjectProductRelation, error) FirstOrCreate() (*model.CmsSubjectProductRelation, error) FindByPage(offset int, limit int) (result []*model.CmsSubjectProductRelation, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsSubjectProductRelationDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICmsTopicCategoryDo ¶
type ICmsTopicCategoryDo interface { gen.SubQuery Debug() ICmsTopicCategoryDo WithContext(ctx context.Context) ICmsTopicCategoryDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsTopicCategoryDo WriteDB() ICmsTopicCategoryDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsTopicCategoryDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsTopicCategoryDo Not(conds ...gen.Condition) ICmsTopicCategoryDo Or(conds ...gen.Condition) ICmsTopicCategoryDo Select(conds ...field.Expr) ICmsTopicCategoryDo Where(conds ...gen.Condition) ICmsTopicCategoryDo Order(conds ...field.Expr) ICmsTopicCategoryDo Distinct(cols ...field.Expr) ICmsTopicCategoryDo Omit(cols ...field.Expr) ICmsTopicCategoryDo Join(table schema.Tabler, on ...field.Expr) ICmsTopicCategoryDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsTopicCategoryDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsTopicCategoryDo Group(cols ...field.Expr) ICmsTopicCategoryDo Having(conds ...gen.Condition) ICmsTopicCategoryDo Limit(limit int) ICmsTopicCategoryDo Offset(offset int) ICmsTopicCategoryDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsTopicCategoryDo Unscoped() ICmsTopicCategoryDo Create(values ...*model.CmsTopicCategory) error CreateInBatches(values []*model.CmsTopicCategory, batchSize int) error Save(values ...*model.CmsTopicCategory) error First() (*model.CmsTopicCategory, error) Take() (*model.CmsTopicCategory, error) Last() (*model.CmsTopicCategory, error) Find() ([]*model.CmsTopicCategory, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsTopicCategory, err error) FindInBatches(result *[]*model.CmsTopicCategory, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsTopicCategory) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsTopicCategoryDo Assign(attrs ...field.AssignExpr) ICmsTopicCategoryDo Joins(fields ...field.RelationField) ICmsTopicCategoryDo Preload(fields ...field.RelationField) ICmsTopicCategoryDo FirstOrInit() (*model.CmsTopicCategory, error) FirstOrCreate() (*model.CmsTopicCategory, error) FindByPage(offset int, limit int) (result []*model.CmsTopicCategory, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsTopicCategoryDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICmsTopicCommentDo ¶
type ICmsTopicCommentDo interface { gen.SubQuery Debug() ICmsTopicCommentDo WithContext(ctx context.Context) ICmsTopicCommentDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsTopicCommentDo WriteDB() ICmsTopicCommentDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsTopicCommentDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsTopicCommentDo Not(conds ...gen.Condition) ICmsTopicCommentDo Or(conds ...gen.Condition) ICmsTopicCommentDo Select(conds ...field.Expr) ICmsTopicCommentDo Where(conds ...gen.Condition) ICmsTopicCommentDo Order(conds ...field.Expr) ICmsTopicCommentDo Distinct(cols ...field.Expr) ICmsTopicCommentDo Omit(cols ...field.Expr) ICmsTopicCommentDo Join(table schema.Tabler, on ...field.Expr) ICmsTopicCommentDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsTopicCommentDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsTopicCommentDo Group(cols ...field.Expr) ICmsTopicCommentDo Having(conds ...gen.Condition) ICmsTopicCommentDo Limit(limit int) ICmsTopicCommentDo Offset(offset int) ICmsTopicCommentDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsTopicCommentDo Unscoped() ICmsTopicCommentDo Create(values ...*model.CmsTopicComment) error CreateInBatches(values []*model.CmsTopicComment, batchSize int) error Save(values ...*model.CmsTopicComment) error First() (*model.CmsTopicComment, error) Take() (*model.CmsTopicComment, error) Last() (*model.CmsTopicComment, error) Find() ([]*model.CmsTopicComment, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsTopicComment, err error) FindInBatches(result *[]*model.CmsTopicComment, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsTopicComment) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsTopicCommentDo Assign(attrs ...field.AssignExpr) ICmsTopicCommentDo Joins(fields ...field.RelationField) ICmsTopicCommentDo Preload(fields ...field.RelationField) ICmsTopicCommentDo FirstOrInit() (*model.CmsTopicComment, error) FirstOrCreate() (*model.CmsTopicComment, error) FindByPage(offset int, limit int) (result []*model.CmsTopicComment, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsTopicCommentDo UnderlyingDB() *gorm.DB schema.Tabler }
type ICmsTopicDo ¶
type ICmsTopicDo interface { gen.SubQuery Debug() ICmsTopicDo WithContext(ctx context.Context) ICmsTopicDo WithResult(fc func(tx gen.Dao)) gen.ResultInfo ReplaceDB(db *gorm.DB) ReadDB() ICmsTopicDo WriteDB() ICmsTopicDo As(alias string) gen.Dao Session(config *gorm.Session) ICmsTopicDo Columns(cols ...field.Expr) gen.Columns Clauses(conds ...clause.Expression) ICmsTopicDo Not(conds ...gen.Condition) ICmsTopicDo Or(conds ...gen.Condition) ICmsTopicDo Select(conds ...field.Expr) ICmsTopicDo Where(conds ...gen.Condition) ICmsTopicDo Order(conds ...field.Expr) ICmsTopicDo Distinct(cols ...field.Expr) ICmsTopicDo Omit(cols ...field.Expr) ICmsTopicDo Join(table schema.Tabler, on ...field.Expr) ICmsTopicDo LeftJoin(table schema.Tabler, on ...field.Expr) ICmsTopicDo RightJoin(table schema.Tabler, on ...field.Expr) ICmsTopicDo Group(cols ...field.Expr) ICmsTopicDo Having(conds ...gen.Condition) ICmsTopicDo Limit(limit int) ICmsTopicDo Offset(offset int) ICmsTopicDo Count() (count int64, err error) Scopes(funcs ...func(gen.Dao) gen.Dao) ICmsTopicDo Unscoped() ICmsTopicDo Create(values ...*model.CmsTopic) error CreateInBatches(values []*model.CmsTopic, batchSize int) error Save(values ...*model.CmsTopic) error First() (*model.CmsTopic, error) Take() (*model.CmsTopic, error) Last() (*model.CmsTopic, error) Find() ([]*model.CmsTopic, error) FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.CmsTopic, err error) FindInBatches(result *[]*model.CmsTopic, batchSize int, fc func(tx gen.Dao, batch int) error) error Pluck(column field.Expr, dest interface{}) error Delete(...*model.CmsTopic) (info gen.ResultInfo, err error) Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) Updates(value interface{}) (info gen.ResultInfo, err error) UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error) UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error) UpdateColumns(value interface{}) (info gen.ResultInfo, err error) UpdateFrom(q gen.SubQuery) gen.Dao Attrs(attrs ...field.AssignExpr) ICmsTopicDo Assign(attrs ...field.AssignExpr) ICmsTopicDo Joins(fields ...field.RelationField) ICmsTopicDo Preload(fields ...field.RelationField) ICmsTopicDo FirstOrInit() (*model.CmsTopic, error) FirstOrCreate() (*model.CmsTopic, error) FindByPage(offset int, limit int) (result []*model.CmsTopic, count int64, err error) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) Scan(result interface{}) (err error) Returning(value interface{}, columns ...string) ICmsTopicDo UnderlyingDB() *gorm.DB schema.Tabler }
type Query ¶
type Query struct { CmsHelp cmsHelp CmsHelpCategory cmsHelpCategory CmsMemberReport cmsMemberReport CmsPrefrenceArea cmsPrefrenceArea CmsPrefrenceAreaProductRelation cmsPrefrenceAreaProductRelation CmsSubject cmsSubject CmsSubjectCategory cmsSubjectCategory CmsSubjectComment cmsSubjectComment CmsSubjectProductRelation cmsSubjectProductRelation CmsTopic cmsTopic CmsTopicCategory cmsTopicCategory CmsTopicComment cmsTopicComment // contains filtered or unexported fields }
func (*Query) Transaction ¶
func (*Query) WithContext ¶
type QueryTx ¶
func (*QueryTx) RollbackTo ¶
Source Files ¶
- cms_help.gen.go
- cms_help_category.gen.go
- cms_member_report.gen.go
- cms_prefrence_area.gen.go
- cms_prefrence_area_product_relation.gen.go
- cms_subject.gen.go
- cms_subject_category.gen.go
- cms_subject_comment.gen.go
- cms_subject_product_relation.gen.go
- cms_topic.gen.go
- cms_topic_category.gen.go
- cms_topic_comment.gen.go
- gen.go
Click to show internal directories.
Click to hide internal directories.