Clean up and working on user related models, methods, and routes.
This commit is contained in:
@@ -91,7 +91,7 @@ async def get_account_obj_li(
|
||||
return result
|
||||
|
||||
|
||||
# ### BEGIN ### API Account ### get_account_obj() ###
|
||||
# ### BEGIN ### API Account ### get_account_obj_new() ###
|
||||
# Working well as of 2021-06-11. Using as a template for other routes.
|
||||
@router.get('/{account_id}', response_model=Resp_Body_Base)
|
||||
async def get_account_obj_new(
|
||||
@@ -152,6 +152,8 @@ async def get_account_obj_new(
|
||||
inc_person_list: bool = False,
|
||||
# inc_post: bool = False,
|
||||
inc_post_list: bool = False, # Priority l1
|
||||
# inc_post_comment: bool = False,
|
||||
inc_post_comment_list: bool = False,
|
||||
# inc_product: bool = False,
|
||||
inc_product_list: bool = False,
|
||||
# inc_site: bool = False,
|
||||
@@ -230,7 +232,7 @@ async def get_account_obj_new(
|
||||
return mk_resp(data=False, status_code=400) # Bad Request
|
||||
|
||||
return mk_resp(data=response_data)
|
||||
# ### END ### API Account ### get_account_obj() ###
|
||||
# ### END ### API Account ### get_account_obj_new() ###
|
||||
|
||||
|
||||
@router.get('/{obj_id}', response_model=Resp_Body_Base)
|
||||
|
||||
Reference in New Issue
Block a user