feat:完善项目

This commit is contained in:
henry
2021-11-16 11:46:44 +08:00
parent 78128277ff
commit 978918e5aa
14 changed files with 193 additions and 19 deletions

View File

@ -1,7 +1,8 @@
package dashboard
import (
"ArmedPolice/app/controller/basic"
model2 "ArmedPolice/app/common/model"
"ArmedPolice/app/model"
"ArmedPolice/app/service"
)
@ -9,8 +10,10 @@ type Supplier struct{ *service.Session }
type SupplierHandle func(session *service.Session) *Supplier
func (c *Supplier) StaticScore() (*basic.PageDataResponse, error) {
return &basic.PageDataResponse{Data: nil, Count: 0}, nil
func (c *Supplier) StaticEvaluate() (interface{}, error) {
mManageSupplier := model.NewManageSupplier()
out, err := mManageSupplier.Evaluate(model2.ManageSupplierKindForMaterial, 10)
return out, err
}
func NewSupplier() SupplierHandle {