Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
DeleteUser deletes User by Id and returns error if the record to be deleted doesn't exist
func GetAllUser ¶
func GetAllUser(query map[string]string, fields []string, sortby []string, order []string, offset int64, limit int64) (ml []interface{}, err error)
GetAllUser retrieves all User matches certain condition. Returns empty list if no records exist
func UpdateUserById ¶
UpdateUserById updates User by Id and returns error if the record to be updated doesn't exist
Types ¶
type Base ¶
type Base struct { UUID uuid.UUID `gorm:"type:uuid;" json:"uuid"` OwnerID string `json:"owner_id"` CreatedAt time.Time `orm:"auto_now_add;type(datetime)" json:"created_at"` UpdatedAt time.Time `orm:"auto_now;type(datetime)" json:"updated_at"` DeletedAt *time.Time `sql:"index"` }
Base contains common columns for all tables.
Click to show internal directories.
Click to hide internal directories.