feat:完善项目
This commit is contained in:
@ -10,10 +10,19 @@ type ManageMaterial struct {
|
||||
*model.ManageMaterial
|
||||
}
|
||||
|
||||
type ManageMaterialInfo struct {
|
||||
*model.ManageMaterial
|
||||
SupplierName string `json:"supplier_name"`
|
||||
}
|
||||
type (
|
||||
// ManageMaterialBasic 基本信息
|
||||
ManageMaterialBasic struct {
|
||||
Code string `json:"code"`
|
||||
Title string `json:"title"`
|
||||
Unit int `json:"unit"`
|
||||
ManufacturerName string `json:"manufacturer_name"`
|
||||
}
|
||||
ManageMaterialInfo struct {
|
||||
*model.ManageMaterial
|
||||
SupplierName string `json:"supplier_name"`
|
||||
}
|
||||
)
|
||||
|
||||
func (m *ManageMaterial) Materials(page, pageSize int, count *int64, where ...*model.ModelWhere) ([]*ManageMaterialInfo, error) {
|
||||
db := orm.GetDB().Table(m.TableName()+" AS m").
|
||||
|
Reference in New Issue
Block a user