From c5a0eb549cba2cd358a2d0496c44f3a289f15d9c Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期一, 28 八月 2023 14:22:06 +0800 Subject: [PATCH] fix --- api/v1/salesLeads.go | 26 +++++++++++++++++++++++++- 1 files changed, 25 insertions(+), 1 deletions(-) diff --git a/api/v1/salesLeads.go b/api/v1/salesLeads.go index af5f778..1e751b5 100644 --- a/api/v1/salesLeads.go +++ b/api/v1/salesLeads.go @@ -131,6 +131,7 @@ RegionId: params.RegionId, CountryId: params.CountryId, }, + DetailAddress: params.DetailAddress, } return ecode.OK, salesLeads @@ -151,7 +152,7 @@ return } - salesLeadss, total, errCode := salesLeadsService.GetSalesLeadsList(params.Page, params.PageSize, params.Keyword) + salesLeadss, total, errCode := salesLeadsService.GetSalesLeadsList(params.Page, params.PageSize, params.SearchMap) if errCode != ecode.OK { ctx.Fail(errCode) return @@ -162,3 +163,26 @@ Count: int(total), }) } + +// Push +// +// @Tags SalesLeads +// @Summary 鎺ㄨ繘閿�鍞嚎绱� +// @Produce application/json +// @Param object body request.PushSalesLeads true "鏌ヨ鍙傛暟" +// @Success 200 {object} contextx.Response{} +// @Router /api/salesLeads/push [post] +func (s *SalesLeadsApi) Push(c *gin.Context) { + var params request.PushSalesLeads + ctx, ok := contextx.NewContext(c, ¶ms) + if !ok { + return + } + + errCode := salesLeadsService.PushSalesLeads(params.Id, params.Step, params.Reason) + if errCode != ecode.OK { + ctx.Fail(errCode) + return + } + ctx.Ok() +} -- Gitblit v1.8.0