Documentation
¶
Overview ¶
Code generated by go-queryset. DO NOT EDIT.
Code generated by go-queryset. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func AddBlogGroup(g *gin.RouterGroup, db *gorm.DB, preloads ...string)
- func AddCheckReservedKeywordsGroup(g *gin.RouterGroup, db *gorm.DB, preloads ...string)
- func AddPostGroup(g *gin.RouterGroup, db *gorm.DB, preloads ...string)
- func AddUserGroup(g *gin.RouterGroup, db *gorm.DB, preloads ...string)
- func NewBlogListBindHandler(db *gorm.DB, b BindType, postHandle BlogReturnListType, preloads ...string) gin.HandlerFunc
- func NewBlogOneBindHandler(db *gorm.DB, b BindType, postHandle BlogReturnType, preloads ...string) gin.HandlerFunc
- func NewCheckReservedKeywordsListBindHandler(db *gorm.DB, b BindType, postHandle CheckReservedKeywordsReturnListType, ...) gin.HandlerFunc
- func NewCheckReservedKeywordsOneBindHandler(db *gorm.DB, b BindType, postHandle CheckReservedKeywordsReturnType, ...) gin.HandlerFunc
- func NewPostListBindHandler(db *gorm.DB, b BindType, postHandle PostReturnListType, preloads ...string) gin.HandlerFunc
- func NewPostOneBindHandler(db *gorm.DB, b BindType, postHandle PostReturnType, preloads ...string) gin.HandlerFunc
- func NewUserListBindHandler(db *gorm.DB, b BindType, postHandle UserReturnListType, preloads ...string) gin.HandlerFunc
- func NewUserOneBindHandler(db *gorm.DB, b BindType, postHandle UserReturnType, preloads ...string) gin.HandlerFunc
- func TotalCountHeader(name string, q func() (int64, error)) gin.HandlerFunc
- type BindType
- type Blog
- type BlogDBSchemaField
- type BlogQuerySet
- func (qs BlogQuerySet) All(ret *[]Blog) error
- func (qs BlogQuerySet) Count() (int64, error)
- func (qs BlogQuerySet) CreatedAtEq(createdAt time.Time) BlogQuerySet
- func (qs BlogQuerySet) CreatedAtGt(createdAt time.Time) BlogQuerySet
- func (qs BlogQuerySet) CreatedAtGte(createdAt time.Time) BlogQuerySet
- func (qs BlogQuerySet) CreatedAtLt(createdAt time.Time) BlogQuerySet
- func (qs BlogQuerySet) CreatedAtLte(createdAt time.Time) BlogQuerySet
- func (qs BlogQuerySet) CreatedAtNe(createdAt time.Time) BlogQuerySet
- func (qs BlogQuerySet) Delete() error
- func (qs BlogQuerySet) DeleteNum() (int64, error)
- func (qs BlogQuerySet) DeleteNumUnscoped() (int64, error)
- func (qs BlogQuerySet) GetDB() *gorm.DB
- func (qs BlogQuerySet) GetUpdater() BlogUpdater
- func (qs BlogQuerySet) IDEq(ID uint) BlogQuerySet
- func (qs BlogQuerySet) IDGt(ID uint) BlogQuerySet
- func (qs BlogQuerySet) IDGte(ID uint) BlogQuerySet
- func (qs BlogQuerySet) IDIn(ID ...uint) BlogQuerySet
- func (qs BlogQuerySet) IDLt(ID uint) BlogQuerySet
- func (qs BlogQuerySet) IDLte(ID uint) BlogQuerySet
- func (qs BlogQuerySet) IDNe(ID uint) BlogQuerySet
- func (qs BlogQuerySet) IDNotIn(ID ...uint) BlogQuerySet
- func (qs BlogQuerySet) Limit(limit int) BlogQuerySet
- func (qs BlogQuerySet) NameEq(name string) BlogQuerySet
- func (qs BlogQuerySet) NameGt(name string) BlogQuerySet
- func (qs BlogQuerySet) NameGte(name string) BlogQuerySet
- func (qs BlogQuerySet) NameIn(name ...string) BlogQuerySet
- func (qs BlogQuerySet) NameLike(name string) BlogQuerySet
- func (qs BlogQuerySet) NameLt(name string) BlogQuerySet
- func (qs BlogQuerySet) NameLte(name string) BlogQuerySet
- func (qs BlogQuerySet) NameNe(name string) BlogQuerySet
- func (qs BlogQuerySet) NameNotIn(name ...string) BlogQuerySet
- func (qs BlogQuerySet) NameNotlike(name string) BlogQuerySet
- func (qs BlogQuerySet) Offset(offset int) BlogQuerySet
- func (qs BlogQuerySet) One(ret *Blog) error
- func (qs BlogQuerySet) OrderAscByCreatedAt() BlogQuerySet
- func (qs BlogQuerySet) OrderAscByID() BlogQuerySet
- func (qs BlogQuerySet) OrderAscByName() BlogQuerySet
- func (qs BlogQuerySet) OrderAscByUpdatedAt() BlogQuerySet
- func (qs BlogQuerySet) OrderDescByCreatedAt() BlogQuerySet
- func (qs BlogQuerySet) OrderDescByID() BlogQuerySet
- func (qs BlogQuerySet) OrderDescByName() BlogQuerySet
- func (qs BlogQuerySet) OrderDescByUpdatedAt() BlogQuerySet
- func (qs BlogQuerySet) PreloadDeletedAt() BlogQuerySet
- func (qs BlogQuerySet) Select(fields ...BlogDBSchemaField) BlogQuerySet
- func (qs BlogQuerySet) UpdatedAtEq(updatedAt time.Time) BlogQuerySet
- func (qs BlogQuerySet) UpdatedAtGt(updatedAt time.Time) BlogQuerySet
- func (qs BlogQuerySet) UpdatedAtGte(updatedAt time.Time) BlogQuerySet
- func (qs BlogQuerySet) UpdatedAtLt(updatedAt time.Time) BlogQuerySet
- func (qs BlogQuerySet) UpdatedAtLte(updatedAt time.Time) BlogQuerySet
- func (qs BlogQuerySet) UpdatedAtNe(updatedAt time.Time) BlogQuerySet
- type BlogReturnListType
- type BlogReturnType
- type BlogUpdater
- func (u BlogUpdater) SetCreatedAt(createdAt time.Time) BlogUpdater
- func (u BlogUpdater) SetDeletedAt(deletedAt gorm.DeletedAt) BlogUpdater
- func (u BlogUpdater) SetID(ID uint) BlogUpdater
- func (u BlogUpdater) SetName(name string) BlogUpdater
- func (u BlogUpdater) SetUpdatedAt(updatedAt time.Time) BlogUpdater
- func (u BlogUpdater) Update() error
- func (u BlogUpdater) UpdateNum() (int64, error)
- type CheckReservedKeywords
- type CheckReservedKeywordsDBSchemaField
- type CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) All(ret *[]CheckReservedKeywords) error
- func (qs CheckReservedKeywordsQuerySet) Count() (int64, error)
- func (qs CheckReservedKeywordsQuerySet) Delete() error
- func (qs CheckReservedKeywordsQuerySet) DeleteNum() (int64, error)
- func (qs CheckReservedKeywordsQuerySet) DeleteNumUnscoped() (int64, error)
- func (qs CheckReservedKeywordsQuerySet) GetDB() *gorm.DB
- func (qs CheckReservedKeywordsQuerySet) GetUpdater() CheckReservedKeywordsUpdater
- func (qs CheckReservedKeywordsQuerySet) Limit(limit int) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) Offset(offset int) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) One(ret *CheckReservedKeywords) error
- func (qs CheckReservedKeywordsQuerySet) OrderAscByStruct() CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) OrderAscByType() CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) OrderDescByStruct() CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) OrderDescByType() CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) Select(fields ...CheckReservedKeywordsDBSchemaField) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) StructEq(structValue int) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) StructGt(structValue int) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) StructGte(structValue int) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) StructIn(structValue ...int) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) StructLt(structValue int) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) StructLte(structValue int) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) StructNe(structValue int) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) StructNotIn(structValue ...int) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) TypeEq(typeValue string) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) TypeGt(typeValue string) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) TypeGte(typeValue string) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) TypeIn(typeValue ...string) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) TypeLike(typeValue string) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) TypeLt(typeValue string) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) TypeLte(typeValue string) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) TypeNe(typeValue string) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) TypeNotIn(typeValue ...string) CheckReservedKeywordsQuerySet
- func (qs CheckReservedKeywordsQuerySet) TypeNotlike(typeValue string) CheckReservedKeywordsQuerySet
- type CheckReservedKeywordsReturnListType
- type CheckReservedKeywordsReturnType
- type CheckReservedKeywordsUpdater
- func (u CheckReservedKeywordsUpdater) SetStruct(structValue int) CheckReservedKeywordsUpdater
- func (u CheckReservedKeywordsUpdater) SetType(typeValue string) CheckReservedKeywordsUpdater
- func (u CheckReservedKeywordsUpdater) Update() error
- func (u CheckReservedKeywordsUpdater) UpdateNum() (int64, error)
- type Post
- type PostDBSchemaField
- type PostQuerySet
- func (qs PostQuerySet) All(ret *[]Post) error
- func (qs PostQuerySet) BlogIsNotNull() PostQuerySet
- func (qs PostQuerySet) BlogIsNull() PostQuerySet
- func (qs PostQuerySet) Count() (int64, error)
- func (qs PostQuerySet) CreatedAtEq(createdAt time.Time) PostQuerySet
- func (qs PostQuerySet) CreatedAtGt(createdAt time.Time) PostQuerySet
- func (qs PostQuerySet) CreatedAtGte(createdAt time.Time) PostQuerySet
- func (qs PostQuerySet) CreatedAtLt(createdAt time.Time) PostQuerySet
- func (qs PostQuerySet) CreatedAtLte(createdAt time.Time) PostQuerySet
- func (qs PostQuerySet) CreatedAtNe(createdAt time.Time) PostQuerySet
- func (qs PostQuerySet) Delete() error
- func (qs PostQuerySet) DeleteNum() (int64, error)
- func (qs PostQuerySet) DeleteNumUnscoped() (int64, error)
- func (qs PostQuerySet) GetDB() *gorm.DB
- func (qs PostQuerySet) GetUpdater() PostUpdater
- func (qs PostQuerySet) IDEq(ID uint) PostQuerySet
- func (qs PostQuerySet) IDGt(ID uint) PostQuerySet
- func (qs PostQuerySet) IDGte(ID uint) PostQuerySet
- func (qs PostQuerySet) IDIn(ID ...uint) PostQuerySet
- func (qs PostQuerySet) IDLt(ID uint) PostQuerySet
- func (qs PostQuerySet) IDLte(ID uint) PostQuerySet
- func (qs PostQuerySet) IDNe(ID uint) PostQuerySet
- func (qs PostQuerySet) IDNotIn(ID ...uint) PostQuerySet
- func (qs PostQuerySet) Limit(limit int) PostQuerySet
- func (qs PostQuerySet) Offset(offset int) PostQuerySet
- func (qs PostQuerySet) One(ret *Post) error
- func (qs PostQuerySet) OrderAscByCreatedAt() PostQuerySet
- func (qs PostQuerySet) OrderAscByID() PostQuerySet
- func (qs PostQuerySet) OrderAscByStr() PostQuerySet
- func (qs PostQuerySet) OrderAscByTitle() PostQuerySet
- func (qs PostQuerySet) OrderAscByUpdatedAt() PostQuerySet
- func (qs PostQuerySet) OrderDescByCreatedAt() PostQuerySet
- func (qs PostQuerySet) OrderDescByID() PostQuerySet
- func (qs PostQuerySet) OrderDescByStr() PostQuerySet
- func (qs PostQuerySet) OrderDescByTitle() PostQuerySet
- func (qs PostQuerySet) OrderDescByUpdatedAt() PostQuerySet
- func (qs PostQuerySet) PreloadBlog() PostQuerySet
- func (qs PostQuerySet) PreloadDeletedAt() PostQuerySet
- func (qs PostQuerySet) PreloadUser() PostQuerySet
- func (qs PostQuerySet) Select(fields ...PostDBSchemaField) PostQuerySet
- func (qs PostQuerySet) StrEq(str tmp.StringDef) PostQuerySet
- func (qs PostQuerySet) StrGt(str tmp.StringDef) PostQuerySet
- func (qs PostQuerySet) StrGte(str tmp.StringDef) PostQuerySet
- func (qs PostQuerySet) StrIn(str ...tmp.StringDef) PostQuerySet
- func (qs PostQuerySet) StrLike(str tmp.StringDef) PostQuerySet
- func (qs PostQuerySet) StrLt(str tmp.StringDef) PostQuerySet
- func (qs PostQuerySet) StrLte(str tmp.StringDef) PostQuerySet
- func (qs PostQuerySet) StrNe(str tmp.StringDef) PostQuerySet
- func (qs PostQuerySet) StrNotIn(str ...tmp.StringDef) PostQuerySet
- func (qs PostQuerySet) StrNotlike(str tmp.StringDef) PostQuerySet
- func (qs PostQuerySet) TitleEq(title string) PostQuerySet
- func (qs PostQuerySet) TitleGt(title string) PostQuerySet
- func (qs PostQuerySet) TitleGte(title string) PostQuerySet
- func (qs PostQuerySet) TitleIn(title ...string) PostQuerySet
- func (qs PostQuerySet) TitleIsNotNull() PostQuerySet
- func (qs PostQuerySet) TitleIsNull() PostQuerySet
- func (qs PostQuerySet) TitleLike(title string) PostQuerySet
- func (qs PostQuerySet) TitleLt(title string) PostQuerySet
- func (qs PostQuerySet) TitleLte(title string) PostQuerySet
- func (qs PostQuerySet) TitleNe(title string) PostQuerySet
- func (qs PostQuerySet) TitleNotIn(title ...string) PostQuerySet
- func (qs PostQuerySet) TitleNotlike(title string) PostQuerySet
- func (qs PostQuerySet) UpdatedAtEq(updatedAt time.Time) PostQuerySet
- func (qs PostQuerySet) UpdatedAtGt(updatedAt time.Time) PostQuerySet
- func (qs PostQuerySet) UpdatedAtGte(updatedAt time.Time) PostQuerySet
- func (qs PostQuerySet) UpdatedAtLt(updatedAt time.Time) PostQuerySet
- func (qs PostQuerySet) UpdatedAtLte(updatedAt time.Time) PostQuerySet
- func (qs PostQuerySet) UpdatedAtNe(updatedAt time.Time) PostQuerySet
- type PostReturnListType
- type PostReturnType
- type PostUpdater
- func (u PostUpdater) SetCreatedAt(createdAt time.Time) PostUpdater
- func (u PostUpdater) SetDeletedAt(deletedAt gorm.DeletedAt) PostUpdater
- func (u PostUpdater) SetID(ID uint) PostUpdater
- func (u PostUpdater) SetStr(str tmp.StringDef) PostUpdater
- func (u PostUpdater) SetTitle(title *string) PostUpdater
- func (u PostUpdater) SetUpdatedAt(updatedAt time.Time) PostUpdater
- func (u PostUpdater) SetUser(user User) PostUpdater
- func (u PostUpdater) Update() error
- func (u PostUpdater) UpdateNum() (int64, error)
- type User
- type UserDBSchemaField
- type UserQuerySet
- func (qs UserQuerySet) All(ret *[]User) error
- func (qs UserQuerySet) Count() (int64, error)
- func (qs UserQuerySet) CreatedAtEq(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) CreatedAtGt(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) CreatedAtGte(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) CreatedAtLt(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) CreatedAtLte(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) CreatedAtNe(createdAt time.Time) UserQuerySet
- func (qs UserQuerySet) Delete() error
- func (qs UserQuerySet) DeleteNum() (int64, error)
- func (qs UserQuerySet) DeleteNumUnscoped() (int64, error)
- func (qs UserQuerySet) EmailEq(email string) UserQuerySet
- func (qs UserQuerySet) EmailGt(email string) UserQuerySet
- func (qs UserQuerySet) EmailGte(email string) UserQuerySet
- func (qs UserQuerySet) EmailIn(email ...string) UserQuerySet
- func (qs UserQuerySet) EmailLike(email string) UserQuerySet
- func (qs UserQuerySet) EmailLt(email string) UserQuerySet
- func (qs UserQuerySet) EmailLte(email string) UserQuerySet
- func (qs UserQuerySet) EmailNe(email string) UserQuerySet
- func (qs UserQuerySet) EmailNotIn(email ...string) UserQuerySet
- func (qs UserQuerySet) EmailNotlike(email string) UserQuerySet
- func (qs UserQuerySet) GetDB() *gorm.DB
- func (qs UserQuerySet) GetUpdater() UserUpdater
- func (qs UserQuerySet) IDEq(ID uint) UserQuerySet
- func (qs UserQuerySet) IDGt(ID uint) UserQuerySet
- func (qs UserQuerySet) IDGte(ID uint) UserQuerySet
- func (qs UserQuerySet) IDIn(ID ...uint) UserQuerySet
- func (qs UserQuerySet) IDLt(ID uint) UserQuerySet
- func (qs UserQuerySet) IDLte(ID uint) UserQuerySet
- func (qs UserQuerySet) IDNe(ID uint) UserQuerySet
- func (qs UserQuerySet) IDNotIn(ID ...uint) UserQuerySet
- func (qs UserQuerySet) Limit(limit int) UserQuerySet
- func (qs UserQuerySet) NameEq(name string) UserQuerySet
- func (qs UserQuerySet) NameGt(name string) UserQuerySet
- func (qs UserQuerySet) NameGte(name string) UserQuerySet
- func (qs UserQuerySet) NameIn(name ...string) UserQuerySet
- func (qs UserQuerySet) NameLike(name string) UserQuerySet
- func (qs UserQuerySet) NameLt(name string) UserQuerySet
- func (qs UserQuerySet) NameLte(name string) UserQuerySet
- func (qs UserQuerySet) NameNe(name string) UserQuerySet
- func (qs UserQuerySet) NameNotIn(name ...string) UserQuerySet
- func (qs UserQuerySet) NameNotlike(name string) UserQuerySet
- func (qs UserQuerySet) Offset(offset int) UserQuerySet
- func (qs UserQuerySet) One(ret *User) error
- func (qs UserQuerySet) OrderAscByCreatedAt() UserQuerySet
- func (qs UserQuerySet) OrderAscByEmail() UserQuerySet
- func (qs UserQuerySet) OrderAscByID() UserQuerySet
- func (qs UserQuerySet) OrderAscByName() UserQuerySet
- func (qs UserQuerySet) OrderAscBySurname() UserQuerySet
- func (qs UserQuerySet) OrderAscByUpdatedAt() UserQuerySet
- func (qs UserQuerySet) OrderDescByCreatedAt() UserQuerySet
- func (qs UserQuerySet) OrderDescByEmail() UserQuerySet
- func (qs UserQuerySet) OrderDescByID() UserQuerySet
- func (qs UserQuerySet) OrderDescByName() UserQuerySet
- func (qs UserQuerySet) OrderDescBySurname() UserQuerySet
- func (qs UserQuerySet) OrderDescByUpdatedAt() UserQuerySet
- func (qs UserQuerySet) PreloadDeletedAt() UserQuerySet
- func (qs UserQuerySet) Select(fields ...UserDBSchemaField) UserQuerySet
- func (qs UserQuerySet) SurnameEq(surname string) UserQuerySet
- func (qs UserQuerySet) SurnameGt(surname string) UserQuerySet
- func (qs UserQuerySet) SurnameGte(surname string) UserQuerySet
- func (qs UserQuerySet) SurnameIn(surname ...string) UserQuerySet
- func (qs UserQuerySet) SurnameIsNotNull() UserQuerySet
- func (qs UserQuerySet) SurnameIsNull() UserQuerySet
- func (qs UserQuerySet) SurnameLike(surname string) UserQuerySet
- func (qs UserQuerySet) SurnameLt(surname string) UserQuerySet
- func (qs UserQuerySet) SurnameLte(surname string) UserQuerySet
- func (qs UserQuerySet) SurnameNe(surname string) UserQuerySet
- func (qs UserQuerySet) SurnameNotIn(surname ...string) UserQuerySet
- func (qs UserQuerySet) SurnameNotlike(surname string) UserQuerySet
- func (qs UserQuerySet) UpdatedAtEq(updatedAt time.Time) UserQuerySet
- func (qs UserQuerySet) UpdatedAtGt(updatedAt time.Time) UserQuerySet
- func (qs UserQuerySet) UpdatedAtGte(updatedAt time.Time) UserQuerySet
- func (qs UserQuerySet) UpdatedAtLt(updatedAt time.Time) UserQuerySet
- func (qs UserQuerySet) UpdatedAtLte(updatedAt time.Time) UserQuerySet
- func (qs UserQuerySet) UpdatedAtNe(updatedAt time.Time) UserQuerySet
- type UserReturnListType
- type UserReturnType
- type UserUpdater
- func (u UserUpdater) SetCreatedAt(createdAt time.Time) UserUpdater
- func (u UserUpdater) SetDeletedAt(deletedAt gorm.DeletedAt) UserUpdater
- func (u UserUpdater) SetEmail(email string) UserUpdater
- func (u UserUpdater) SetID(ID uint) UserUpdater
- func (u UserUpdater) SetName(name string) UserUpdater
- func (u UserUpdater) SetSurname(surname *string) UserUpdater
- func (u UserUpdater) SetUpdatedAt(updatedAt time.Time) UserUpdater
- func (u UserUpdater) Update() error
- func (u UserUpdater) UpdateNum() (int64, error)
Constants ¶
const ( BlogDBSchemaFieldID = BlogDBSchemaField("id") BlogDBSchemaFieldCreatedAt = BlogDBSchemaField("created_at") BlogDBSchemaFieldUpdatedAt = BlogDBSchemaField("updated_at") BlogDBSchemaFieldDeletedAt = BlogDBSchemaField("deleted_at") BlogDBSchemaFieldName = BlogDBSchemaField("myname") )
const ( CheckReservedKeywordsDBSchemaFieldType = CheckReservedKeywordsDBSchemaField("type") CheckReservedKeywordsDBSchemaFieldStruct = CheckReservedKeywordsDBSchemaField("struct") )
const ( PostDBSchemaFieldID = PostDBSchemaField("id") PostDBSchemaFieldCreatedAt = PostDBSchemaField("created_at") PostDBSchemaFieldUpdatedAt = PostDBSchemaField("updated_at") PostDBSchemaFieldDeletedAt = PostDBSchemaField("deleted_at") PostDBSchemaFieldBlog = PostDBSchemaField("blog") PostDBSchemaFieldUser = PostDBSchemaField("user") PostDBSchemaFieldTitle = PostDBSchemaField("title") PostDBSchemaFieldStr = PostDBSchemaField("str") )
const ( UserDBSchemaFieldID = UserDBSchemaField("id") UserDBSchemaFieldCreatedAt = UserDBSchemaField("created_at") UserDBSchemaFieldUpdatedAt = UserDBSchemaField("updated_at") UserDBSchemaFieldDeletedAt = UserDBSchemaField("deleted_at") UserDBSchemaFieldName = UserDBSchemaField("name") UserDBSchemaFieldSurname = UserDBSchemaField("user_surname") UserDBSchemaFieldEmail = UserDBSchemaField("email") )
Variables ¶
var BlogDBSchema = struct { ID BlogDBSchemaField CreatedAt BlogDBSchemaField UpdatedAt BlogDBSchemaField DeletedAt BlogDBSchemaField Name BlogDBSchemaField ColumnMap map[string]BlogDBSchemaField }{ ID: BlogDBSchemaFieldID, CreatedAt: BlogDBSchemaFieldCreatedAt, UpdatedAt: BlogDBSchemaFieldUpdatedAt, DeletedAt: BlogDBSchemaFieldDeletedAt, Name: BlogDBSchemaFieldName, ColumnMap: map[string]BlogDBSchemaField{ "id": BlogDBSchemaFieldID, "created_at": BlogDBSchemaFieldCreatedAt, "updated_at": BlogDBSchemaFieldUpdatedAt, "deleted_at": BlogDBSchemaFieldDeletedAt, "myname": BlogDBSchemaFieldName, }, }
BlogDBSchema stores db field names of Blog
var CheckReservedKeywordsDBSchema = struct { Type CheckReservedKeywordsDBSchemaField Struct CheckReservedKeywordsDBSchemaField ColumnMap map[string]CheckReservedKeywordsDBSchemaField }{ Type: CheckReservedKeywordsDBSchemaFieldType, Struct: CheckReservedKeywordsDBSchemaFieldStruct, ColumnMap: map[string]CheckReservedKeywordsDBSchemaField{ "type": CheckReservedKeywordsDBSchemaFieldType, "struct": CheckReservedKeywordsDBSchemaFieldStruct, }, }
CheckReservedKeywordsDBSchema stores db field names of CheckReservedKeywords
var PostDBSchema = struct { ID PostDBSchemaField CreatedAt PostDBSchemaField UpdatedAt PostDBSchemaField DeletedAt PostDBSchemaField Blog PostDBSchemaField User PostDBSchemaField Title PostDBSchemaField Str PostDBSchemaField ColumnMap map[string]PostDBSchemaField }{ ID: PostDBSchemaFieldID, CreatedAt: PostDBSchemaFieldCreatedAt, UpdatedAt: PostDBSchemaFieldUpdatedAt, DeletedAt: PostDBSchemaFieldDeletedAt, Blog: PostDBSchemaFieldBlog, User: PostDBSchemaFieldUser, Title: PostDBSchemaFieldTitle, Str: PostDBSchemaFieldStr, ColumnMap: map[string]PostDBSchemaField{ "id": PostDBSchemaFieldID, "created_at": PostDBSchemaFieldCreatedAt, "updated_at": PostDBSchemaFieldUpdatedAt, "deleted_at": PostDBSchemaFieldDeletedAt, "blog": PostDBSchemaFieldBlog, "user": PostDBSchemaFieldUser, "title": PostDBSchemaFieldTitle, "str": PostDBSchemaFieldStr, }, }
PostDBSchema stores db field names of Post
var UserDBSchema = struct { ID UserDBSchemaField CreatedAt UserDBSchemaField UpdatedAt UserDBSchemaField DeletedAt UserDBSchemaField Name UserDBSchemaField Surname UserDBSchemaField Email UserDBSchemaField ColumnMap map[string]UserDBSchemaField }{ ID: UserDBSchemaFieldID, CreatedAt: UserDBSchemaFieldCreatedAt, UpdatedAt: UserDBSchemaFieldUpdatedAt, DeletedAt: UserDBSchemaFieldDeletedAt, Name: UserDBSchemaFieldName, Surname: UserDBSchemaFieldSurname, Email: UserDBSchemaFieldEmail, ColumnMap: map[string]UserDBSchemaField{ "id": UserDBSchemaFieldID, "created_at": UserDBSchemaFieldCreatedAt, "updated_at": UserDBSchemaFieldUpdatedAt, "deleted_at": UserDBSchemaFieldDeletedAt, "name": UserDBSchemaFieldName, "user_surname": UserDBSchemaFieldSurname, "email": UserDBSchemaFieldEmail, }, }
UserDBSchema stores db field names of User
Functions ¶
func AddBlogGroup ¶ added in v1.0.5
func AddBlogGroup(g *gin.RouterGroup, db *gorm.DB, preloads ...string)
AddBlogGroup adds a 'list all handler' and a 'list by ID' gin.HandlerFunc for type Blog.
func AddCheckReservedKeywordsGroup ¶ added in v1.0.5
func AddCheckReservedKeywordsGroup(g *gin.RouterGroup, db *gorm.DB, preloads ...string)
AddCheckReservedKeywordsGroup adds a 'list all handler' and a 'list by ID' gin.HandlerFunc for type CheckReservedKeywords.
func AddPostGroup ¶ added in v1.0.5
func AddPostGroup(g *gin.RouterGroup, db *gorm.DB, preloads ...string)
AddPostGroup adds a 'list all handler' and a 'list by ID' gin.HandlerFunc for type Post.
func AddUserGroup ¶ added in v1.0.5
func AddUserGroup(g *gin.RouterGroup, db *gorm.DB, preloads ...string)
AddUserGroup adds a 'list all handler' and a 'list by ID' gin.HandlerFunc for type User.
func NewBlogListBindHandler ¶ added in v1.0.7
func NewBlogListBindHandler(db *gorm.DB, b BindType, postHandle BlogReturnListType, preloads ...string) gin.HandlerFunc
NewBlogListBindHandler is an gin.HandlerFunc to return a list of records for type Blog. BindType selects how to bind the gin.Context to an instance of Blog. preloads allow for preloading associations for the underlying query.
func NewBlogOneBindHandler ¶ added in v1.0.7
func NewBlogOneBindHandler(db *gorm.DB, b BindType, postHandle BlogReturnType, preloads ...string) gin.HandlerFunc
NewBlogOneBindHandler is an gin.HandlerFunc to return a single record for type Blog. BindType selects how to bind the gin.Context to an instance of Blog. preloads allow for preloading associations for the underlying query.
func NewCheckReservedKeywordsListBindHandler ¶ added in v1.0.7
func NewCheckReservedKeywordsListBindHandler(db *gorm.DB, b BindType, postHandle CheckReservedKeywordsReturnListType, preloads ...string) gin.HandlerFunc
NewCheckReservedKeywordsListBindHandler is an gin.HandlerFunc to return a list of records for type CheckReservedKeywords. BindType selects how to bind the gin.Context to an instance of CheckReservedKeywords. preloads allow for preloading associations for the underlying query.
func NewCheckReservedKeywordsOneBindHandler ¶ added in v1.0.7
func NewCheckReservedKeywordsOneBindHandler(db *gorm.DB, b BindType, postHandle CheckReservedKeywordsReturnType, preloads ...string) gin.HandlerFunc
NewCheckReservedKeywordsOneBindHandler is an gin.HandlerFunc to return a single record for type CheckReservedKeywords. BindType selects how to bind the gin.Context to an instance of CheckReservedKeywords. preloads allow for preloading associations for the underlying query.
func NewPostListBindHandler ¶ added in v1.0.7
func NewPostListBindHandler(db *gorm.DB, b BindType, postHandle PostReturnListType, preloads ...string) gin.HandlerFunc
NewPostListBindHandler is an gin.HandlerFunc to return a list of records for type Post. BindType selects how to bind the gin.Context to an instance of Post. preloads allow for preloading associations for the underlying query.
func NewPostOneBindHandler ¶ added in v1.0.7
func NewPostOneBindHandler(db *gorm.DB, b BindType, postHandle PostReturnType, preloads ...string) gin.HandlerFunc
NewPostOneBindHandler is an gin.HandlerFunc to return a single record for type Post. BindType selects how to bind the gin.Context to an instance of Post. preloads allow for preloading associations for the underlying query.
func NewUserListBindHandler ¶ added in v1.0.7
func NewUserListBindHandler(db *gorm.DB, b BindType, postHandle UserReturnListType, preloads ...string) gin.HandlerFunc
NewUserListBindHandler is an gin.HandlerFunc to return a list of records for type User. BindType selects how to bind the gin.Context to an instance of User. preloads allow for preloading associations for the underlying query.
func NewUserOneBindHandler ¶ added in v1.0.7
func NewUserOneBindHandler(db *gorm.DB, b BindType, postHandle UserReturnType, preloads ...string) gin.HandlerFunc
NewUserOneBindHandler is an gin.HandlerFunc to return a single record for type User. BindType selects how to bind the gin.Context to an instance of User. preloads allow for preloading associations for the underlying query.
func TotalCountHeader ¶ added in v1.0.5
func TotalCountHeader(name string, q func() (int64, error)) gin.HandlerFunc
TotalCountHeader is a gin.HandlerFunc which accepts a count method and adds the value to the response headers.
Types ¶
type Blog ¶
Blog is a blog gen:qs
func (*Blog) SomeMethod ¶
SomeMethod is just for testing purposes
type BlogDBSchemaField ¶
type BlogDBSchemaField string
BlogDBSchemaField describes database schema field. It requires for method 'Update'
func (BlogDBSchemaField) OrderAsc ¶ added in v1.0.10
func (f BlogDBSchemaField) OrderAsc(qs BlogQuerySet) BlogQuerySet
func (BlogDBSchemaField) OrderDesc ¶ added in v1.0.10
func (f BlogDBSchemaField) OrderDesc(qs BlogQuerySet) BlogQuerySet
func (BlogDBSchemaField) String ¶
func (f BlogDBSchemaField) String() string
String method returns string representation of field. nolint: dupl
type BlogQuerySet ¶
type BlogQuerySet struct {
// contains filtered or unexported fields
}
BlogQuerySet is an queryset type for Blog
func NewBlogQuerySet ¶
func NewBlogQuerySet(db *gorm.DB) BlogQuerySet
NewBlogQuerySet constructs new BlogQuerySet
func (BlogQuerySet) All ¶
func (qs BlogQuerySet) All(ret *[]Blog) error
All is an autogenerated method nolint: dupl
func (BlogQuerySet) Count ¶
func (qs BlogQuerySet) Count() (int64, error)
Count is an autogenerated method nolint: dupl
func (BlogQuerySet) CreatedAtEq ¶
func (qs BlogQuerySet) CreatedAtEq(createdAt time.Time) BlogQuerySet
CreatedAtEq is an autogenerated method nolint: dupl
func (BlogQuerySet) CreatedAtGt ¶
func (qs BlogQuerySet) CreatedAtGt(createdAt time.Time) BlogQuerySet
CreatedAtGt is an autogenerated method nolint: dupl
func (BlogQuerySet) CreatedAtGte ¶
func (qs BlogQuerySet) CreatedAtGte(createdAt time.Time) BlogQuerySet
CreatedAtGte is an autogenerated method nolint: dupl
func (BlogQuerySet) CreatedAtLt ¶
func (qs BlogQuerySet) CreatedAtLt(createdAt time.Time) BlogQuerySet
CreatedAtLt is an autogenerated method nolint: dupl
func (BlogQuerySet) CreatedAtLte ¶
func (qs BlogQuerySet) CreatedAtLte(createdAt time.Time) BlogQuerySet
CreatedAtLte is an autogenerated method nolint: dupl
func (BlogQuerySet) CreatedAtNe ¶
func (qs BlogQuerySet) CreatedAtNe(createdAt time.Time) BlogQuerySet
CreatedAtNe is an autogenerated method nolint: dupl
func (BlogQuerySet) Delete ¶
func (qs BlogQuerySet) Delete() error
Delete is an autogenerated method nolint: dupl
func (BlogQuerySet) DeleteNum ¶
func (qs BlogQuerySet) DeleteNum() (int64, error)
DeleteNum is an autogenerated method nolint: dupl
func (BlogQuerySet) DeleteNumUnscoped ¶
func (qs BlogQuerySet) DeleteNumUnscoped() (int64, error)
DeleteNumUnscoped is an autogenerated method nolint: dupl
func (BlogQuerySet) GetDB ¶
func (qs BlogQuerySet) GetDB() *gorm.DB
GetDB is an autogenerated method nolint: dupl
func (BlogQuerySet) GetUpdater ¶
func (qs BlogQuerySet) GetUpdater() BlogUpdater
GetUpdater is an autogenerated method nolint: dupl
func (BlogQuerySet) IDEq ¶
func (qs BlogQuerySet) IDEq(ID uint) BlogQuerySet
IDEq is an autogenerated method nolint: dupl
func (BlogQuerySet) IDGt ¶
func (qs BlogQuerySet) IDGt(ID uint) BlogQuerySet
IDGt is an autogenerated method nolint: dupl
func (BlogQuerySet) IDGte ¶
func (qs BlogQuerySet) IDGte(ID uint) BlogQuerySet
IDGte is an autogenerated method nolint: dupl
func (BlogQuerySet) IDIn ¶
func (qs BlogQuerySet) IDIn(ID ...uint) BlogQuerySet
IDIn is an autogenerated method nolint: dupl
func (BlogQuerySet) IDLt ¶
func (qs BlogQuerySet) IDLt(ID uint) BlogQuerySet
IDLt is an autogenerated method nolint: dupl
func (BlogQuerySet) IDLte ¶
func (qs BlogQuerySet) IDLte(ID uint) BlogQuerySet
IDLte is an autogenerated method nolint: dupl
func (BlogQuerySet) IDNe ¶
func (qs BlogQuerySet) IDNe(ID uint) BlogQuerySet
IDNe is an autogenerated method nolint: dupl
func (BlogQuerySet) IDNotIn ¶
func (qs BlogQuerySet) IDNotIn(ID ...uint) BlogQuerySet
IDNotIn is an autogenerated method nolint: dupl
func (BlogQuerySet) Limit ¶
func (qs BlogQuerySet) Limit(limit int) BlogQuerySet
Limit is an autogenerated method nolint: dupl
func (BlogQuerySet) NameEq ¶
func (qs BlogQuerySet) NameEq(name string) BlogQuerySet
NameEq is an autogenerated method nolint: dupl
func (BlogQuerySet) NameGt ¶
func (qs BlogQuerySet) NameGt(name string) BlogQuerySet
NameGt is an autogenerated method nolint: dupl
func (BlogQuerySet) NameGte ¶
func (qs BlogQuerySet) NameGte(name string) BlogQuerySet
NameGte is an autogenerated method nolint: dupl
func (BlogQuerySet) NameIn ¶
func (qs BlogQuerySet) NameIn(name ...string) BlogQuerySet
NameIn is an autogenerated method nolint: dupl
func (BlogQuerySet) NameLike ¶
func (qs BlogQuerySet) NameLike(name string) BlogQuerySet
NameLike is an autogenerated method nolint: dupl
func (BlogQuerySet) NameLt ¶
func (qs BlogQuerySet) NameLt(name string) BlogQuerySet
NameLt is an autogenerated method nolint: dupl
func (BlogQuerySet) NameLte ¶
func (qs BlogQuerySet) NameLte(name string) BlogQuerySet
NameLte is an autogenerated method nolint: dupl
func (BlogQuerySet) NameNe ¶
func (qs BlogQuerySet) NameNe(name string) BlogQuerySet
NameNe is an autogenerated method nolint: dupl
func (BlogQuerySet) NameNotIn ¶
func (qs BlogQuerySet) NameNotIn(name ...string) BlogQuerySet
NameNotIn is an autogenerated method nolint: dupl
func (BlogQuerySet) NameNotlike ¶
func (qs BlogQuerySet) NameNotlike(name string) BlogQuerySet
NameNotlike is an autogenerated method nolint: dupl
func (BlogQuerySet) Offset ¶
func (qs BlogQuerySet) Offset(offset int) BlogQuerySet
Offset is an autogenerated method nolint: dupl
func (BlogQuerySet) One ¶
func (qs BlogQuerySet) One(ret *Blog) error
One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched
func (BlogQuerySet) OrderAscByCreatedAt ¶
func (qs BlogQuerySet) OrderAscByCreatedAt() BlogQuerySet
OrderAscByCreatedAt is an autogenerated method nolint: dupl
func (BlogQuerySet) OrderAscByID ¶
func (qs BlogQuerySet) OrderAscByID() BlogQuerySet
OrderAscByID is an autogenerated method nolint: dupl
func (BlogQuerySet) OrderAscByName ¶
func (qs BlogQuerySet) OrderAscByName() BlogQuerySet
OrderAscByName is an autogenerated method nolint: dupl
func (BlogQuerySet) OrderAscByUpdatedAt ¶
func (qs BlogQuerySet) OrderAscByUpdatedAt() BlogQuerySet
OrderAscByUpdatedAt is an autogenerated method nolint: dupl
func (BlogQuerySet) OrderDescByCreatedAt ¶
func (qs BlogQuerySet) OrderDescByCreatedAt() BlogQuerySet
OrderDescByCreatedAt is an autogenerated method nolint: dupl
func (BlogQuerySet) OrderDescByID ¶
func (qs BlogQuerySet) OrderDescByID() BlogQuerySet
OrderDescByID is an autogenerated method nolint: dupl
func (BlogQuerySet) OrderDescByName ¶
func (qs BlogQuerySet) OrderDescByName() BlogQuerySet
OrderDescByName is an autogenerated method nolint: dupl
func (BlogQuerySet) OrderDescByUpdatedAt ¶
func (qs BlogQuerySet) OrderDescByUpdatedAt() BlogQuerySet
OrderDescByUpdatedAt is an autogenerated method nolint: dupl
func (BlogQuerySet) PreloadDeletedAt ¶
func (qs BlogQuerySet) PreloadDeletedAt() BlogQuerySet
PreloadDeletedAt is an autogenerated method nolint: dupl
func (BlogQuerySet) Select ¶
func (qs BlogQuerySet) Select(fields ...BlogDBSchemaField) BlogQuerySet
func (BlogQuerySet) UpdatedAtEq ¶
func (qs BlogQuerySet) UpdatedAtEq(updatedAt time.Time) BlogQuerySet
UpdatedAtEq is an autogenerated method nolint: dupl
func (BlogQuerySet) UpdatedAtGt ¶
func (qs BlogQuerySet) UpdatedAtGt(updatedAt time.Time) BlogQuerySet
UpdatedAtGt is an autogenerated method nolint: dupl
func (BlogQuerySet) UpdatedAtGte ¶
func (qs BlogQuerySet) UpdatedAtGte(updatedAt time.Time) BlogQuerySet
UpdatedAtGte is an autogenerated method nolint: dupl
func (BlogQuerySet) UpdatedAtLt ¶
func (qs BlogQuerySet) UpdatedAtLt(updatedAt time.Time) BlogQuerySet
UpdatedAtLt is an autogenerated method nolint: dupl
func (BlogQuerySet) UpdatedAtLte ¶
func (qs BlogQuerySet) UpdatedAtLte(updatedAt time.Time) BlogQuerySet
UpdatedAtLte is an autogenerated method nolint: dupl
func (BlogQuerySet) UpdatedAtNe ¶
func (qs BlogQuerySet) UpdatedAtNe(updatedAt time.Time) BlogQuerySet
UpdatedAtNe is an autogenerated method nolint: dupl
type BlogReturnListType ¶ added in v1.0.10
BlogReturnListType is used to build a JSON list response based on a single validated instance of Blog
type BlogReturnType ¶ added in v1.0.10
BlogReturnListType is used to build a JSON response based on a single validated instance of Blog
type BlogUpdater ¶
type BlogUpdater struct {
// contains filtered or unexported fields
}
BlogUpdater is an Blog updates manager
func NewBlogUpdater ¶
func NewBlogUpdater(db *gorm.DB) BlogUpdater
NewBlogUpdater creates new Blog updater nolint: dupl
func (BlogUpdater) SetCreatedAt ¶
func (u BlogUpdater) SetCreatedAt(createdAt time.Time) BlogUpdater
SetCreatedAt is an autogenerated method nolint: dupl
func (BlogUpdater) SetDeletedAt ¶
func (u BlogUpdater) SetDeletedAt(deletedAt gorm.DeletedAt) BlogUpdater
SetDeletedAt is an autogenerated method nolint: dupl
func (BlogUpdater) SetID ¶
func (u BlogUpdater) SetID(ID uint) BlogUpdater
SetID is an autogenerated method nolint: dupl
func (BlogUpdater) SetName ¶
func (u BlogUpdater) SetName(name string) BlogUpdater
SetName is an autogenerated method nolint: dupl
func (BlogUpdater) SetUpdatedAt ¶
func (u BlogUpdater) SetUpdatedAt(updatedAt time.Time) BlogUpdater
SetUpdatedAt is an autogenerated method nolint: dupl
func (BlogUpdater) Update ¶
func (u BlogUpdater) Update() error
Update is an autogenerated method nolint: dupl
func (BlogUpdater) UpdateNum ¶
func (u BlogUpdater) UpdateNum() (int64, error)
UpdateNum is an autogenerated method nolint: dupl
type CheckReservedKeywords ¶
CheckReservedKeywords is a struct for checking work of fields with reserved keywords names gen:qs
func (*CheckReservedKeywords) Create ¶
func (o *CheckReservedKeywords) Create(db *gorm.DB) error
Create is an autogenerated method nolint: dupl
func (*CheckReservedKeywords) Delete ¶
func (o *CheckReservedKeywords) Delete(db *gorm.DB) error
Delete is an autogenerated method nolint: dupl
func (*CheckReservedKeywords) Update ¶
func (o *CheckReservedKeywords) Update(db *gorm.DB, fields ...CheckReservedKeywordsDBSchemaField) error
Update updates CheckReservedKeywords fields by primary key nolint: dupl
type CheckReservedKeywordsDBSchemaField ¶
type CheckReservedKeywordsDBSchemaField string
CheckReservedKeywordsDBSchemaField describes database schema field. It requires for method 'Update'
func (CheckReservedKeywordsDBSchemaField) OrderAsc ¶ added in v1.0.10
func (f CheckReservedKeywordsDBSchemaField) OrderAsc(qs CheckReservedKeywordsQuerySet) CheckReservedKeywordsQuerySet
func (CheckReservedKeywordsDBSchemaField) OrderDesc ¶ added in v1.0.10
func (f CheckReservedKeywordsDBSchemaField) OrderDesc(qs CheckReservedKeywordsQuerySet) CheckReservedKeywordsQuerySet
func (CheckReservedKeywordsDBSchemaField) String ¶
func (f CheckReservedKeywordsDBSchemaField) String() string
String method returns string representation of field. nolint: dupl
type CheckReservedKeywordsQuerySet ¶
type CheckReservedKeywordsQuerySet struct {
// contains filtered or unexported fields
}
CheckReservedKeywordsQuerySet is an queryset type for CheckReservedKeywords
func NewCheckReservedKeywordsQuerySet ¶
func NewCheckReservedKeywordsQuerySet(db *gorm.DB) CheckReservedKeywordsQuerySet
NewCheckReservedKeywordsQuerySet constructs new CheckReservedKeywordsQuerySet
func (CheckReservedKeywordsQuerySet) All ¶
func (qs CheckReservedKeywordsQuerySet) All(ret *[]CheckReservedKeywords) error
All is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) Count ¶
func (qs CheckReservedKeywordsQuerySet) Count() (int64, error)
Count is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) Delete ¶
func (qs CheckReservedKeywordsQuerySet) Delete() error
Delete is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) DeleteNum ¶
func (qs CheckReservedKeywordsQuerySet) DeleteNum() (int64, error)
DeleteNum is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) DeleteNumUnscoped ¶
func (qs CheckReservedKeywordsQuerySet) DeleteNumUnscoped() (int64, error)
DeleteNumUnscoped is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) GetDB ¶
func (qs CheckReservedKeywordsQuerySet) GetDB() *gorm.DB
GetDB is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) GetUpdater ¶
func (qs CheckReservedKeywordsQuerySet) GetUpdater() CheckReservedKeywordsUpdater
GetUpdater is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) Limit ¶
func (qs CheckReservedKeywordsQuerySet) Limit(limit int) CheckReservedKeywordsQuerySet
Limit is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) Offset ¶
func (qs CheckReservedKeywordsQuerySet) Offset(offset int) CheckReservedKeywordsQuerySet
Offset is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) One ¶
func (qs CheckReservedKeywordsQuerySet) One(ret *CheckReservedKeywords) error
One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched
func (CheckReservedKeywordsQuerySet) OrderAscByStruct ¶
func (qs CheckReservedKeywordsQuerySet) OrderAscByStruct() CheckReservedKeywordsQuerySet
OrderAscByStruct is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) OrderAscByType ¶
func (qs CheckReservedKeywordsQuerySet) OrderAscByType() CheckReservedKeywordsQuerySet
OrderAscByType is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) OrderDescByStruct ¶
func (qs CheckReservedKeywordsQuerySet) OrderDescByStruct() CheckReservedKeywordsQuerySet
OrderDescByStruct is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) OrderDescByType ¶
func (qs CheckReservedKeywordsQuerySet) OrderDescByType() CheckReservedKeywordsQuerySet
OrderDescByType is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) Select ¶
func (qs CheckReservedKeywordsQuerySet) Select(fields ...CheckReservedKeywordsDBSchemaField) CheckReservedKeywordsQuerySet
func (CheckReservedKeywordsQuerySet) StructEq ¶
func (qs CheckReservedKeywordsQuerySet) StructEq(structValue int) CheckReservedKeywordsQuerySet
StructEq is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) StructGt ¶
func (qs CheckReservedKeywordsQuerySet) StructGt(structValue int) CheckReservedKeywordsQuerySet
StructGt is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) StructGte ¶
func (qs CheckReservedKeywordsQuerySet) StructGte(structValue int) CheckReservedKeywordsQuerySet
StructGte is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) StructIn ¶
func (qs CheckReservedKeywordsQuerySet) StructIn(structValue ...int) CheckReservedKeywordsQuerySet
StructIn is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) StructLt ¶
func (qs CheckReservedKeywordsQuerySet) StructLt(structValue int) CheckReservedKeywordsQuerySet
StructLt is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) StructLte ¶
func (qs CheckReservedKeywordsQuerySet) StructLte(structValue int) CheckReservedKeywordsQuerySet
StructLte is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) StructNe ¶
func (qs CheckReservedKeywordsQuerySet) StructNe(structValue int) CheckReservedKeywordsQuerySet
StructNe is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) StructNotIn ¶
func (qs CheckReservedKeywordsQuerySet) StructNotIn(structValue ...int) CheckReservedKeywordsQuerySet
StructNotIn is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) TypeEq ¶
func (qs CheckReservedKeywordsQuerySet) TypeEq(typeValue string) CheckReservedKeywordsQuerySet
TypeEq is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) TypeGt ¶
func (qs CheckReservedKeywordsQuerySet) TypeGt(typeValue string) CheckReservedKeywordsQuerySet
TypeGt is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) TypeGte ¶
func (qs CheckReservedKeywordsQuerySet) TypeGte(typeValue string) CheckReservedKeywordsQuerySet
TypeGte is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) TypeIn ¶
func (qs CheckReservedKeywordsQuerySet) TypeIn(typeValue ...string) CheckReservedKeywordsQuerySet
TypeIn is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) TypeLike ¶
func (qs CheckReservedKeywordsQuerySet) TypeLike(typeValue string) CheckReservedKeywordsQuerySet
TypeLike is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) TypeLt ¶
func (qs CheckReservedKeywordsQuerySet) TypeLt(typeValue string) CheckReservedKeywordsQuerySet
TypeLt is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) TypeLte ¶
func (qs CheckReservedKeywordsQuerySet) TypeLte(typeValue string) CheckReservedKeywordsQuerySet
TypeLte is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) TypeNe ¶
func (qs CheckReservedKeywordsQuerySet) TypeNe(typeValue string) CheckReservedKeywordsQuerySet
TypeNe is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) TypeNotIn ¶
func (qs CheckReservedKeywordsQuerySet) TypeNotIn(typeValue ...string) CheckReservedKeywordsQuerySet
TypeNotIn is an autogenerated method nolint: dupl
func (CheckReservedKeywordsQuerySet) TypeNotlike ¶
func (qs CheckReservedKeywordsQuerySet) TypeNotlike(typeValue string) CheckReservedKeywordsQuerySet
TypeNotlike is an autogenerated method nolint: dupl
type CheckReservedKeywordsReturnListType ¶ added in v1.0.10
type CheckReservedKeywordsReturnListType func(*gin.Context, []CheckReservedKeywords)
CheckReservedKeywordsReturnListType is used to build a JSON list response based on a single validated instance of CheckReservedKeywords
type CheckReservedKeywordsReturnType ¶ added in v1.0.10
type CheckReservedKeywordsReturnType func(*gin.Context, CheckReservedKeywords)
CheckReservedKeywordsReturnListType is used to build a JSON response based on a single validated instance of CheckReservedKeywords
type CheckReservedKeywordsUpdater ¶
type CheckReservedKeywordsUpdater struct {
// contains filtered or unexported fields
}
CheckReservedKeywordsUpdater is an CheckReservedKeywords updates manager
func NewCheckReservedKeywordsUpdater ¶
func NewCheckReservedKeywordsUpdater(db *gorm.DB) CheckReservedKeywordsUpdater
NewCheckReservedKeywordsUpdater creates new CheckReservedKeywords updater nolint: dupl
func (CheckReservedKeywordsUpdater) SetStruct ¶
func (u CheckReservedKeywordsUpdater) SetStruct(structValue int) CheckReservedKeywordsUpdater
SetStruct is an autogenerated method nolint: dupl
func (CheckReservedKeywordsUpdater) SetType ¶
func (u CheckReservedKeywordsUpdater) SetType(typeValue string) CheckReservedKeywordsUpdater
SetType is an autogenerated method nolint: dupl
func (CheckReservedKeywordsUpdater) Update ¶
func (u CheckReservedKeywordsUpdater) Update() error
Update is an autogenerated method nolint: dupl
func (CheckReservedKeywordsUpdater) UpdateNum ¶
func (u CheckReservedKeywordsUpdater) UpdateNum() (int64, error)
UpdateNum is an autogenerated method nolint: dupl
type Post ¶
type Post struct { gorm.Model Blog *Blog // may be no blog User User Title *string Str tmp.StringDef Unused int `gorm:"-"` }
Post is an article gen:qs
type PostDBSchemaField ¶
type PostDBSchemaField string
PostDBSchemaField describes database schema field. It requires for method 'Update'
func (PostDBSchemaField) OrderAsc ¶ added in v1.0.10
func (f PostDBSchemaField) OrderAsc(qs PostQuerySet) PostQuerySet
func (PostDBSchemaField) OrderDesc ¶ added in v1.0.10
func (f PostDBSchemaField) OrderDesc(qs PostQuerySet) PostQuerySet
func (PostDBSchemaField) String ¶
func (f PostDBSchemaField) String() string
String method returns string representation of field. nolint: dupl
type PostQuerySet ¶
type PostQuerySet struct {
// contains filtered or unexported fields
}
PostQuerySet is an queryset type for Post
func NewPostQuerySet ¶
func NewPostQuerySet(db *gorm.DB) PostQuerySet
NewPostQuerySet constructs new PostQuerySet
func (PostQuerySet) All ¶
func (qs PostQuerySet) All(ret *[]Post) error
All is an autogenerated method nolint: dupl
func (PostQuerySet) BlogIsNotNull ¶
func (qs PostQuerySet) BlogIsNotNull() PostQuerySet
BlogIsNotNull is an autogenerated method nolint: dupl
func (PostQuerySet) BlogIsNull ¶
func (qs PostQuerySet) BlogIsNull() PostQuerySet
BlogIsNull is an autogenerated method nolint: dupl
func (PostQuerySet) Count ¶
func (qs PostQuerySet) Count() (int64, error)
Count is an autogenerated method nolint: dupl
func (PostQuerySet) CreatedAtEq ¶
func (qs PostQuerySet) CreatedAtEq(createdAt time.Time) PostQuerySet
CreatedAtEq is an autogenerated method nolint: dupl
func (PostQuerySet) CreatedAtGt ¶
func (qs PostQuerySet) CreatedAtGt(createdAt time.Time) PostQuerySet
CreatedAtGt is an autogenerated method nolint: dupl
func (PostQuerySet) CreatedAtGte ¶
func (qs PostQuerySet) CreatedAtGte(createdAt time.Time) PostQuerySet
CreatedAtGte is an autogenerated method nolint: dupl
func (PostQuerySet) CreatedAtLt ¶
func (qs PostQuerySet) CreatedAtLt(createdAt time.Time) PostQuerySet
CreatedAtLt is an autogenerated method nolint: dupl
func (PostQuerySet) CreatedAtLte ¶
func (qs PostQuerySet) CreatedAtLte(createdAt time.Time) PostQuerySet
CreatedAtLte is an autogenerated method nolint: dupl
func (PostQuerySet) CreatedAtNe ¶
func (qs PostQuerySet) CreatedAtNe(createdAt time.Time) PostQuerySet
CreatedAtNe is an autogenerated method nolint: dupl
func (PostQuerySet) Delete ¶
func (qs PostQuerySet) Delete() error
Delete is an autogenerated method nolint: dupl
func (PostQuerySet) DeleteNum ¶
func (qs PostQuerySet) DeleteNum() (int64, error)
DeleteNum is an autogenerated method nolint: dupl
func (PostQuerySet) DeleteNumUnscoped ¶
func (qs PostQuerySet) DeleteNumUnscoped() (int64, error)
DeleteNumUnscoped is an autogenerated method nolint: dupl
func (PostQuerySet) GetDB ¶
func (qs PostQuerySet) GetDB() *gorm.DB
GetDB is an autogenerated method nolint: dupl
func (PostQuerySet) GetUpdater ¶
func (qs PostQuerySet) GetUpdater() PostUpdater
GetUpdater is an autogenerated method nolint: dupl
func (PostQuerySet) IDEq ¶
func (qs PostQuerySet) IDEq(ID uint) PostQuerySet
IDEq is an autogenerated method nolint: dupl
func (PostQuerySet) IDGt ¶
func (qs PostQuerySet) IDGt(ID uint) PostQuerySet
IDGt is an autogenerated method nolint: dupl
func (PostQuerySet) IDGte ¶
func (qs PostQuerySet) IDGte(ID uint) PostQuerySet
IDGte is an autogenerated method nolint: dupl
func (PostQuerySet) IDIn ¶
func (qs PostQuerySet) IDIn(ID ...uint) PostQuerySet
IDIn is an autogenerated method nolint: dupl
func (PostQuerySet) IDLt ¶
func (qs PostQuerySet) IDLt(ID uint) PostQuerySet
IDLt is an autogenerated method nolint: dupl
func (PostQuerySet) IDLte ¶
func (qs PostQuerySet) IDLte(ID uint) PostQuerySet
IDLte is an autogenerated method nolint: dupl
func (PostQuerySet) IDNe ¶
func (qs PostQuerySet) IDNe(ID uint) PostQuerySet
IDNe is an autogenerated method nolint: dupl
func (PostQuerySet) IDNotIn ¶
func (qs PostQuerySet) IDNotIn(ID ...uint) PostQuerySet
IDNotIn is an autogenerated method nolint: dupl
func (PostQuerySet) Limit ¶
func (qs PostQuerySet) Limit(limit int) PostQuerySet
Limit is an autogenerated method nolint: dupl
func (PostQuerySet) Offset ¶
func (qs PostQuerySet) Offset(offset int) PostQuerySet
Offset is an autogenerated method nolint: dupl
func (PostQuerySet) One ¶
func (qs PostQuerySet) One(ret *Post) error
One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched
func (PostQuerySet) OrderAscByCreatedAt ¶
func (qs PostQuerySet) OrderAscByCreatedAt() PostQuerySet
OrderAscByCreatedAt is an autogenerated method nolint: dupl
func (PostQuerySet) OrderAscByID ¶
func (qs PostQuerySet) OrderAscByID() PostQuerySet
OrderAscByID is an autogenerated method nolint: dupl
func (PostQuerySet) OrderAscByStr ¶
func (qs PostQuerySet) OrderAscByStr() PostQuerySet
OrderAscByStr is an autogenerated method nolint: dupl
func (PostQuerySet) OrderAscByTitle ¶
func (qs PostQuerySet) OrderAscByTitle() PostQuerySet
OrderAscByTitle is an autogenerated method nolint: dupl
func (PostQuerySet) OrderAscByUpdatedAt ¶
func (qs PostQuerySet) OrderAscByUpdatedAt() PostQuerySet
OrderAscByUpdatedAt is an autogenerated method nolint: dupl
func (PostQuerySet) OrderDescByCreatedAt ¶
func (qs PostQuerySet) OrderDescByCreatedAt() PostQuerySet
OrderDescByCreatedAt is an autogenerated method nolint: dupl
func (PostQuerySet) OrderDescByID ¶
func (qs PostQuerySet) OrderDescByID() PostQuerySet
OrderDescByID is an autogenerated method nolint: dupl
func (PostQuerySet) OrderDescByStr ¶
func (qs PostQuerySet) OrderDescByStr() PostQuerySet
OrderDescByStr is an autogenerated method nolint: dupl
func (PostQuerySet) OrderDescByTitle ¶
func (qs PostQuerySet) OrderDescByTitle() PostQuerySet
OrderDescByTitle is an autogenerated method nolint: dupl
func (PostQuerySet) OrderDescByUpdatedAt ¶
func (qs PostQuerySet) OrderDescByUpdatedAt() PostQuerySet
OrderDescByUpdatedAt is an autogenerated method nolint: dupl
func (PostQuerySet) PreloadBlog ¶
func (qs PostQuerySet) PreloadBlog() PostQuerySet
PreloadBlog is an autogenerated method nolint: dupl
func (PostQuerySet) PreloadDeletedAt ¶
func (qs PostQuerySet) PreloadDeletedAt() PostQuerySet
PreloadDeletedAt is an autogenerated method nolint: dupl
func (PostQuerySet) PreloadUser ¶
func (qs PostQuerySet) PreloadUser() PostQuerySet
PreloadUser is an autogenerated method nolint: dupl
func (PostQuerySet) Select ¶
func (qs PostQuerySet) Select(fields ...PostDBSchemaField) PostQuerySet
func (PostQuerySet) StrEq ¶
func (qs PostQuerySet) StrEq(str tmp.StringDef) PostQuerySet
StrEq is an autogenerated method nolint: dupl
func (PostQuerySet) StrGt ¶
func (qs PostQuerySet) StrGt(str tmp.StringDef) PostQuerySet
StrGt is an autogenerated method nolint: dupl
func (PostQuerySet) StrGte ¶
func (qs PostQuerySet) StrGte(str tmp.StringDef) PostQuerySet
StrGte is an autogenerated method nolint: dupl
func (PostQuerySet) StrIn ¶
func (qs PostQuerySet) StrIn(str ...tmp.StringDef) PostQuerySet
StrIn is an autogenerated method nolint: dupl
func (PostQuerySet) StrLike ¶
func (qs PostQuerySet) StrLike(str tmp.StringDef) PostQuerySet
StrLike is an autogenerated method nolint: dupl
func (PostQuerySet) StrLt ¶
func (qs PostQuerySet) StrLt(str tmp.StringDef) PostQuerySet
StrLt is an autogenerated method nolint: dupl
func (PostQuerySet) StrLte ¶
func (qs PostQuerySet) StrLte(str tmp.StringDef) PostQuerySet
StrLte is an autogenerated method nolint: dupl
func (PostQuerySet) StrNe ¶
func (qs PostQuerySet) StrNe(str tmp.StringDef) PostQuerySet
StrNe is an autogenerated method nolint: dupl
func (PostQuerySet) StrNotIn ¶
func (qs PostQuerySet) StrNotIn(str ...tmp.StringDef) PostQuerySet
StrNotIn is an autogenerated method nolint: dupl
func (PostQuerySet) StrNotlike ¶
func (qs PostQuerySet) StrNotlike(str tmp.StringDef) PostQuerySet
StrNotlike is an autogenerated method nolint: dupl
func (PostQuerySet) TitleEq ¶
func (qs PostQuerySet) TitleEq(title string) PostQuerySet
TitleEq is an autogenerated method nolint: dupl
func (PostQuerySet) TitleGt ¶
func (qs PostQuerySet) TitleGt(title string) PostQuerySet
TitleGt is an autogenerated method nolint: dupl
func (PostQuerySet) TitleGte ¶
func (qs PostQuerySet) TitleGte(title string) PostQuerySet
TitleGte is an autogenerated method nolint: dupl
func (PostQuerySet) TitleIn ¶
func (qs PostQuerySet) TitleIn(title ...string) PostQuerySet
TitleIn is an autogenerated method nolint: dupl
func (PostQuerySet) TitleIsNotNull ¶
func (qs PostQuerySet) TitleIsNotNull() PostQuerySet
TitleIsNotNull is an autogenerated method nolint: dupl
func (PostQuerySet) TitleIsNull ¶
func (qs PostQuerySet) TitleIsNull() PostQuerySet
TitleIsNull is an autogenerated method nolint: dupl
func (PostQuerySet) TitleLike ¶
func (qs PostQuerySet) TitleLike(title string) PostQuerySet
TitleLike is an autogenerated method nolint: dupl
func (PostQuerySet) TitleLt ¶
func (qs PostQuerySet) TitleLt(title string) PostQuerySet
TitleLt is an autogenerated method nolint: dupl
func (PostQuerySet) TitleLte ¶
func (qs PostQuerySet) TitleLte(title string) PostQuerySet
TitleLte is an autogenerated method nolint: dupl
func (PostQuerySet) TitleNe ¶
func (qs PostQuerySet) TitleNe(title string) PostQuerySet
TitleNe is an autogenerated method nolint: dupl
func (PostQuerySet) TitleNotIn ¶
func (qs PostQuerySet) TitleNotIn(title ...string) PostQuerySet
TitleNotIn is an autogenerated method nolint: dupl
func (PostQuerySet) TitleNotlike ¶
func (qs PostQuerySet) TitleNotlike(title string) PostQuerySet
TitleNotlike is an autogenerated method nolint: dupl
func (PostQuerySet) UpdatedAtEq ¶
func (qs PostQuerySet) UpdatedAtEq(updatedAt time.Time) PostQuerySet
UpdatedAtEq is an autogenerated method nolint: dupl
func (PostQuerySet) UpdatedAtGt ¶
func (qs PostQuerySet) UpdatedAtGt(updatedAt time.Time) PostQuerySet
UpdatedAtGt is an autogenerated method nolint: dupl
func (PostQuerySet) UpdatedAtGte ¶
func (qs PostQuerySet) UpdatedAtGte(updatedAt time.Time) PostQuerySet
UpdatedAtGte is an autogenerated method nolint: dupl
func (PostQuerySet) UpdatedAtLt ¶
func (qs PostQuerySet) UpdatedAtLt(updatedAt time.Time) PostQuerySet
UpdatedAtLt is an autogenerated method nolint: dupl
func (PostQuerySet) UpdatedAtLte ¶
func (qs PostQuerySet) UpdatedAtLte(updatedAt time.Time) PostQuerySet
UpdatedAtLte is an autogenerated method nolint: dupl
func (PostQuerySet) UpdatedAtNe ¶
func (qs PostQuerySet) UpdatedAtNe(updatedAt time.Time) PostQuerySet
UpdatedAtNe is an autogenerated method nolint: dupl
type PostReturnListType ¶ added in v1.0.10
PostReturnListType is used to build a JSON list response based on a single validated instance of Post
type PostReturnType ¶ added in v1.0.10
PostReturnListType is used to build a JSON response based on a single validated instance of Post
type PostUpdater ¶
type PostUpdater struct {
// contains filtered or unexported fields
}
PostUpdater is an Post updates manager
func NewPostUpdater ¶
func NewPostUpdater(db *gorm.DB) PostUpdater
NewPostUpdater creates new Post updater nolint: dupl
func (PostUpdater) SetCreatedAt ¶
func (u PostUpdater) SetCreatedAt(createdAt time.Time) PostUpdater
SetCreatedAt is an autogenerated method nolint: dupl
func (PostUpdater) SetDeletedAt ¶
func (u PostUpdater) SetDeletedAt(deletedAt gorm.DeletedAt) PostUpdater
SetDeletedAt is an autogenerated method nolint: dupl
func (PostUpdater) SetID ¶
func (u PostUpdater) SetID(ID uint) PostUpdater
SetID is an autogenerated method nolint: dupl
func (PostUpdater) SetStr ¶
func (u PostUpdater) SetStr(str tmp.StringDef) PostUpdater
SetStr is an autogenerated method nolint: dupl
func (PostUpdater) SetTitle ¶
func (u PostUpdater) SetTitle(title *string) PostUpdater
SetTitle is an autogenerated method nolint: dupl
func (PostUpdater) SetUpdatedAt ¶
func (u PostUpdater) SetUpdatedAt(updatedAt time.Time) PostUpdater
SetUpdatedAt is an autogenerated method nolint: dupl
func (PostUpdater) SetUser ¶
func (u PostUpdater) SetUser(user User) PostUpdater
SetUser is an autogenerated method nolint: dupl
func (PostUpdater) Update ¶
func (u PostUpdater) Update() error
Update is an autogenerated method nolint: dupl
func (PostUpdater) UpdateNum ¶
func (u PostUpdater) UpdateNum() (int64, error)
UpdateNum is an autogenerated method nolint: dupl
type User ¶
type User struct { gorm.Model //Posts []Post Name string Surname *string `gorm:"column:user_surname"` Email string }
User is a usual user gen:qs
type UserDBSchemaField ¶
type UserDBSchemaField string
UserDBSchemaField describes database schema field. It requires for method 'Update'
func (UserDBSchemaField) OrderAsc ¶ added in v1.0.10
func (f UserDBSchemaField) OrderAsc(qs UserQuerySet) UserQuerySet
func (UserDBSchemaField) OrderDesc ¶ added in v1.0.10
func (f UserDBSchemaField) OrderDesc(qs UserQuerySet) UserQuerySet
func (UserDBSchemaField) String ¶
func (f UserDBSchemaField) String() string
String method returns string representation of field. nolint: dupl
type UserQuerySet ¶
type UserQuerySet struct {
// contains filtered or unexported fields
}
UserQuerySet is an queryset type for User
func NewUserQuerySet ¶
func NewUserQuerySet(db *gorm.DB) UserQuerySet
NewUserQuerySet constructs new UserQuerySet
func (UserQuerySet) All ¶
func (qs UserQuerySet) All(ret *[]User) error
All is an autogenerated method nolint: dupl
func (UserQuerySet) Count ¶
func (qs UserQuerySet) Count() (int64, error)
Count is an autogenerated method nolint: dupl
func (UserQuerySet) CreatedAtEq ¶
func (qs UserQuerySet) CreatedAtEq(createdAt time.Time) UserQuerySet
CreatedAtEq is an autogenerated method nolint: dupl
func (UserQuerySet) CreatedAtGt ¶
func (qs UserQuerySet) CreatedAtGt(createdAt time.Time) UserQuerySet
CreatedAtGt is an autogenerated method nolint: dupl
func (UserQuerySet) CreatedAtGte ¶
func (qs UserQuerySet) CreatedAtGte(createdAt time.Time) UserQuerySet
CreatedAtGte is an autogenerated method nolint: dupl
func (UserQuerySet) CreatedAtLt ¶
func (qs UserQuerySet) CreatedAtLt(createdAt time.Time) UserQuerySet
CreatedAtLt is an autogenerated method nolint: dupl
func (UserQuerySet) CreatedAtLte ¶
func (qs UserQuerySet) CreatedAtLte(createdAt time.Time) UserQuerySet
CreatedAtLte is an autogenerated method nolint: dupl
func (UserQuerySet) CreatedAtNe ¶
func (qs UserQuerySet) CreatedAtNe(createdAt time.Time) UserQuerySet
CreatedAtNe is an autogenerated method nolint: dupl
func (UserQuerySet) Delete ¶
func (qs UserQuerySet) Delete() error
Delete is an autogenerated method nolint: dupl
func (UserQuerySet) DeleteNum ¶
func (qs UserQuerySet) DeleteNum() (int64, error)
DeleteNum is an autogenerated method nolint: dupl
func (UserQuerySet) DeleteNumUnscoped ¶
func (qs UserQuerySet) DeleteNumUnscoped() (int64, error)
DeleteNumUnscoped is an autogenerated method nolint: dupl
func (UserQuerySet) EmailEq ¶
func (qs UserQuerySet) EmailEq(email string) UserQuerySet
EmailEq is an autogenerated method nolint: dupl
func (UserQuerySet) EmailGt ¶
func (qs UserQuerySet) EmailGt(email string) UserQuerySet
EmailGt is an autogenerated method nolint: dupl
func (UserQuerySet) EmailGte ¶
func (qs UserQuerySet) EmailGte(email string) UserQuerySet
EmailGte is an autogenerated method nolint: dupl
func (UserQuerySet) EmailIn ¶
func (qs UserQuerySet) EmailIn(email ...string) UserQuerySet
EmailIn is an autogenerated method nolint: dupl
func (UserQuerySet) EmailLike ¶
func (qs UserQuerySet) EmailLike(email string) UserQuerySet
EmailLike is an autogenerated method nolint: dupl
func (UserQuerySet) EmailLt ¶
func (qs UserQuerySet) EmailLt(email string) UserQuerySet
EmailLt is an autogenerated method nolint: dupl
func (UserQuerySet) EmailLte ¶
func (qs UserQuerySet) EmailLte(email string) UserQuerySet
EmailLte is an autogenerated method nolint: dupl
func (UserQuerySet) EmailNe ¶
func (qs UserQuerySet) EmailNe(email string) UserQuerySet
EmailNe is an autogenerated method nolint: dupl
func (UserQuerySet) EmailNotIn ¶
func (qs UserQuerySet) EmailNotIn(email ...string) UserQuerySet
EmailNotIn is an autogenerated method nolint: dupl
func (UserQuerySet) EmailNotlike ¶
func (qs UserQuerySet) EmailNotlike(email string) UserQuerySet
EmailNotlike is an autogenerated method nolint: dupl
func (UserQuerySet) GetDB ¶
func (qs UserQuerySet) GetDB() *gorm.DB
GetDB is an autogenerated method nolint: dupl
func (UserQuerySet) GetUpdater ¶
func (qs UserQuerySet) GetUpdater() UserUpdater
GetUpdater is an autogenerated method nolint: dupl
func (UserQuerySet) IDEq ¶
func (qs UserQuerySet) IDEq(ID uint) UserQuerySet
IDEq is an autogenerated method nolint: dupl
func (UserQuerySet) IDGt ¶
func (qs UserQuerySet) IDGt(ID uint) UserQuerySet
IDGt is an autogenerated method nolint: dupl
func (UserQuerySet) IDGte ¶
func (qs UserQuerySet) IDGte(ID uint) UserQuerySet
IDGte is an autogenerated method nolint: dupl
func (UserQuerySet) IDIn ¶
func (qs UserQuerySet) IDIn(ID ...uint) UserQuerySet
IDIn is an autogenerated method nolint: dupl
func (UserQuerySet) IDLt ¶
func (qs UserQuerySet) IDLt(ID uint) UserQuerySet
IDLt is an autogenerated method nolint: dupl
func (UserQuerySet) IDLte ¶
func (qs UserQuerySet) IDLte(ID uint) UserQuerySet
IDLte is an autogenerated method nolint: dupl
func (UserQuerySet) IDNe ¶
func (qs UserQuerySet) IDNe(ID uint) UserQuerySet
IDNe is an autogenerated method nolint: dupl
func (UserQuerySet) IDNotIn ¶
func (qs UserQuerySet) IDNotIn(ID ...uint) UserQuerySet
IDNotIn is an autogenerated method nolint: dupl
func (UserQuerySet) Limit ¶
func (qs UserQuerySet) Limit(limit int) UserQuerySet
Limit is an autogenerated method nolint: dupl
func (UserQuerySet) NameEq ¶
func (qs UserQuerySet) NameEq(name string) UserQuerySet
NameEq is an autogenerated method nolint: dupl
func (UserQuerySet) NameGt ¶
func (qs UserQuerySet) NameGt(name string) UserQuerySet
NameGt is an autogenerated method nolint: dupl
func (UserQuerySet) NameGte ¶
func (qs UserQuerySet) NameGte(name string) UserQuerySet
NameGte is an autogenerated method nolint: dupl
func (UserQuerySet) NameIn ¶
func (qs UserQuerySet) NameIn(name ...string) UserQuerySet
NameIn is an autogenerated method nolint: dupl
func (UserQuerySet) NameLike ¶
func (qs UserQuerySet) NameLike(name string) UserQuerySet
NameLike is an autogenerated method nolint: dupl
func (UserQuerySet) NameLt ¶
func (qs UserQuerySet) NameLt(name string) UserQuerySet
NameLt is an autogenerated method nolint: dupl
func (UserQuerySet) NameLte ¶
func (qs UserQuerySet) NameLte(name string) UserQuerySet
NameLte is an autogenerated method nolint: dupl
func (UserQuerySet) NameNe ¶
func (qs UserQuerySet) NameNe(name string) UserQuerySet
NameNe is an autogenerated method nolint: dupl
func (UserQuerySet) NameNotIn ¶
func (qs UserQuerySet) NameNotIn(name ...string) UserQuerySet
NameNotIn is an autogenerated method nolint: dupl
func (UserQuerySet) NameNotlike ¶
func (qs UserQuerySet) NameNotlike(name string) UserQuerySet
NameNotlike is an autogenerated method nolint: dupl
func (UserQuerySet) Offset ¶
func (qs UserQuerySet) Offset(offset int) UserQuerySet
Offset is an autogenerated method nolint: dupl
func (UserQuerySet) One ¶
func (qs UserQuerySet) One(ret *User) error
One is used to retrieve one result. It returns gorm.ErrRecordNotFound if nothing was fetched
func (UserQuerySet) OrderAscByCreatedAt ¶
func (qs UserQuerySet) OrderAscByCreatedAt() UserQuerySet
OrderAscByCreatedAt is an autogenerated method nolint: dupl
func (UserQuerySet) OrderAscByEmail ¶
func (qs UserQuerySet) OrderAscByEmail() UserQuerySet
OrderAscByEmail is an autogenerated method nolint: dupl
func (UserQuerySet) OrderAscByID ¶
func (qs UserQuerySet) OrderAscByID() UserQuerySet
OrderAscByID is an autogenerated method nolint: dupl
func (UserQuerySet) OrderAscByName ¶
func (qs UserQuerySet) OrderAscByName() UserQuerySet
OrderAscByName is an autogenerated method nolint: dupl
func (UserQuerySet) OrderAscBySurname ¶
func (qs UserQuerySet) OrderAscBySurname() UserQuerySet
OrderAscBySurname is an autogenerated method nolint: dupl
func (UserQuerySet) OrderAscByUpdatedAt ¶
func (qs UserQuerySet) OrderAscByUpdatedAt() UserQuerySet
OrderAscByUpdatedAt is an autogenerated method nolint: dupl
func (UserQuerySet) OrderDescByCreatedAt ¶
func (qs UserQuerySet) OrderDescByCreatedAt() UserQuerySet
OrderDescByCreatedAt is an autogenerated method nolint: dupl
func (UserQuerySet) OrderDescByEmail ¶
func (qs UserQuerySet) OrderDescByEmail() UserQuerySet
OrderDescByEmail is an autogenerated method nolint: dupl
func (UserQuerySet) OrderDescByID ¶
func (qs UserQuerySet) OrderDescByID() UserQuerySet
OrderDescByID is an autogenerated method nolint: dupl
func (UserQuerySet) OrderDescByName ¶
func (qs UserQuerySet) OrderDescByName() UserQuerySet
OrderDescByName is an autogenerated method nolint: dupl
func (UserQuerySet) OrderDescBySurname ¶
func (qs UserQuerySet) OrderDescBySurname() UserQuerySet
OrderDescBySurname is an autogenerated method nolint: dupl
func (UserQuerySet) OrderDescByUpdatedAt ¶
func (qs UserQuerySet) OrderDescByUpdatedAt() UserQuerySet
OrderDescByUpdatedAt is an autogenerated method nolint: dupl
func (UserQuerySet) PreloadDeletedAt ¶
func (qs UserQuerySet) PreloadDeletedAt() UserQuerySet
PreloadDeletedAt is an autogenerated method nolint: dupl
func (UserQuerySet) Select ¶
func (qs UserQuerySet) Select(fields ...UserDBSchemaField) UserQuerySet
func (UserQuerySet) SurnameEq ¶
func (qs UserQuerySet) SurnameEq(surname string) UserQuerySet
SurnameEq is an autogenerated method nolint: dupl
func (UserQuerySet) SurnameGt ¶
func (qs UserQuerySet) SurnameGt(surname string) UserQuerySet
SurnameGt is an autogenerated method nolint: dupl
func (UserQuerySet) SurnameGte ¶
func (qs UserQuerySet) SurnameGte(surname string) UserQuerySet
SurnameGte is an autogenerated method nolint: dupl
func (UserQuerySet) SurnameIn ¶
func (qs UserQuerySet) SurnameIn(surname ...string) UserQuerySet
SurnameIn is an autogenerated method nolint: dupl
func (UserQuerySet) SurnameIsNotNull ¶
func (qs UserQuerySet) SurnameIsNotNull() UserQuerySet
SurnameIsNotNull is an autogenerated method nolint: dupl
func (UserQuerySet) SurnameIsNull ¶
func (qs UserQuerySet) SurnameIsNull() UserQuerySet
SurnameIsNull is an autogenerated method nolint: dupl
func (UserQuerySet) SurnameLike ¶
func (qs UserQuerySet) SurnameLike(surname string) UserQuerySet
SurnameLike is an autogenerated method nolint: dupl
func (UserQuerySet) SurnameLt ¶
func (qs UserQuerySet) SurnameLt(surname string) UserQuerySet
SurnameLt is an autogenerated method nolint: dupl
func (UserQuerySet) SurnameLte ¶
func (qs UserQuerySet) SurnameLte(surname string) UserQuerySet
SurnameLte is an autogenerated method nolint: dupl
func (UserQuerySet) SurnameNe ¶
func (qs UserQuerySet) SurnameNe(surname string) UserQuerySet
SurnameNe is an autogenerated method nolint: dupl
func (UserQuerySet) SurnameNotIn ¶
func (qs UserQuerySet) SurnameNotIn(surname ...string) UserQuerySet
SurnameNotIn is an autogenerated method nolint: dupl
func (UserQuerySet) SurnameNotlike ¶
func (qs UserQuerySet) SurnameNotlike(surname string) UserQuerySet
SurnameNotlike is an autogenerated method nolint: dupl
func (UserQuerySet) UpdatedAtEq ¶
func (qs UserQuerySet) UpdatedAtEq(updatedAt time.Time) UserQuerySet
UpdatedAtEq is an autogenerated method nolint: dupl
func (UserQuerySet) UpdatedAtGt ¶
func (qs UserQuerySet) UpdatedAtGt(updatedAt time.Time) UserQuerySet
UpdatedAtGt is an autogenerated method nolint: dupl
func (UserQuerySet) UpdatedAtGte ¶
func (qs UserQuerySet) UpdatedAtGte(updatedAt time.Time) UserQuerySet
UpdatedAtGte is an autogenerated method nolint: dupl
func (UserQuerySet) UpdatedAtLt ¶
func (qs UserQuerySet) UpdatedAtLt(updatedAt time.Time) UserQuerySet
UpdatedAtLt is an autogenerated method nolint: dupl
func (UserQuerySet) UpdatedAtLte ¶
func (qs UserQuerySet) UpdatedAtLte(updatedAt time.Time) UserQuerySet
UpdatedAtLte is an autogenerated method nolint: dupl
func (UserQuerySet) UpdatedAtNe ¶
func (qs UserQuerySet) UpdatedAtNe(updatedAt time.Time) UserQuerySet
UpdatedAtNe is an autogenerated method nolint: dupl
type UserReturnListType ¶ added in v1.0.10
UserReturnListType is used to build a JSON list response based on a single validated instance of User
type UserReturnType ¶ added in v1.0.10
UserReturnListType is used to build a JSON response based on a single validated instance of User
type UserUpdater ¶
type UserUpdater struct {
// contains filtered or unexported fields
}
UserUpdater is an User updates manager
func NewUserUpdater ¶
func NewUserUpdater(db *gorm.DB) UserUpdater
NewUserUpdater creates new User updater nolint: dupl
func (UserUpdater) SetCreatedAt ¶
func (u UserUpdater) SetCreatedAt(createdAt time.Time) UserUpdater
SetCreatedAt is an autogenerated method nolint: dupl
func (UserUpdater) SetDeletedAt ¶
func (u UserUpdater) SetDeletedAt(deletedAt gorm.DeletedAt) UserUpdater
SetDeletedAt is an autogenerated method nolint: dupl
func (UserUpdater) SetEmail ¶
func (u UserUpdater) SetEmail(email string) UserUpdater
SetEmail is an autogenerated method nolint: dupl
func (UserUpdater) SetID ¶
func (u UserUpdater) SetID(ID uint) UserUpdater
SetID is an autogenerated method nolint: dupl
func (UserUpdater) SetName ¶
func (u UserUpdater) SetName(name string) UserUpdater
SetName is an autogenerated method nolint: dupl
func (UserUpdater) SetSurname ¶
func (u UserUpdater) SetSurname(surname *string) UserUpdater
SetSurname is an autogenerated method nolint: dupl
func (UserUpdater) SetUpdatedAt ¶
func (u UserUpdater) SetUpdatedAt(updatedAt time.Time) UserUpdater
SetUpdatedAt is an autogenerated method nolint: dupl
func (UserUpdater) Update ¶
func (u UserUpdater) Update() error
Update is an autogenerated method nolint: dupl
func (UserUpdater) UpdateNum ¶
func (u UserUpdater) UpdateNum() (int64, error)
UpdateNum is an autogenerated method nolint: dupl