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
6a3ad08b
Commit
6a3ad08b
authored
Jun 10, 2021
by
林颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评论相关--后续
parent
d06bf18d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
172 additions
and
0 deletions
+172
-0
diary_common_reply.yaml
all_backend_api/diary_common_reply.yaml
+11
-0
diary_common_reply_request.py
all_backend_api/diary_common_reply_request.py
+14
-0
diary_vote.yaml
all_backend_api/diary_vote.yaml
+31
-0
diary_vote_request.py
all_backend_api/diary_vote_request.py
+35
-0
personal_recommends.yaml
all_backend_api/personal_recommends.yaml
+24
-0
personal_recommends_request.py
all_backend_api/personal_recommends_request.py
+16
-0
tractate_detail.yaml
all_backend_api/tractate_detail.yaml
+25
-0
tractate_detail_request.py
all_backend_api/tractate_detail_request.py
+16
-0
No files found.
all_backend_api/diary_common_reply.yaml
0 → 100644
View file @
6a3ad08b
#日记本列表--日记贴点赞
vote
:
method
:
get
url
:
/api/common/reply
params
:
id
:
${id}
type
:
${type}
data
:
{}
json
:
{}
isLogin
:
0
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/diary_common_reply_request.py
0 → 100644
View file @
6a3ad08b
import
path_setting
from
in_common.base_request
import
BaseRequest
class
diary_common_reply_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_COMMON_REPLY_CONFIG
)
def
diary_common_reply
(
self
,
id
,
type
):
self
.
params
[
"id"
]
=
id
self
.
params
[
"type"
]
=
type
return
self
.
api_send
(
self
.
data
[
"vote"
])
all_backend_api/diary_vote.yaml
0 → 100644
View file @
6a3ad08b
#日记本列表--日记贴点赞
vote
:
method
:
post
url
:
/hybrid/api/topic/vote/_data
params
:
data
:
id
:
${id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
canclevote
:
method
:
post
url
:
/hybrid/api/topic/cancel_vote/_data
params
:
data
:
id
:
${id}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#
detail
:
method
:
get
url
:
/api/topic/v1
params
:
topic_id
:
${topic_id}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/diary_vote_request.py
0 → 100644
View file @
6a3ad08b
import
path_setting
from
in_common.base_request
import
BaseRequest
class
diary_vote_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
DIARY_VOTE_CONFIG
)
def
diary_vote
(
self
,
id
):
self
.
params
[
"id"
]
=
id
return
self
.
api_send
(
self
.
data
[
"vote"
])
def
diary_canclevote
(
self
,
id
):
self
.
params
[
"id"
]
=
id
return
self
.
api_send
(
self
.
data
[
"canclevote"
])
# 进入日记贴详情页-用来判断这篇日记贴点赞过没
def
diary_detail
(
self
,
topic_id
):
self
.
params
[
"topic_id"
]
=
topic_id
return
self
.
api_send
(
self
.
data
[
"detail"
])
# def diary_test(self):
# return self.api_send(self.data["detail"])
# if __name__ == '__main__':
# r = diary_vote_request.diary_detail(21249959)
# print(r)
all_backend_api/personal_recommends.yaml
0 → 100644
View file @
6a3ad08b
#推荐内容
personal_recommends
:
method
:
get
url
:
/api/personal/recommends/v1
params
:
current_city_id
:
${current_city_id}
id
:
${id}
from_type
:
${from_type}
data
:
{}
json
:
{}
isLogin
:
0
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#查看日记本相册页面
#album:
# method: get
# url: /hybrid/diary/album/17586198/_data
# params:
# data: {}
# json: {}
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/personal_recommends_request.py
0 → 100644
View file @
6a3ad08b
import
path_setting
from
in_common.base_request
import
BaseRequest
class
personal_recommends_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
PERSONAL_RECOMMENDS_CONFIG
)
def
personal_recommends
(
self
,
current_city_id
,
id
,
from_type
):
self
.
params
[
"current_city_id"
]
=
current_city_id
self
.
params
[
"id"
]
=
id
self
.
params
[
"from_type"
]
=
from_type
return
self
.
api_send
(
self
.
data
[
"personal_recommends"
])
all_backend_api/tractate_detail.yaml
0 → 100644
View file @
6a3ad08b
#查看用户帖子详情页
tractate_detail
:
method
:
get
url
:
/api/tractate/new_detail
params
:
current_city_id
:
${current_city_id}
tractate_id
:
${tractate_id}
data_type
:
${data_type}
data
:
{}
json
:
{}
isLogin
:
1
#需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
#查看日记本相册页面
#album:
# method: get
# url: /hybrid/diary/album/17586198/_data
# params:
# data: {}
# json: {}
# isLogin: 1 #需要登录添加这个字段,值为1 0是不需要登录的情况,如不需要登录,可以不添加这个字段
all_backend_api/tractate_detail_request.py
0 → 100644
View file @
6a3ad08b
import
path_setting
from
in_common.base_request
import
BaseRequest
class
tractate_detail_request
(
BaseRequest
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
TRACTATE_DETAIL_CONFIG
)
def
tractate_detail
(
self
,
current_city_id
,
tractate_id
,
data_type
):
self
.
params
[
"current_city_id"
]
=
current_city_id
self
.
params
[
"tractate_id"
]
=
tractate_id
self
.
params
[
"data_type"
]
=
data_type
return
self
.
api_send
(
self
.
data
[
"tractate_detail"
])
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