|
|
@@ -5,7 +5,7 @@ import (
|
|
|
"dashoo.cn/common_definition/comm_def"
|
|
|
model "dashoo.cn/micro/app/model/home"
|
|
|
service "dashoo.cn/micro/app/service/home"
|
|
|
- "github.com/gogf/gf/os/gtime"
|
|
|
+ "github.com/gogf/gf/util/gvalid"
|
|
|
)
|
|
|
|
|
|
type HomeHandler struct{}
|
|
|
@@ -92,12 +92,15 @@ func (h *HomeHandler) GetWechatHomeNumReportData(ctx context.Context, req *model
|
|
|
}
|
|
|
|
|
|
// GetSalesEngineerFollowUpNum 统计销售工程师跟进记录频次
|
|
|
-func (h *HomeHandler) GetSalesEngineerFollowUpNum(ctx context.Context, nullParams interface{}, rsp *comm_def.CommonMsg) error {
|
|
|
+func (h *HomeHandler) GetSalesEngineerFollowUpNum(ctx context.Context, req *model.SearchFollowUpReportData, rsp *comm_def.CommonMsg) error {
|
|
|
svc, err := service.NewHomeService(ctx)
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
- resp, err := svc.QuerySalesEngineerFollowUpNum(gtime.Now())
|
|
|
+ if err := gvalid.CheckStruct(ctx, req, nil); err != nil {
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ resp, err := svc.QuerySalesEngineerFollowUpNum(req.Month)
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|