From 802c7ea33b25d28b244b625f5bf0696df20c47c4 Mon Sep 17 00:00:00 2001 From: aarongao Date: Wed, 5 Feb 2020 11:08:15 +0800 Subject: [PATCH] .. --- API/Item.go | 12 ++++++------ API/User.go | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/API/Item.go b/API/Item.go index 7fbbd16..2c0055d 100644 --- a/API/Item.go +++ b/API/Item.go @@ -10,7 +10,7 @@ import ( ) // @Title 查询设备信息 -// @Description 设备管理-查询设备信息 +// @Description 设备管理 - 查询设备信息 // @Accept json // @Produce json // @Param id 5dfb03070a9ac17ac7a82054 string true "设备id" @@ -58,7 +58,7 @@ func AllItems(c *gin.Context) { } // @Title 更新设施 -// @Description 设备管理-更新设施 +// @Description 设备管理 - 更新设施 // @Accept json // @Produce json // @Success 200 {object} tools.ResponseSeccess "Tags所属标签,标签有分类;LimitHeight限高;PlayDuration游玩时长;SceneTime场次时间;Picture照片;Voice音频;AverageConsumption平均消费;Menu菜单" @@ -116,7 +116,7 @@ type ItemTime struct { } // @Title 更新等待时间 -// @Description 设备管理-更新等待时间 +// @Description 设备管理 - 更新等待时间 // @Accept json // @Produce json // @Param item [{"id":"5df864740a9ac17ac7a7feb8","time":"20"},{"id":"5df8660924e03417008b4567","time":"33"}] string true "设备列表" @@ -136,7 +136,7 @@ func UpdateItemTime(c *gin.Context) { } - DB.Redis.Set("AllItemTime", RedisData, time.Second*60*60*24*7) + DB.Redis.Set("AllItemTime", RedisData, time.Second*60*60*24*30) c.JSON(200, tools.ResponseSeccess{ 0, "ok", @@ -146,11 +146,11 @@ func UpdateItemTime(c *gin.Context) { // @Title 获得所有设备的等待时间 -// @Description 设备管理-获得所有设备的等待时间 +// @Description 设备管理 - 获得所有设备的等待时间 // @Accept json // @Produce json // @Success 200 {object} tools.ResponseSeccess "{5df864740a9ac17ac7a7feb8: '20',.....}" -// @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" +// @Failure 500 {object} tools.ResponseError "{}" // @Router /AllItemTime? [get] func AllItemTime(c *gin.Context) { c.Header("Access-Control-Allow-Origin", c.Request.Header.Get("Origin")) diff --git a/API/User.go b/API/User.go index ae46793..da8fb56 100644 --- a/API/User.go +++ b/API/User.go @@ -84,7 +84,7 @@ import ( 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}$" // @Title 登录 -// @Description 用户管理-用户登录&注册 +// @Description 用户管理 - 用户登录&注册 // @Accept json // @Produce json // @Param Mobile aaron string true "手机号" @@ -177,7 +177,7 @@ func LoginUser(c *gin.Context) { } // @Title 用户信息 -// @Description 用户管理-获取用户信息 +// @Description 用户管理 - 获取用户信息 // @Accept json // @Produce json // @Param id aaron string true "用户id" @@ -207,7 +207,7 @@ func UserInfo(c *gin.Context) { } // @Title 修改用户信息 -// @Description 用户管理-修改用户信息 +// @Description 用户管理 - 修改用户信息 // @Accept json // @Produce json // @Param Password 1 string true "密码" -- libgit2 0.21.0