Commit 802c7ea33b25d28b244b625f5bf0696df20c47c4
1 parent
aad6b213
Exists in
v1.2
and in
2 other branches
..
Showing
2 changed files
with
9 additions
and
9 deletions
Show diff stats
API/Item.go
| ... | ... | @@ -10,7 +10,7 @@ import ( |
| 10 | 10 | ) |
| 11 | 11 | |
| 12 | 12 | // @Title 查询设备信息 |
| 13 | -// @Description 设备管理-查询设备信息 | |
| 13 | +// @Description 设备管理 - 查询设备信息 | |
| 14 | 14 | // @Accept json |
| 15 | 15 | // @Produce json |
| 16 | 16 | // @Param id 5dfb03070a9ac17ac7a82054 string true "设备id" |
| ... | ... | @@ -58,7 +58,7 @@ func AllItems(c *gin.Context) { |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | // @Title 更新设施 |
| 61 | -// @Description 设备管理-更新设施 | |
| 61 | +// @Description 设备管理 - 更新设施 | |
| 62 | 62 | // @Accept json |
| 63 | 63 | // @Produce json |
| 64 | 64 | // @Success 200 {object} tools.ResponseSeccess "Tags所属标签,标签有分类;LimitHeight限高;PlayDuration游玩时长;SceneTime场次时间;Picture照片;Voice音频;AverageConsumption平均消费;Menu菜单" |
| ... | ... | @@ -116,7 +116,7 @@ type ItemTime struct { |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | // @Title 更新等待时间 |
| 119 | -// @Description 设备管理-更新等待时间 | |
| 119 | +// @Description 设备管理 - 更新等待时间 | |
| 120 | 120 | // @Accept json |
| 121 | 121 | // @Produce json |
| 122 | 122 | // @Param item [{"id":"5df864740a9ac17ac7a7feb8","time":"20"},{"id":"5df8660924e03417008b4567","time":"33"}] string true "设备列表" |
| ... | ... | @@ -136,7 +136,7 @@ func UpdateItemTime(c *gin.Context) { |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | |
| 139 | - DB.Redis.Set("AllItemTime", RedisData, time.Second*60*60*24*7) | |
| 139 | + DB.Redis.Set("AllItemTime", RedisData, time.Second*60*60*24*30) | |
| 140 | 140 | c.JSON(200, tools.ResponseSeccess{ |
| 141 | 141 | 0, |
| 142 | 142 | "ok", |
| ... | ... | @@ -146,11 +146,11 @@ func UpdateItemTime(c *gin.Context) { |
| 146 | 146 | |
| 147 | 147 | |
| 148 | 148 | // @Title 获得所有设备的等待时间 |
| 149 | -// @Description 设备管理-获得所有设备的等待时间 | |
| 149 | +// @Description 设备管理 - 获得所有设备的等待时间 | |
| 150 | 150 | // @Accept json |
| 151 | 151 | // @Produce json |
| 152 | 152 | // @Success 200 {object} tools.ResponseSeccess "{5df864740a9ac17ac7a7feb8: '20',.....}" |
| 153 | -// @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" | |
| 153 | +// @Failure 500 {object} tools.ResponseError "{}" | |
| 154 | 154 | // @Router /AllItemTime? [get] |
| 155 | 155 | func AllItemTime(c *gin.Context) { |
| 156 | 156 | c.Header("Access-Control-Allow-Origin", c.Request.Header.Get("Origin")) | ... | ... |
API/User.go
| ... | ... | @@ -84,7 +84,7 @@ import ( |
| 84 | 84 | var Regular = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|166|198|199|(147))\\d{8}$" |
| 85 | 85 | |
| 86 | 86 | // @Title 登录 |
| 87 | -// @Description 用户管理-用户登录&注册 | |
| 87 | +// @Description 用户管理 - 用户登录&注册 | |
| 88 | 88 | // @Accept json |
| 89 | 89 | // @Produce json |
| 90 | 90 | // @Param Mobile aaron string true "手机号" |
| ... | ... | @@ -177,7 +177,7 @@ func LoginUser(c *gin.Context) { |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | // @Title 用户信息 |
| 180 | -// @Description 用户管理-获取用户信息 | |
| 180 | +// @Description 用户管理 - 获取用户信息 | |
| 181 | 181 | // @Accept json |
| 182 | 182 | // @Produce json |
| 183 | 183 | // @Param id aaron string true "用户id" |
| ... | ... | @@ -207,7 +207,7 @@ func UserInfo(c *gin.Context) { |
| 207 | 207 | } |
| 208 | 208 | |
| 209 | 209 | // @Title 修改用户信息 |
| 210 | -// @Description 用户管理-修改用户信息 | |
| 210 | +// @Description 用户管理 - 修改用户信息 | |
| 211 | 211 | // @Accept json |
| 212 | 212 | // @Produce json |
| 213 | 213 | // @Param Password 1 string true "密码" | ... | ... |