mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 15:40:22 +00:00
docs
This commit is contained in:
parent
130ec8b811
commit
6bc3dcf915
2 changed files with 10 additions and 3 deletions
|
@ -10,7 +10,7 @@ COPY static ./static
|
|||
COPY requirements.txt main.py database.sqlite ./
|
||||
RUN apt update
|
||||
|
||||
# Install supervisord
|
||||
# Install supervisords
|
||||
RUN apt install -y supervisor
|
||||
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
COPY config/cmd.sh /cmd.sh
|
||||
|
|
|
@ -61,7 +61,11 @@ update = "  Compare_content: 新旧版本内容{\n\n" \
|
|||
|
||||
appstore_update = "  Update_content: [] 更新内容\n\n}\n\n"
|
||||
auto = "  auto_update: 目前的自动更新状态\n\n}\n\n"
|
||||
|
||||
user = "  user: 用户信息\n\n" \
|
||||
"      username: 用户名\n\n" \
|
||||
"      password: 密码\n\n" \
|
||||
"      nick_name: 昵称\n\n    }\n\n}\n\n"
|
||||
updateuser = "  Update_user: True or False\n\n}\n\n"
|
||||
rd = rd_s + rd_m + rd_e
|
||||
rd_info = rd_s + info + rd_e
|
||||
rd_status = rd_s + rd_status + rd_e
|
||||
|
@ -69,6 +73,7 @@ rd_domain = rd_s + domain + rd_e
|
|||
rd_update_list = rd_s + update + rd_e
|
||||
rd_appstore = rd_s + appstore_update + rd_e
|
||||
rd_auto_list = rd_s + auto + rd_e
|
||||
rd_auto_list = rd_s + user + rd_e
|
||||
|
||||
@router.api_route("/AppStatus", methods=["GET", "POST"], summary="获取指定APP的信息",
|
||||
response_description=rd_status,
|
||||
|
@ -448,7 +453,7 @@ def AppSearchUsers(request: Request, plugin_name: Optional[str] = Query(default=
|
|||
|
||||
return response
|
||||
|
||||
@router.api_route("/AppUpdateUser", methods=["GET", "POST"], summary="更新appstore用户信息", response_model=Response, response_description=rd_auto_list)
|
||||
@router.api_route("/AppUpdateUser", methods=["GET", "POST"], summary="更新appstore用户信息", response_model=Response, response_description=rd_updateuser_list)
|
||||
def AppUpdateUser(request: Request,user_name: Optional[str] = Query(default=None, description="用户名"), password: Optional[str] = Query(default=None, description="密码")):
|
||||
|
||||
try:
|
||||
|
@ -457,6 +462,8 @@ def AppUpdateUser(request: Request,user_name: Optional[str] = Query(default=None
|
|||
ret = {}
|
||||
ret['ResponseData'] = {}
|
||||
db.AppUpdateUser(user_name, password)
|
||||
ret['ResponseData']['update_flag'] = True
|
||||
response = JSONResponse(content=ret)
|
||||
except CommandException as ce:
|
||||
ret = {}
|
||||
ret['ResponseData'] = {}
|
||||
|
|
Loading…
Reference in a new issue