package goods func (Service) TableName() string { return "service" } // Service 结构体表示服务信息 type Service struct { ID int `json:"id"` // 服务ID Name string `json:"name"` // 服务名称 Image string `json:"image"` // 服务图片 GoodsID int `json:"goods_id"` // 商品ID Description string `json:"description"` // 服务描述 }