Documentation ¶
Index ¶
- type Machine
- func (y *Machine) Create(u MachineCreateRequest) (id int64, err error)
- func (y Machine) FindAll(page, limit int) (res []MachineResponse, err error)
- func (y *Machine) FindById(id int) (res MachineResponse, err error)
- func (y *Machine) FindByMachineId(machineId string) (res MachineResponse, err error)
- func (y *Machine) FindFirst() (res MachineResponse, err error)
- func (y *Machine) FindLast() (res MachineResponse, err error)
- func (y *Machine) UpdateDisableAccount(id int) (err error)
- func (y *Machine) UpdateEnableAccount(id int) (err error)
- func (y *Machine) UpdateMachineName(id int, machineName string) (err error)
- type MachineCreateRequest
- type MachineResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Machine ¶
func (Machine) FindAll ¶
func (y Machine) FindAll(page, limit int) (res []MachineResponse, err error)
func (*Machine) FindByMachineId ¶
func (y *Machine) FindByMachineId(machineId string) (res MachineResponse, err error)
func (*Machine) FindFirst ¶
func (y *Machine) FindFirst() (res MachineResponse, err error)
func (*Machine) FindLast ¶
func (y *Machine) FindLast() (res MachineResponse, err error)
func (*Machine) UpdateDisableAccount ¶
func (*Machine) UpdateEnableAccount ¶
type MachineCreateRequest ¶
type MachineResponse ¶
type MachineResponse struct { ID int `json:"id" db:"id"` MachineUniqId string `json:"guid" db:"machine_uniqid"` MachineName string `json:"machine_name" db:"machine_name"` MachinePlataform string `json:"machine_plataform" db:"machine_plataform"` Active bool `json:"active" db:"active"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.