Documentation ¶
Index ¶
- Constants
- func Create(ctx *app.Ctx, param *ParamCreate) error
- func CreateHandler(c *fiber.Ctx) error
- func DeleteByID(ctx *app.Ctx, id string, param ParamDelete) error
- func DeleteByIDHandler(c *fiber.Ctx) error
- func Get(ctx *app.Ctx, query url.Values) (app.ListModel, error)
- func GetByIDHandler(c *fiber.Ctx) error
- func GetListHandler(c *fiber.Ctx) error
- func PartialyUpdateByID(ctx *app.Ctx, id string, param *ParamPartialyUpdate) error
- func PartialyUpdateByIDHandler(c *fiber.Ctx) error
- func UpdateByID(ctx *app.Ctx, id string, param *ParamUpdate) error
- func UpdateByIDHandler(c *fiber.Ctx) error
- type Karyawan
- type KaryawanList
- type ParamCreate
- type ParamDelete
- type ParamPartialyUpdate
- type ParamUpdate
Constants ¶
View Source
const EndPoint = "karyawan"
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
func CreateHandler(c *fiber.Ctx) error
func DeleteByID ¶
func DeleteByID(ctx *app.Ctx, id string, param ParamDelete) error
func DeleteByIDHandler ¶
func DeleteByIDHandler(c *fiber.Ctx) error
func GetByIDHandler ¶
func GetByIDHandler(c *fiber.Ctx) error
func GetListHandler ¶
func GetListHandler(c *fiber.Ctx) error
func PartialyUpdateByID ¶
func PartialyUpdateByID(ctx *app.Ctx, id string, param *ParamPartialyUpdate) error
func PartialyUpdateByIDHandler ¶
func PartialyUpdateByIDHandler(c *fiber.Ctx) error
func UpdateByID ¶
func UpdateByID(ctx *app.Ctx, id string, param *ParamUpdate) error
func UpdateByIDHandler ¶
func UpdateByIDHandler(c *fiber.Ctx) error
Types ¶
type Karyawan ¶
type Karyawan struct { db.Model ID db.NullInt64 `json:"id" db:"k.dk_id" gorm:"column:dk_id;primaryKey" form:"id"` NIK db.NullString `json:"nik" db:"k.dk_nik" gorm:"column:dk_nik" form:"nik"` FullName db.NullString `json:"fullname" db:"k.dk_fullname" gorm:"column:dk_fullname" form:"fullname"` JobPosition db.NullString `json:"job_position" db:"k.dk_jabatan" gorm:"column:dk_jabatan" form:"job_position"` JobLevel db.NullString `json:"job_level" db:"k.dk_pangkat" gorm:"column:dk_pangkat" form:"job_level"` Email db.NullString `json:"email" db:"k.dk_email" gorm:"column:dk_email" form:"email"` }
func (*Karyawan) SetRelation ¶
func (k *Karyawan) SetRelation()
func (Karyawan) TableAliasName ¶
func (Karyawan) TableVersion ¶
type KaryawanList ¶
type ParamCreate ¶
type ParamCreate struct { Karyawan NIK db.NullString `json:"nik" db:"k.dk_nik" gorm:"column:dk_nik" validate:"required" form:"nik"` FullName db.NullString `json:"fullname" db:"k.dk_fullname" gorm:"column:dk_fullname" validate:"required" form:"fullname"` Email db.NullString `json:"email" db:"k.dk_email" gorm:"column:dk_email" validate:"required" form:"email"` }
type ParamDelete ¶
type ParamDelete struct { Karyawan Reason db.NullString `json:"reason" gorm:"-" validate:"required" form:"reason"` }
type ParamPartialyUpdate ¶
type ParamPartialyUpdate struct { Karyawan Reason db.NullString `json:"reason" gorm:"-" validate:"required" form:"reason"` }
type ParamUpdate ¶
type ParamUpdate struct { ParamCreate Reason db.NullString `json:"reason" gorm:"-" validate:"required" form:"reason"` }
Click to show internal directories.
Click to hide internal directories.