关注企业接口
This commit is contained in:
@@ -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, //企业报名
|
||||
|
||||
Reference in New Issue
Block a user