implement sif unit

master
wlt233 6 months ago
parent 3b6fde8333
commit eea9e7cb88

@ -25,6 +25,9 @@ async def gdpr_get(request: Request):
@bp_sif_misc.route("/lbonus/execute", methods=["POST"])
@common_api
async def lbonus_execute(request: Request):
### TODO - PLACEHOLDER ###
lbdays = {
"day": 0,
"day_of_the_week": 1,

@ -19,8 +19,8 @@ async def unitAll(request: Request):
active = []
for i in range(9):
active.append({
"unit_owning_user_id": 38383+i,
"unit_id": i+1,
"unit_owning_user_id": i,
"unit_id": i,
"exp": 8000,
"next_exp": 0,
"level": 40,
@ -50,3 +50,42 @@ async def unitAll(request: Request):
"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
Loading…
Cancel
Save