From d631c7b6d2a4cb44bc220c02296d94f36eb476b2 Mon Sep 17 00:00:00 2001 From: aarongao Date: Thu, 2 Apr 2020 18:00:45 +0800 Subject: [PATCH] .. --- API/SysAds.go | 20 +++++++++++--------- README.md | 20 +++++++++++--------- Version.md | 2 ++ 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/API/SysAds.go b/API/SysAds.go index 4d6f00f..d2365b4 100644 --- a/API/SysAds.go +++ b/API/SysAds.go @@ -17,7 +17,7 @@ import ( // @Accept json // @Produce json // @Param id 5dfb03070a9ac17ac7a82054 string true "id" -// @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":{"Id":"5e82d2539561231535f72958","Title":"系统广告2","Url":"http://www.google.cn","CreateTime":1585631827,"UpdateTime":0,"Expiry":1585670400,"ExpiryString":"今天"}}" +// @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":{"Id":"5e858c09b1d67b2d117e2e58","Site":"景区选择页","Size":{"Width":100,"Height":100},"Type":"轮播","Picture":[{"Src":"/Upload/1585820891339307000.png","Link":"222"}],"Video":[]}}" // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" // @Router /SysAds/Info? [get] func SysAdsInfo(c *gin.Context) { @@ -38,7 +38,7 @@ func SysAdsInfo(c *gin.Context) { // @Description 查询系统广告-列表 // @Accept json // @Produce json -// @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":[{"Id":"5e82c27f41914b0fdcac489f","Title":"系统广告","Url":"http://www.google.cn","CreateTime":1585627775,"UpdateTime":0,"Expiry":1585670400,"ExpiryString":"今天"}...]}" +// @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":[{"Id":"5e858c09b1d67b2d117e2e58","Site":"景区选择页","Size":{"Width":100,"Height":100},"Type":"轮播","Picture":[{"Src":"/Upload/1585820891339307000.png","Link":"222"}],"Video":[]}]}" // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" // @Router /SysAds/List? [get] func SysAdsList(c *gin.Context) { @@ -67,15 +67,17 @@ func SysAdsList(c *gin.Context) { } -// @Title 修改系统广告 -// @Description 修改系统广告 +// @Title 修改平台广告 +// @Description 修改平台广告 // @Accept json // @Produce json -// @Param id 5dfb03070a9ac17ac7a82054 string true "系统广告id" -// @Param ScenicId wgergejfwe string true "景区id" -// @Param Title 营业时间系统广告 string true "系统广告名称" -// @Param Url http://abc.com string true "系统广告链接" -// @Param ExpiryString http://abc.com string true "有效期(15分钟|1小时|今天|今年)" +// @Param id 5dfb03070a9ac17ac7a82054 string true "平台广告id" +// @Param Site Height string true "位置" +// @Param Height 100 string true "尺寸" +// @Param Width 100 string true "尺寸" +// @Param Type 单视频 string true "类型(轮播|单图|单视频)" +// @Param Picture [{"Src":"/Upload/1585820891339307000.png","Link":"222"}] string true "图片" +// @Param Video [{"Src":"../plugins/images/defaultpic.png","Link":"22","Title":"22","VideoPicture":"/Upload/1585821569540095000.png"}] string true "视频" // @Param Token wgergejfwe string true "用户token" // @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":"ok"}" // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" diff --git a/README.md b/README.md index 899d329..5dbd49d 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ 1. [发送短信验证码](#sms-send-post) 1. [查询系统广告-单条](#sysads-info-get) 1. [查询系统广告-列表](#sysads-list-get) -1. [修改系统广告](#sysads-modify-post) +1. [修改平台广告](#sysads-modify-post) 1. [查询系统信息接口](#systeminfo-get) 1. [标签 - 增加标签](#tag-create-post) 1. [标签 - 删除标签](#tag-remove-post) @@ -778,7 +778,7 @@ | Code | Type | Model | Message | |-----|-----|-----|-----| -| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":{"Id":"5e82d2539561231535f72958","Title":"系统广告2","Url":"http://www.google.cn","CreateTime":1585631827,"UpdateTime":0,"Expiry":1585670400,"ExpiryString":"今天"}} | +| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":{"Id":"5e858c09b1d67b2d117e2e58","Site":"景区选择页","Size":{"Width":100,"Height":100},"Type":"轮播","Picture":[{"Src":"/Upload/1585820891339307000.png","Link":"222"}],"Video":[]}} | | 500 | object | [ResponseError](#github.com.aarongao.tools.ResponseError) | {"errcode":1,"errmsg":"错误原因"} | @@ -791,7 +791,7 @@ | Code | Type | Model | Message | |-----|-----|-----|-----| -| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":[{"Id":"5e82c27f41914b0fdcac489f","Title":"系统广告","Url":"http://www.google.cn","CreateTime":1585627775,"UpdateTime":0,"Expiry":1585670400,"ExpiryString":"今天"}...]} | +| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":[{"Id":"5e858c09b1d67b2d117e2e58","Site":"景区选择页","Size":{"Width":100,"Height":100},"Type":"轮播","Picture":[{"Src":"/Upload/1585820891339307000.png","Link":"222"}],"Video":[]}]} | | 500 | object | [ResponseError](#github.com.aarongao.tools.ResponseError) | {"errcode":1,"errmsg":"错误原因"} | @@ -800,15 +800,17 @@ #### /SysAds/Modify (POST) -修改系统广告 +修改平台广告 | Param Name | Example | Data Type | Description | Required? | |-----|-----|-----|-----|-----| -| id | 5dfb03070a9ac17ac7a82054 | string | 系统广告id | Yes | -| ScenicId | wgergejfwe | string | 景区id | Yes | -| Title | 营业时间系统广告 | string | 系统广告名称 | Yes | -| Url | http://abc.com | string | 系统广告链接 | Yes | -| ExpiryString | http://abc.com | string | 有效期(15分钟|1小时|今天|今年) | Yes | +| id | 5dfb03070a9ac17ac7a82054 | string | 平台广告id | Yes | +| Site | Height | string | 位置 | Yes | +| Height | 100 | string | 尺寸 | Yes | +| Width | 100 | string | 尺寸 | Yes | +| Type | 单视频 | string | 类型(轮播|单图|单视频) | Yes | +| Picture | [{"Src":"/Upload/1585820891339307000.png","Link":"222"}] | string | 图片 | Yes | +| Video | [{"Src":"../plugins/images/defaultpic.png","Link":"22","Title":"22","VideoPicture":"/Upload/1585821569540095000.png"}] | string | 视频 | Yes | | Token | wgergejfwe | string | 用户token | Yes | diff --git a/Version.md b/Version.md index b6f16e8..4428fc5 100644 --- a/Version.md +++ b/Version.md @@ -55,6 +55,8 @@ 9. 后台增加管理员日志功能 +10. 增加/SysAds/List获取平台广告信息接口 + ##### 发布流程: -- libgit2 0.21.0