package model //盘点 type Stock struct { ID int `gorm:"column:id" json:"id"` PastureId int `gorm:"column:pastureId" json:"pastureId"` DepartmentId int `gorm:"column:departmentId" json:"departmentId"` EqId int `gorm:"column:eqId" json:"eqId"` RzDate string `gorm:"column:rzdate" json:"rzdate"` Unit string `gorm:"column:unit" json:"unit"` Specification string `gorm:"column:specification" json:"specification"` Quantity string `gorm:"column:quantity" json:"quantity"` Yuanzhi string `gorm:"column:yuanzhi" json:"yuanzhi"` Count string `gorm:"column:count" json:"count"` Profit string `gorm:"column:profit" json:"profit"` Tag string `gorm:"column:tag" json:"tag"` ImportDate string `gorm:"column:importdate" json:"importdate"` InventoryDate string `gorm:"column:inventorydate" json:"inventorydate"` CheckTaker string `gorm:"column:checktaker" json:"checktaker"` Remark string `gorm:"column:remark" json:"remark"` CreateDate string `gorm:"column:createdate" json:"createdate"` } func (Stock) TableName() string { return "stock" } type StockAndPasture struct { Stock `xorm:"extends"` Pasture `xorm:"extends"` Department `xorm:"extends"` Equipment `xorm:"extends"` Emp `xorm:"extends"` } type GetStockListReq struct { PastureId string `json:"pastureId"` DepartmentId string `json:"departmentId"` Offset int `json:"offset"` Pagecount int `json:"pagecount"` StartDate string `json:"startdate"` EndDate string `json:"enddate"` } type GetStockListResp struct { StockList []*StockInfo `json:"list"` Count int64 `json:"count"` Offset int `json:"offset"` Pagecount int `json:"pagecount"` } type StockInfo struct { ID int `json:"id"` PastureId int `json:"pastureId"` PastureName string `json:"pastureName"` DepartmentId int `json:"departmentId"` DepartmentName string `json:"departmentName"` EqId int `json:"eqId"` EqCode string `json:"eqCode"` EqName string `json:"eqName"` AssetCode string `json:"assetCode"` RzDate string `json:"rzdate"` Unit string `json:"unit"` Specification string `json:"specification"` Quantity string `json:"quantity"` Yuanzhi string `json:"yuanzhi"` Count string `json:"count"` Profit string `json:"profit"` Tag string `json:"tag"` ImportDate string `json:"importdate"` InventoryDate string `json:"inventorydate"` CheckTaker string `json:"checkTaker"` CheckTakerName string `json:"checkTakerName"` Remark string `json:"remark"` Status int `json:"status"` // 0 未盘点 1 已盘点 } type DelStockListReq struct { Id []int `json:"id"` }