blog_backend_api/model/hardware.go

19 lines
376 B
Go
Raw Normal View History

package model
import "time"
// this api is based on elasticsearch
type Hardware struct {
ID int32 `json:"id"`
BuyDate time.Time `json:"buy_date"` //购入时间
Name string `json:"name"` // 名字
Desc string `json:"desc"` // 描述
Pic string `json:"pic"` // 图片
Doc string `json:"doc"` //文档资料
}
func (*Hardware )Create() error{
return nil;
}