model

package
v0.0.0-...-aea9c82 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cadangan

type Cadangan struct {
	gorm.Model         `swaggerignore:"true"`
	ID                 int          `gorm:"column:id;primaryKey" json:"id"`
	CadanganTypeID     int          `gorm:"column:cadangan_types_id" json:"-"`
	CadanganType       CadanganType `gorm:"foreignKey:CadanganTypeID" json:"cadanganType"`
	CadanganText       string       `gorm:"column:cadangan_text" json:"cadanganText"`
	TindakanText       string       `gorm:"column:tindakan_text" json:"tindakanText"`
	CadanganNama       string       `gorm:"column:cadangan_nama" json:"cadanganNama"`
	CadanganEmail      string       `gorm:"column:cadangan_email" json:"cadanganEmail"`
	CadanganPhone      string       `gorm:"column:cadangan_phone" json:"cadanganPhone"`
	IsOpen             bool         `gorm:"column:is_open" json:"isOpen"`
	Score              int          `gorm:"column:score" json:"score"`
	CreateDate         int64        `gorm:"column:create_date" json:"createDate"`
	gorm2.MultiTenancy `swaggerignore:"true"`
}

func (Cadangan) TableName

func (Cadangan) TableName() string

type CadanganType

type CadanganType struct {
	gorm.Model         `swaggerignore:"true"`
	ID                 int    `gorm:"column:id;primaryKey" json:"id"`
	Name               string `gorm:"column:name" json:"name"`
	gorm2.MultiTenancy `swaggerignore:"true"`
}

func (CadanganType) TableName

func (CadanganType) TableName() string

type Paginate

type Paginate struct {
	Page int `json:"page"`
	Size int `json:"size"`
}

type Response

type Response struct {
	Content interface{} `json:"content"`
	Total   int         `json:"total"`
}

Jump to

Keyboard shortcuts

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