|
@@ -10,6 +10,7 @@ import (
|
|
|
"hongze/hongze_yb/logic"
|
|
|
"hongze/hongze_yb/models/request"
|
|
|
respond "hongze/hongze_yb/models/response"
|
|
|
+ "hongze/hongze_yb/models/tables/banner"
|
|
|
"hongze/hongze_yb/models/tables/banner_view_history"
|
|
|
"hongze/hongze_yb/models/tables/company"
|
|
|
"hongze/hongze_yb/models/tables/wx_user"
|
|
@@ -425,3 +426,25 @@ func BannerMark(c *gin.Context) {
|
|
|
|
|
|
response.Ok("成功", c)
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+// BannerList banner图列表
|
|
|
+// @Tags 公共模块
|
|
|
+// @Summary banner图列表
|
|
|
+// @Description banner图列表
|
|
|
+// @Security ApiKeyAuth
|
|
|
+// @securityDefinitions.basic BasicAuth
|
|
|
+// @Accept json
|
|
|
+// @Product json
|
|
|
+// @Success 200 {string} string 获取验证码成功
|
|
|
+// @Failure 400 {string} string 请输入邮箱地址
|
|
|
+// @Router /banner/list [get]
|
|
|
+func BannerList(c *gin.Context) {
|
|
|
+ list, err := banner.GetBannerList()
|
|
|
+ if err != nil {
|
|
|
+ response.FailMsg("获取失败", "获取banner失败, Err: "+err.Error(), c)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ response.OkData("获取成功", list, c)
|
|
|
+}
|