# 📁 Collection: 用戶管理
---
## get users
### Method: GET
```
{{host}}/api/user/Accout
```
### Response: 200
```json
// UID、使用者名稱、Email、建立日期、點數、優惠券數、被檢舉數、帳號狀態%
[
{
"uid": 1,
"userName": "xx",
"email": "xx",
"points": 1,
"couponCount": 1,
"reportCount": 1,
"is_block": false,
"createAt": "2012-04-23T18:25:43.511Z",
"updatedAt": "2012-04-23T18:25:43.511Z"
"updatedBy": 2 // token get uid
}
]
```
## get user by id
### Method: GET
```
{{host}}/api/user/Accout/:id
```
### Response: 200
```json
// 頭貼、使用者名稱、Email、等級、綁定狀態%(LINE、Twitter、Metamask)、建立日期、在線時數、點數%、優惠券數、下線名單、被檢舉數%、帳號狀態%(啟用、停用)
{
"uid": 1,
"userName": "xx",
"avatarLink": "http://abc",
"email": "xx",
"level": 1,
"socialLink":{
"line": true,
"twitter": true,
"metamask": false,
},
"onlineHrs": 1.5,
"points": 1,
"couponCount": 1,
"reportCount": 1,
"is_block": false,
"createAt": "2012-04-23T18:25:43.511Z",
"updatedAt": "2012-04-23T18:25:43.511Z",
"updatedBy": 2 // token get uid
}
```
## 下線 by user id
### Method: GET
```
{{host}}/api/user/Account/:id/downlines
```
### Response: 200
```json
// 頭貼、使用者名稱、Email、等級、綁定狀態%(LINE、Twitter、Metamask)、建立日期、在線時數、點數%、優惠券數、下線名單、被檢舉數%、帳號狀態%(啟用、停用)
[
{
"uid": 1,
"userName": "xx",
"avatarLink": "http://abc",
"email": "xx",
"level": 1,
"socialLink":{
"line": true,
"twitter": true,
"metamask": false,
},
"onlineHrs": 1.5,
"points": 1,
"couponCount": 1,
"reportCount": 1,
"is_block": false,
"createAt": "2012-04-23T18:25:43.511Z",
"updatedAt": "2012-04-23T18:25:43.511Z",
"updatedBy": 2 // token get uid
}
]
```
## user update
### Method: PUT
```
{{host}}/api/user/Account/:id
```
### body (**raw**)
```json
{
"socialLink":{
"line":true,
"twitter":true,
"metamask":false
},
"points": 1,
"reportCount": 1,
"is_block": true,
}
```
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
# 📁 Collection: 留言管理
## get comments
### Method: GET
```
{{host}}/api/comments
```
### Response: 200
```json
//留言(的遊戲)、留言內容、使用者UID、建立日期、按讚數、倒讚數、被檢舉數、檢舉數達標警示%、留言狀態%(顯示、隱藏)
[
{
"id": 1,
"gameId": 1,
"gameName": "game name",
"commentText": "xxxx",
"uid": 1,
"likes":1,
"unlinks":1,
"reportCount": 1,
"status": false, //hide
"createAt": "2012-04-23T18:25:43.511Z",
"updatedAt": "2012-04-23T18:25:43.511Z",
"updatedBy": 2 // token get uid
}
]
```
## update comment status
### Method: PUT
```
{{host}}/api/comments/:id
```
### Body (**raw**)
```json
{
"status": false, //hide
}
```
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
# 📁 Collection: 遊戲管理
## get game list
### Method: GET
>```
>{{host}}/api/game/instance
>```
### Response: 200
```json
//圖示、遊戲名稱、人氣(被遊玩次數)、被留言數、建立日期、廠牌、遊戲類別、遊戲狀態%(啟用、停用)
[
{
"gameId": 1,
"name": "xxxx",
"playedCount":1,
"commentCount": 1,
"brand":"xxx",
"gameType":"xxx",
"status": false, //hide
"createAt": "2012-04-23T18:25:43.511Z",
"updatedAt": "2012-04-23T18:25:43.511Z",
"updatedBy": 2 // token get uid
}
]
```
## update game status
### Method: PUT
```
{{host}}/api/game/instance/:id/status
```
### Body (**raw**)
```json
{
"status": false, //hide
}
```
### Query game by id
>```
>{{host}}/api/game/instance/:gameId
>```
### Response: 200
```json
//圖示%、GameCard圖片%、遊戲名稱%、遊戲簡介%(英、日)、人氣(被遊玩次數)、留言列表、建立日期、廠牌%、遊戲類別%、RTP數值%、遊戲簡介影片%(MP4)、GameCard連結%(可複數建立)、遊戲URL%、遊戲狀態%(啟用、停用)
{
"gameId": 1,
"gameImageLink:"",
"gameCardImageLink:"",
"name": "xxxx",
"intoEn": "xxxx",
"intoJp": "xxxx",
"playedCount":1,
"commentCount": 1,
"brand":"xxx",
"gameType":"xxx",
"rtp":1,
"videoLink":"",
"gameCardLinks": [{"url":"a"}, {"url":"b"}]
"status": false, //hide
"gameLink":"",
"createAt": "2012-04-23T18:25:43.511Z",
"updatedAt": "2012-04-23T18:25:43.511Z",
"updatedBy": 2 // token get uid
}
```
## Query comments by game id
```
{{host}}/api/game/instance/:gameId/comments
```
### Response: 200
```json
[
{
"id": 1,
"commentContent": "xxxx",
"uid": 1,
"gameId": 1,
"likes":1,
"unlinks":1,
"reportCount": 1,
"reportWarning": true,
"status": false, //hide
"createAt": "2012-04-23T18:25:43.511Z",
"updatedAt": "2012-04-23T18:25:43.511Z",
"updatedBy": 2 // token get uid
}
]
```
## create game
### Create
```
POST {{host}}/api/game/instance
```
### Body (**raw**)
圖示%、GameCard圖片%、遊戲名稱%、遊戲簡介%(英、日)、人氣(被遊玩次數)、留言列表、建立日期、廠牌%、遊戲類別%、RTP數值%、遊戲簡介影片%(MP4)、GameCard連結%(可複數建立)、遊戲URL%、遊戲狀態%(啟用、停用)
```json
{
"gameId": 1,
"gameImageLink":"",
"gameCardImageLink":"",
"name": "xxxx",
"intoEn": "xxxx",
"intoJp": "xxxx",
"brand":"xxx",
"gameType":"xxx",
"rtp":1,
"gameCardLinks": [{"url":"a"}, {"url":"b"}]
"status": false, //hide
"gameLink":"",
}
```
## update game
### Update
```
PUT {{host}}/api/game/instance/:gameId
```
### Body (**raw**)
圖示%、GameCard圖片%、遊戲名稱%、遊戲簡介%(英、日)、廠牌%、遊戲類別%、RTP數值%、遊戲簡介影片%(MP4)、GameCard連結%(可複數建立)、遊戲URL%、遊戲狀態%
```json
{
"gameImage":base64,
"gameCardImage":base64,
"name": "xxxx",
"intoEn": "xxxx",
"intoJp": "xxxx",
"brand":"xxx",
"gameType":"xxx",
"rtp":1,
"gameCardLinks": [{"url":"a"}, {"url":"b"}]
"status": false, //hide
"gameLink":"",
}
```
## game video get
### Get
```
GET {{host}}/api/video/:id
```
### Response: 200
```json
{
"id": 1,
"fileName":"",
"url:"",
}
```
## game video create
### Get
```
POST {{host}}/api/video
```
### Form-Data
```
"gameId": 1,
"video":File,
```
## game video delete
### Delete
```
DELETE {{host}}/api/video/:id
```
⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃ ⁃
# 📁 Collection: 官方聲明設置
## get Privacy Policy
```
{{host}}/api/Privacy
```
### Response: 200
```json
{
"id": 1,
"contentEn": "xxxx",
"contentJp": "xxxx",
"createAt": "2012-04-23T18:25:43.511Z",
"updatedAt": "2012-04-23T18:25:43.511Z",
"updatedBy": 2 // token get uid
}
```
### Update
```
PUT {{host}}/api/Privacy
```
### Body (**raw**)
```json
{
"contentEn": "xxxx",
"contentJp": "xxxx",
}
```
## get User Policy
```
{{host}}/api/userPolicy
```
### Response: 200
```json
{
"id": 1,
"contentEn": "xxxx",
"contentJp": "xxxx",
"createAt": "2012-04-23T18:25:43.511Z",
"updatedAt": "2012-04-23T18:25:43.511Z",
"updatedBy": 2 // token get uid
}
```
### Update
```
PUT {{host}}/api/userPolicy
```
### Body (**raw**)
```json
{
"contentEn": "xxxx",
"contentJp": "xxxx",
}
```
## get About me
```
{{host}}/api/aboutme
```
### Response: 200
```json
{
"id": 1,
"contentEn": "xxxx",
"contentJp": "xxxx",
"createAt": "2012-04-23T18:25:43.511Z",
"updatedAt": "2012-04-23T18:25:43.511Z",
"updatedBy": 2 // token get uid
}
```
### Update
```
PUT {{host}}/api/aboutme
```
### Body (**raw**)
```json
{
"contentEn": "xxxx",
"contentJp": "xxxx",
}
```