diff --git a/API/UserLog.go b/API/UserLog.go index 0759ca2..52c4744 100644 --- a/API/UserLog.go +++ b/API/UserLog.go @@ -12,20 +12,20 @@ import ( // @Description 增加访问日志 // @Accept json // @Produce json -// @Param Type 安装app string true "安装;卸载;访问页面;使用功能;缩放地图" +// @Param Type 访问页面 string true "安装;卸载;访问页面;使用功能;缩放地图" // @Param SubType 景区详情 string true "推荐;景区详情;登陆;商城;投诉建议;问券调查...." // @Param ScenicId 5dfb03070a9ac17ac7a82054 string true "景区id" // @Param UserId 5dfb03070a9ac17ac7a82054 string true "用户ID" // @Param UserName Aaron string true "用户名称" // @Param Location {"Latitude": 119, "Longitude": 39} string true "位置" // @Param Remarks 备注 string true "备注" -// @Param Source 用户分享 string true "Source" +// @Param Source 用户分享 string true "来源" // @Param DeviceId abc123 string true "手机唯一识别码,不重复(存放于http.header中)" // @Param Mac abc123 string true "网卡Mac地址(存放于http.header中)" // @Param SystemType ios string true "ios,android(存放于http.header中)" // @Param SystemVersion 13.01 string true "手机版本(存放于http.header中)" // @Param SystemModel iphone8 string true "手机型号(存放于http.header中)" -// @Success 200 {object} tools.ResponseSeccess "" +// @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":"ok"}" // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" // @Router /UserLog? [post] func UserLog(c *gin.Context) { diff --git a/README.md b/README.md index 1d8688c..75a68b7 100644 --- a/README.md +++ b/README.md @@ -640,14 +640,14 @@ | Param Name | Example | Data Type | Description | Required? | |-----|-----|-----|-----|-----| -| Type | 安装app | string | 安装;卸载;访问页面;使用功能;缩放地图 | Yes | +| Type | 访问页面 | string | 安装;卸载;访问页面;使用功能;缩放地图 | Yes | | SubType | 景区详情 | string | 推荐;景区详情;登陆;商城;投诉建议;问券调查.... | Yes | | ScenicId | 5dfb03070a9ac17ac7a82054 | string | 景区id | Yes | | UserId | 5dfb03070a9ac17ac7a82054 | string | 用户ID | Yes | | UserName | Aaron | string | 用户名称 | Yes | | Location | {"Latitude": 119, "Longitude": 39} | string | 位置 | Yes | | Remarks | 备注 | string | 备注 | Yes | -| Source | 用户分享 | string | Source | Yes | +| Source | 用户分享 | string | 来源 | Yes | | DeviceId | abc123 | string | 手机唯一识别码,不重复(存放于http.header中) | Yes | | Mac | abc123 | string | 网卡Mac地址(存放于http.header中) | Yes | | SystemType | ios | string | ios,android(存放于http.header中) | Yes | @@ -657,7 +657,7 @@ | Code | Type | Model | Message | |-----|-----|-----|-----| -| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | | +| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":"ok"} | | 500 | object | [ResponseError](#github.com.aarongao.tools.ResponseError) | {"errcode":1,"errmsg":"错误原因"} | -- libgit2 0.21.0