Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type District ¶
type District struct { ID string `json:"id"` RegencyID string `json:"regency_id"` Name string `json:"name"` }
District struct for table district
type Regency ¶
type Regency struct { ID string `json:"id"` ProvinceID string `json:"province_id"` Name string `json:"name"` }
Regency struct for table regency
type Room ¶
type Room struct { Name string `json:"name,omitempty" validate:"required"` Quota int `json:"quota,omitempty" validate:"required"` gorm.Model }
Room struct for table room
type RoomModel ¶
type RoomModel struct{}
RoomModel struct for setting this file like class
func (RoomModel) DeleteRoom ¶
DeleteRoom function delete data in table
func (RoomModel) InsertRoom ¶
InsertRoom function insert data in table room
Click to show internal directories.
Click to hide internal directories.