调整位置服务接口

This commit is contained in:
pengtao 2019-07-24 19:52:03 +08:00
parent a6ec54f42f
commit 1cb13e00ed
2 changed files with 10 additions and 15 deletions

View File

@ -192,17 +192,14 @@ http://154.8.214.202:5015/interface/location
http://154.8.214.202:5015/interface/location
http://154.8.214.202:5015/interface/location
##### 请求参数说明
| 名称 | 类型 | 必填 | 说明 |
| ----------- | ---- | ---- | --------------------------------------------- |
| gameid | int | 是 | 游戏ID |
| channelid | int | 是 | 渠道ID默认是6001 |
| area | int | 是 | 游戏区域 (1=首页2=游戏中3=结算页4=关闭) |
| type | int | 是 | 类型1=icon2=banner3=浮窗4=icon2 |
| localtionid | int | 是 | 位置ID |
| 名称 | 类型 | 必填 | 说明 |
| --------- | ---- | ---- | --------------------------------------------- |
| gameid | int | 是 | 游戏ID |
| channelid | int | 是 | 渠道ID默认是6001 |
| area | int | 否 | 游戏区域 (1=首页2=游戏中3=结算页4=关闭) |
| type | int | 否 | 类型1=icon2=banner3=浮窗4=icon2 |
##### 返回参数说明
@ -239,8 +236,6 @@ http://154.8.214.202:5015/interface/location
http://154.8.214.202:5015/interface/location?area=1&type=1&gameid=1003
http://154.8.214.202:5015/interface/location
##### 请求参数说明
| 名称 | 类型 | 必填 | 说明 |
@ -278,9 +273,9 @@ http://154.8.214.202:5015/interface/location?id=1002
##### 请求参数说明
| 名称 | 类型 | 必填 | 说明 |
| ---- | ---- | ---- | -------------- |
| id | int | 是 | 需删除的位置ID |
| 名称 | 类型 | 必填 | 说明 |
| ---------- | ---- | ---- | -------------- |
| locationid | int | 是 | 需删除的位置ID |
##### 返回参数说明

View File

@ -48,7 +48,7 @@ class Location(Resource):
return jsonify({'code': 200, 'message': all_data})
else:
log.error(f"{data} not found in mysql !")
return jsonify({'code': 404})
return jsonify({'code': 200, 'message': ""})
def post(self):