关注企业接口

This commit is contained in:
zdx
2020-12-30 17:34:35 +08:00
parent 428d0bb7d9
commit 043dfce6cc
25 changed files with 143 additions and 198 deletions

View File

@@ -26,9 +26,10 @@ const crowdfunds = (company_id, category_id, page) => req({
const crowdfundsDetail = crowdfund_id => req({
url: "crowdfunds/" + crowdfund_id
})
// 获取关注列表
const getCrowdfundsLike = page => req({
url: "user/crowdfunds",
url: "user/subscribes",
method: "get",
data: {
page: page
@@ -36,7 +37,7 @@ const getCrowdfundsLike = page => req({
})
//项目关注
const crowdfundsLike = crowdfund_id => req({
url: "crowdfunds/like",
url: "crowdfunds/subscribe",
method: "POST",
data: {
crowdfund_id: crowdfund_id
@@ -44,7 +45,7 @@ const crowdfundsLike = crowdfund_id => req({
})
//项目取消关注
const crowdfundsUnLike = crowdfund_id => req({
url: "crowdfunds/unlike",
url: "crowdfunds/unsubscribe",
method: "POST",
data: {
crowdfund_id: crowdfund_id
@@ -177,6 +178,12 @@ const getRefundLogsInfo = (refundId) => req({
url: "refunds/" + refundId + '/logs'
})
// 关注企业 取消关注企业
const companyLike = (companyId) => req({
url: "company/" + companyId + '/subscribe'
})
export default ({
crowdfundcategory, //项目筹集分类
@@ -189,6 +196,7 @@ export default ({
crowdfundsCreatOrder, //创建订单
wechat, //微信支付
company, //企业基本信息
companyLike,//关注企业
actives, //企业活动列表
activesDetail, //企业活动详情
activesEnroll, //企业报名