We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
id (use `session` to store default location information)
POST /user/choose_location
input: building_id
ouput: { 'code': 0, 'data': {'_csrf_token': 'xxx'} // 写localstorage,伴随着用户终身 }
0 1 -1 Building does not exist.
POST /user/location_info
input: csrf_token: str
ouput: { 'code': 0, 'data': { 'school': {'id': x, 'name': 'xxx'}, 'building': {'id': x, 'name': 'xxx'}} }
0 1 2 -1 Location info does not exist. -3 User should choose location to init account.
POST /user/contact_info
ouput: { 'code': 0, 'data': {'name': 'xxx', 'phone':'xxx', 'addr': 'xxx'} }
0 1 2 -2 -4 Contact info does not exist.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
user
3.1 create_user
POST /user/choose_location
3.2 get_user_location_Info
POST /user/location_info
3.3 get_contact_info
POST /user/contact_info
The text was updated successfully, but these errors were encountered: