From 96b51697d8343f3a8b54f769c92dfac5025ec5ce Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 28 Aug 2024 15:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E5=91=8A=E4=BD=8D=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_account.go | 4 ++-- app/hdl/hdl_applet_application_ad_space_list.go | 4 ++-- app/md/md__applet_application_ad_space_list.go | 1 + app/svc/svc_applet_application_ad_space.go | 2 +- go.mod | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/hdl/hdl_account.go b/app/hdl/hdl_account.go index dfbe949..5cba1bc 100644 --- a/app/hdl/hdl_account.go +++ b/app/hdl/hdl_account.go @@ -23,9 +23,9 @@ func AccountBase(c *gin.Context) { } // AccountUpdatePassword -// @Summary 企业认证保存 +// @Summary 修改密码保存 // @Tags 账号中心------嘉俊 -// @Description 资质认证-企业认证保存 +// @Description 资质认证-修改密码保存 // @param Authorization header string true "验证参数Bearer和token空格拼接" // @Accept json // @Produce json diff --git a/app/hdl/hdl_applet_application_ad_space_list.go b/app/hdl/hdl_applet_application_ad_space_list.go index 9d31848..3b18c8e 100644 --- a/app/hdl/hdl_applet_application_ad_space_list.go +++ b/app/hdl/hdl_applet_application_ad_space_list.go @@ -15,7 +15,7 @@ import ( // @Param args body md.AppletApplicationAdSpaceListReq true "请求参数" // @Success 200 {object} md.AppletApplicationAdSpaceListRes "具体看返回内容---这是data里面的数据" // @Failure 400 {object} md.Response "具体错误" -// @Router /api/applet/application/ad/space/list [POST] +// @Router /api/application/applet/ad/space/list [POST] func AppletApplicationAdSpaceList(c *gin.Context) { svc.AppletApplicationAdSpaceList(c) } @@ -30,7 +30,7 @@ func AppletApplicationAdSpaceList(c *gin.Context) { // @Param args body md.AppletApplicationAdSpaceSaveReq true "请求参数" // @Success 200 {string} "具体看返回内容" // @Failure 400 {object} md.Response "具体错误" -// @Router /api/applet/application/ad/space/save [POST] +// @Router /api/application/applet/ad/space/save [POST] func AppletApplicationAdSpaceSave(c *gin.Context) { svc.AppletApplicationAdSpaceSave(c) } diff --git a/app/md/md__applet_application_ad_space_list.go b/app/md/md__applet_application_ad_space_list.go index a3c2eb2..af59a89 100644 --- a/app/md/md__applet_application_ad_space_list.go +++ b/app/md/md__applet_application_ad_space_list.go @@ -5,6 +5,7 @@ type AppletApplicationAdSpaceListReq struct { Page string `json:"page" ` Name string `json:"name"` CooperateState string `json:"cooperate_state" example:"合作状态"` + AdType string `json:"ad_type" example:"广告位类型"` Platform string `json:"platform"` } type AppletApplicationAdSpaceListRes struct { diff --git a/app/svc/svc_applet_application_ad_space.go b/app/svc/svc_applet_application_ad_space.go index 01ea9e0..259b2d3 100644 --- a/app/svc/svc_applet_application_ad_space.go +++ b/app/svc/svc_applet_application_ad_space.go @@ -25,7 +25,7 @@ func AppletApplicationAdSpaceList(c *gin.Context) { engine := MasterDb(c) NewAppletApplicationDb := implement.NewAppletApplicationAdSpaceListDb(engine) - appletApplicationList, total, _ := NewAppletApplicationDb.FindAppletApplicationAdSpaceList(req.Name, req.Platform, req.CooperateState, user.MediumId, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) + appletApplicationList, total, _ := NewAppletApplicationDb.FindAppletApplicationAdSpaceList(req.Name, req.Platform, req.AdType, req.CooperateState, user.MediumId, utils.StrToInt(req.Page), utils.StrToInt(req.Limit)) data := make([]md.AppletApplicationAdSpaceListData, 0) if len(appletApplicationList) > 0 { for _, v := range appletApplicationList { diff --git a/go.mod b/go.mod index 38f062a..2faa4bf 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.18 //replace code.fnuoos.com/zhimeng/model.git => E:/company/ad/models require ( - code.fnuoos.com/zhimeng/model.git v0.0.3-0.20240823075549-1c4f38afb51c + code.fnuoos.com/zhimeng/model.git v0.0.3-0.20240828073010-6ec681bcb45d github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 github.com/boombuler/barcode v1.0.1 github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5