game2005api/doc/NBag.php
aozhiwei a1c6c2360c 1
2021-10-15 19:37:50 +08:00

320 lines
9.6 KiB
PHP

<?php
class NBagDoc
{
/**
* @api {GET} /webapp/index.php?c=NBag&a=addItemToDB 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "draw_uuid": "", //抽奖唯一id
* "free_times": 0, //免费次数
* "video_times": 0, //看视频次数
* "item_list": //道具列表
* [
* {
* "item_id": 0, //道具id
* "item_num": 0, //道具数量
* "quality": 0, //道具品质
* "time": 0, //抽取时间
* "status": 0, //状态
* }
* ]
* }
*/
/**
* @api {GET} /webapp/index.php?c=NBag&a=saleItem 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "draw_uuid": "", //抽奖唯一id
* "free_times": 0, //免费次数
* "video_times": 0, //看视频次数
* "item_list": //道具列表
* [
* {
* "item_id": 0, //道具id
* "item_num": 0, //道具数量
* "quality": 0, //道具品质
* "time": 0, //抽取时间
* "status": 0, //状态
* }
* ]
* }
*/
/**
* @api {GET} /webapp/index.php?c=NBag&a=useItem 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "draw_uuid": "", //抽奖唯一id
* "free_times": 0, //免费次数
* "video_times": 0, //看视频次数
* "item_list": //道具列表
* [
* {
* "item_id": 0, //道具id
* "item_num": 0, //道具数量
* "quality": 0, //道具品质
* "time": 0, //抽取时间
* "status": 0, //状态
* }
* ]
* }
*/
/**
* @api {GET} /webapp/index.php?c=NBag&a=updateBag 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "draw_uuid": "", //抽奖唯一id
* "free_times": 0, //免费次数
* "video_times": 0, //看视频次数
* "item_list": //道具列表
* [
* {
* "item_id": 0, //道具id
* "item_num": 0, //道具数量
* "quality": 0, //道具品质
* "time": 0, //抽取时间
* "status": 0, //状态
* }
* ]
* }
*/
/**
* @api {GET} /webapp/index.php?c=NBag&a=getAllItem 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "data":
* [
* {
* "idx": "11669",
* "accountid": "6513_2005_NoV4mod1bYUOKRKFsoZyZJQPaGiRreq0",
* "id": "10010",
* "color_id": "0",
* "status": "0",
* "active_time": "0",
* "num": "400",
* "create_time": "1634287521",
* "modify_time": "1634287521"
* }
* ]
* }
*/
/**
* @api {GET} /webapp/index.php?c=NBag&a=getAllYokeItem 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "draw_uuid": "", //抽奖唯一id
* "free_times": 0, //免费次数
* "video_times": 0, //看视频次数
* "item_list": //道具列表
* [
* {
* "item_id": 0, //道具id
* "item_num": 0, //道具数量
* "quality": 0, //道具品质
* "time": 0, //抽取时间
* "status": 0, //状态
* }
* ]
* }
*/
/**
* @api {GET} /webapp/index.php?c=NBag&a=recAcitivityReward 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "draw_uuid": "", //抽奖唯一id
* "free_times": 0, //免费次数
* "video_times": 0, //看视频次数
* "item_list": //道具列表
* [
* {
* "item_id": 0, //道具id
* "item_num": 0, //道具数量
* "quality": 0, //道具品质
* "time": 0, //抽取时间
* "status": 0, //状态
* }
* ]
* }
*/
/**
* @api {GET} /webapp/index.php?c=NBag&a=shareDiscount 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "draw_uuid": "", //抽奖唯一id
* "free_times": 0, //免费次数
* "video_times": 0, //看视频次数
* "item_list": //道具列表
* [
* {
* "item_id": 0, //道具id
* "item_num": 0, //道具数量
* "quality": 0, //道具品质
* "time": 0, //抽取时间
* "status": 0, //状态
* }
* ]
* }
*/
/**
* @api {GET} /webapp/index.php?c=NBag&a=flushDiscountShop 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "draw_uuid": "", //抽奖唯一id
* "free_times": 0, //免费次数
* "video_times": 0, //看视频次数
* "item_list": //道具列表
* [
* {
* "item_id": 0, //道具id
* "item_num": 0, //道具数量
* "quality": 0, //道具品质
* "time": 0, //抽取时间
* "status": 0, //状态
* }
* ]
* }
*/
/**
* @api {GET} /webapp/index.php?c=NBag&a=changeHeadKuang 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "draw_uuid": "", //抽奖唯一id
* "free_times": 0, //免费次数
* "video_times": 0, //看视频次数
* "item_list": //道具列表
* [
* {
* "item_id": 0, //道具id
* "item_num": 0, //道具数量
* "quality": 0, //道具品质
* "time": 0, //抽取时间
* "status": 0, //状态
* }
* ]
* }
*/
/**
* @api {GET} /webapp/index.php?c=NBag&a=addmailReward 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "draw_uuid": "", //抽奖唯一id
* "free_times": 0, //免费次数
* "video_times": 0, //看视频次数
* "item_list": //道具列表
* [
* {
* "item_id": 0, //道具id
* "item_num": 0, //道具数量
* "quality": 0, //道具品质
* "time": 0, //抽取时间
* "status": 0, //状态
* }
* ]
* }
*/
/**
* @api {GET} /webapp/index.php?c=NBag&a=addmailReward 获取抽奖信息-新
* @apiPermission login
* @apiGroup NBag
* @apiUse CommonParam
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* "errcode": 0, //错误码
* "errmsg": "", //错误描述
* "draw_uuid": "", //抽奖唯一id
* "free_times": 0, //免费次数
* "video_times": 0, //看视频次数
* "item_list": //道具列表
* [
* {
* "item_id": 0, //道具id
* "item_num": 0, //道具数量
* "quality": 0, //道具品质
* "time": 0, //抽取时间
* "status": 0, //状态
* }
* ]
* }
*/
}