feat:完善项目
This commit is contained in:
@ -124,7 +124,7 @@ func (*Supplier) MaterialAdd(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
err := manage.NewSupplier()(getSession()(c).(*service.Session)).Form(&manage.SupplierParams{
|
||||
Name: form.Name, Mobile: form.Mobile, Address: form.Address, Remark: form.Remark,
|
||||
Name: form.Name, Mobile: form.Mobile, Contacts: form.Contacts, Address: form.Address, Remark: form.Remark,
|
||||
Kind: model.ManageSupplierKindForMaterial,
|
||||
})
|
||||
APIResponse(err)(c)
|
||||
@ -167,7 +167,7 @@ func (*Supplier) MaterialEdit(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
err := manage.NewSupplier()(getSession()(c).(*service.Session)).Form(&manage.SupplierParams{
|
||||
ID: form.Convert(), Name: form.Name, Mobile: form.Mobile, Address: form.Address, Remark: form.Remark,
|
||||
ID: form.Convert(), Name: form.Name, Contacts: form.Contacts, Mobile: form.Mobile, Address: form.Address, Remark: form.Remark,
|
||||
Kind: model.ManageSupplierKindForMaterial,
|
||||
})
|
||||
APIResponse(err)(c)
|
||||
@ -269,7 +269,7 @@ func (*Supplier) Repair(c *gin.Context) {
|
||||
}
|
||||
data, err := manage.NewSupplier()(getSession()(c).(*service.Session)).
|
||||
List(form.Name, form.Mobile, model.ManageSupplierKindForRepair, form.Page, form.PageSize)
|
||||
APIResponse(err, data)
|
||||
APIResponse(err, data)(c)
|
||||
}
|
||||
|
||||
/**
|
||||
@ -306,7 +306,7 @@ func (*Supplier) RepairAdd(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
err := manage.NewSupplier()(getSession()(c).(*service.Session)).Form(&manage.SupplierParams{
|
||||
Name: form.Name, Mobile: form.Mobile, Address: form.Address, Remark: form.Remark,
|
||||
Name: form.Name, Mobile: form.Mobile, Contacts: form.Contacts, Address: form.Address, Remark: form.Remark,
|
||||
Kind: model.ManageSupplierKindForRepair,
|
||||
})
|
||||
APIResponse(err)(c)
|
||||
@ -349,7 +349,7 @@ func (*Supplier) RepairEdit(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
err := manage.NewSupplier()(getSession()(c).(*service.Session)).Form(&manage.SupplierParams{
|
||||
ID: form.Convert(), Name: form.Name, Mobile: form.Mobile, Address: form.Address, Remark: form.Remark,
|
||||
ID: form.Convert(), Name: form.Name, Contacts: form.Contacts, Mobile: form.Mobile, Address: form.Address, Remark: form.Remark,
|
||||
Kind: model.ManageSupplierKindForRepair,
|
||||
})
|
||||
APIResponse(err)(c)
|
||||
@ -493,7 +493,7 @@ func (*Supplier) ManufacturerAdd(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
err := manage.NewSupplier()(getSession()(c).(*service.Session)).Form(&manage.SupplierParams{
|
||||
Name: form.Name, Mobile: form.Mobile, Address: form.Address, Remark: form.Remark,
|
||||
Name: form.Name, Mobile: form.Mobile, Contacts: form.Contacts, Address: form.Address, Remark: form.Remark,
|
||||
Kind: model.ManageSupplierKindForManufacturer,
|
||||
})
|
||||
APIResponse(err)(c)
|
||||
@ -536,7 +536,7 @@ func (*Supplier) ManufacturerEdit(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
err := manage.NewSupplier()(getSession()(c).(*service.Session)).Form(&manage.SupplierParams{
|
||||
ID: form.Convert(), Name: form.Name, Mobile: form.Mobile, Address: form.Address, Remark: form.Remark,
|
||||
ID: form.Convert(), Name: form.Name, Contacts: form.Contacts, Mobile: form.Mobile, Address: form.Address, Remark: form.Remark,
|
||||
Kind: model.ManageSupplierKindForManufacturer,
|
||||
})
|
||||
APIResponse(err)(c)
|
||||
|
Reference in New Issue
Block a user