Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Active ... // flag : user is active Active = 1 // InActive ... // flag : user is inactive InActive = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct { PostID int64 `json:"post_id" gorm:"column:post_id;primary_key"` Text string `json:"text" gorm:"column:text" sql:"not null;type:varchar(200)"` ActiveStatus int `json:"active_status" gorm:"column:active_status" sql:"not null;type:tinyint(3)"` CreatedAt time.Time `json:"created_at" gorm:"column:created_at" sql:"not null;type:datetime"` UpdatedAt time.Time `json:"updated_at" gorm:"column:updated_at" sql:"not null;type:datetime"` }
Entity describes user table.
type Repository ¶
type Repository struct {
*model.RootRepository
}
Repository ...
func (*Repository) Create ¶
func (r *Repository) Create(ent *Entity) (*Entity, error)
Create inserts the entity
Click to show internal directories.
Click to hide internal directories.