Documentation ¶
Index ¶
- Variables
- func AddBin(user_id int) (int, error)
- func AddWaste(waste_name string, bin_id string, type_id int, image []byte) error
- func SearchWasteType(waste_name string) (int, error)
- func UpdateBinStatus(bin_id int, status_id int, angel float32, term float32) error
- func UpdateUserScore(user_id int, score int) error
- type Bin
- type BinWasteRelation
- type DBconfig
- type User
- type UserBinRelation
- type Waste
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func UpdateBinStatus ¶
修改垃圾桶状态 bins
Types ¶
type Bin ¶
type Bin struct { Bin_id int `gorm:"column:bin_id;primary_key;AUTO_INCREMENT"` Status int `gorm:"column:status;"` Start_time int `gorm:"column:start_time;"` Ip_address string `gorm:"column:ip_address;"` Angel float32 `gorm:"column:angel;"` Temp float32 `gorm:"column:temp;"` Comments string `gorm:"column:comment;"` }
type BinWasteRelation ¶
type UserBinRelation ¶
Click to show internal directories.
Click to hide internal directories.