histories

package
v0.0.0-...-db28b0c Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const EndPoint = "histories"

Variables

This section is empty.

Functions

func Get

func Get(ctx *app.Ctx, query url.Values) (app.ListModel, error)

func GetByIDHandler

func GetByIDHandler(c *fiber.Ctx) error

func GetListHandler

func GetListHandler(c *fiber.Ctx) error

Types

type Histories

type Histories struct {
	db.Model
	ID               db.NullUUID     `json:"id"                 db:"k.id"             gorm:"column:id"`
	EndPoint         db.NullString   `json:"end_point"          db:"k.end_point"      gorm:"column:end_point"`
	Method           db.NullString   `json:"method"             db:"k.method"         gorm:"column:method"`
	Description      db.NullString   `json:"description"        db:"k.description"    gorm:"column:description"`
	DataID           db.NullString   `json:"data_id"            db:"k.data_id"        gorm:"column:data_id"`
	UserID           db.NullString   `json:"user.id"            db:"k.user_id"        gorm:"column:user_id"`
	UserUsername     db.NullString   `json:"user.username"      db:"u.username"       gorm:"-"`
	UserJobTitle     db.NullString   `json:"user.jobtitle"      db:"u.job_title"      gorm:"-"`
	UserFirstName    db.NullString   `json:"user.firstname"     db:"u.first_name"     gorm:"-"`
	UserLastName     db.NullString   `json:"user.email"         db:"u.last_name"      gorm:"-"`
	UserPhone        db.NullString   `json:"user.phone"         db:"u.phone"          gorm:"-"`
	UserPicture      db.NullString   `json:"user.picture"       db:"u.picture"        gorm:"-"`
	UserStaffPmkId   db.NullInt64    `json:"user.staff_pmk_id"  db:"u.staff_pmk_id"   gorm:"-"`
	UserEmail        db.NullString   `json:"user.email"         db:"u.email"          gorm:"-"`
	UserLdapUsername db.NullString   `json:"user.ldap_username" db:"u.ldap_username"  gorm:"-"`
	OldValue         db.NullJSON     `json:"old_value"          db:"k.old_value~json" gorm:"column:old_value"`
	NewValue         db.NullJSON     `json:"new_value"          db:"k.new_value~json" gorm:"column:new_value"`
	CreatedAt        db.NullDateTime `json:"created_at"         db:"k.created_at"     gorm:"column:created_at"`
	UpdatedAt        db.NullDateTime `json:"updated_at"         db:"k.updated_at"     gorm:"column:updated_at"`
}

func GetByID

func GetByID(ctx *app.Ctx, id string, query url.Values) (Histories, error)

func (*Histories) SetFilter

func (k *Histories) SetFilter()

func (*Histories) SetRelation

func (k *Histories) SetRelation()

func (*Histories) SetSort

func (k *Histories) SetSort()

func (Histories) TableAliasName

func (Histories) TableAliasName() string

func (Histories) TableName

func (Histories) TableName() string

func (Histories) TableVersion

func (Histories) TableVersion() string

type HistoriesList

type HistoriesList struct {
	app.ListModel
	Results []Histories `json:"results"`
}

Jump to

Keyboard shortcuts

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