Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
backend_auto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邓莹莹
backend_auto
Commits
a475b175
Commit
a475b175
authored
Jul 21, 2021
by
冯艮霞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的-收藏
parent
e8e9ad79
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
5 deletions
+90
-5
user_request.py
all_backend_api/user_request.py
+39
-2
user_request.yaml
all_backend_api/user_request.yaml
+36
-0
path_setting.py
path_setting.py
+13
-1
my_question.yaml
test_backend_data/user_data/my_question.yaml
+2
-2
No files found.
all_backend_api/user_request.py
View file @
a475b175
...
...
@@ -52,7 +52,7 @@ class user_request(BaseRequest):
return
self
.
api_send
(
self
.
data
[
"reply_tractate"
])
# 我的-问题
# 我的-问题
-提问
def
my_question
(
self
,
start_num
,
count
):
self
.
params
[
"start_num"
]
=
start_num
...
...
@@ -61,7 +61,7 @@ class user_request(BaseRequest):
return
self
.
api_send
(
self
.
data
[
"my_question"
])
# 我的-收藏
# 我的-收藏
-商品
def
favors_services
(
self
,
start_num
,
count
,
current_city_id
,
device_id
,
version
):
self
.
params
[
"start_num"
]
=
start_num
...
...
@@ -72,6 +72,32 @@ class user_request(BaseRequest):
return
self
.
api_send
(
self
.
data
[
"favors_services"
])
# 我的-问题-回答
def
my_answer
(
self
,
start_num
,
count
):
self
.
params
[
"start_num"
]
=
start_num
self
.
params
[
"count"
]
=
count
return
self
.
api_send
(
self
.
data
[
"my_answer"
])
# 我的-收藏-日记本
def
favors_diaries
(
self
,
start_num
,
count
):
self
.
params
[
"start_num"
]
=
start_num
self
.
params
[
"count"
]
=
count
return
self
.
api_send
(
self
.
data
[
"favors_diaries"
])
# 我的-收藏-日记贴
def
favors_topics
(
self
,
start_num
,
count
):
self
.
params
[
"start_num"
]
=
start_num
self
.
params
[
"count"
]
=
count
return
self
.
api_send
(
self
.
data
[
"favors_topics"
])
if
__name__
==
'__main__'
:
#个人中心
...
...
@@ -95,4 +121,15 @@ if __name__ == '__main__':
#我的-帖子-我回复的
print
(
user_request
()
.
reply_tractate
(
1
,
10
,
"7.46.0"
))
# 我的-问题-回答
print
(
user_request
()
.
my_answer
(
0
,
10
))
# 我的-收藏-日记本
print
(
user_request
()
.
favors_diaries
(
0
,
10
))
# 我的-收藏-日记贴
print
(
user_request
()
.
favors_topics
(
0
,
10
))
all_backend_api/user_request.yaml
View file @
a475b175
...
...
@@ -79,3 +79,39 @@ reply_tractate:
data
:
{}
json
:
{}
isLogin
:
1
# 我的-问题-回答
my_answer
:
method
:
GET
url
:
/api/user/my_answer
params
:
start_num
:
${start_num}
count
:
${count}
data
:
{}
json
:
{}
isLogin
:
1
# 我的-收藏-日记本
favors_diaries
:
method
:
GET
url
:
/api/user/favors/diaries
params
:
start_num
:
${start_num}
count
:
${count}
data
:
{}
json
:
{}
isLogin
:
1
# 我的-收藏-日记贴
favors_topics
:
method
:
GET
url
:
/api/user/favors/topics
params
:
start_num
:
${start_num}
count
:
${count}
data
:
{}
json
:
{}
isLogin
:
1
path_setting.py
View file @
a475b175
...
...
@@ -420,12 +420,24 @@ USER_TRACTATE = os.path.join(BASE_DIR, "backend_auto/test_backend_data/user_data
MY_QUESTION_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"user_request.yaml"
)
MY_QUESTION
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/user_data"
,
"my_question.yaml"
)
#我的-收藏
#我的-收藏
-日记本
FAVORS_SERVICES_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"user_request.yaml"
)
FAVORS_SERVICES
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/user_data"
,
"favors_services.yaml"
)
#我的-帖子-我回复的
REPLY_TRACTATE_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"user_request.yaml"
)
REPLY_TRACTATE
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/user_data"
,
"reply_tractate.yaml"
)
#我的-问题-回答
MY_ANSWER_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"user_request.yaml"
)
MY_ANSWER
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/user_data"
,
"my_answer.yaml"
)
#我的-收藏-日记本
FAVORS_DIARIES_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"user_request.yaml"
)
FAVORS_DIARIES
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/user_data"
,
"favors_diaries.yaml"
)
#我的-收藏-日记贴
FAVORS_TOPICS_CONFIG
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/all_backend_api"
,
"user_request.yaml"
)
FAVORS_TOPICS
=
os
.
path
.
join
(
BASE_DIR
,
"backend_auto/test_backend_data/user_data"
,
"favors_topics.yaml"
)
if
__name__
==
'__main__'
:
print
(
"=========="
,
LIVEYAML_CONFIG
)
test_backend_data/user_data/my_question.yaml
View file @
a475b175
my_question
:
#我的-问题
#我的-问题
-提问
-
case
:
"
我的页面-问题"
case
:
"
我的页面-问题
-提问
"
start_num
:
0
count
:
10
assert
:
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment