|
|
@ -19,8 +19,8 @@ async def unitAll(request: Request):
|
|
|
|
active = []
|
|
|
|
active = []
|
|
|
|
for i in range(9):
|
|
|
|
for i in range(9):
|
|
|
|
active.append({
|
|
|
|
active.append({
|
|
|
|
"unit_owning_user_id": 38383+i,
|
|
|
|
"unit_owning_user_id": i,
|
|
|
|
"unit_id": i+1,
|
|
|
|
"unit_id": i,
|
|
|
|
"exp": 8000,
|
|
|
|
"exp": 8000,
|
|
|
|
"next_exp": 0,
|
|
|
|
"next_exp": 0,
|
|
|
|
"level": 40,
|
|
|
|
"level": 40,
|
|
|
@ -49,4 +49,43 @@ async def unitAll(request: Request):
|
|
|
|
"active": active,
|
|
|
|
"active": active,
|
|
|
|
"waiting": []
|
|
|
|
"waiting": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return resp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@bp_sif_unit.route("deckInfo", methods=["POST"])
|
|
|
|
|
|
|
|
@common_api
|
|
|
|
|
|
|
|
async def deckInfo(request: Request):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### TODO - PLACEHOLDER ###
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resp = [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"unit_deck_id": 1,
|
|
|
|
|
|
|
|
"main_flag": True,
|
|
|
|
|
|
|
|
"deck_name": "队伍A",
|
|
|
|
|
|
|
|
"unit_owning_user_ids": [
|
|
|
|
|
|
|
|
{ "position": 1, "unit_owning_user_id": 0 },
|
|
|
|
|
|
|
|
{ "position": 2, "unit_owning_user_id": 1 },
|
|
|
|
|
|
|
|
{ "position": 3, "unit_owning_user_id": 2 },
|
|
|
|
|
|
|
|
{ "position": 4, "unit_owning_user_id": 3 },
|
|
|
|
|
|
|
|
{ "position": 5, "unit_owning_user_id": 4 },
|
|
|
|
|
|
|
|
{ "position": 6, "unit_owning_user_id": 5 },
|
|
|
|
|
|
|
|
{ "position": 7, "unit_owning_user_id": 6 },
|
|
|
|
|
|
|
|
{ "position": 8, "unit_owning_user_id": 7 },
|
|
|
|
|
|
|
|
{ "position": 9, "unit_owning_user_id": 8 }
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
return resp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@bp_sif_unit.route("supporterAll", methods=["POST"])
|
|
|
|
|
|
|
|
@common_api
|
|
|
|
|
|
|
|
async def supporterAll(request: Request):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### TODO - PLACEHOLDER ###
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resp = { "unit_support_list": [] }
|
|
|
|
return resp
|
|
|
|
return resp
|