[更新]新增短视频企业id接口

This commit is contained in:
唐明明
2020-12-30 18:16:24 +08:00
23 changed files with 231 additions and 292 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, //企业报名

View File

@@ -3,7 +3,19 @@
* 用户
*/
import {req} from "../request"
// 个人中心信息
const userInfo = () => req({
url: "user/center"
})
// 获取关注企业列表
const companySubscribesList = ( page) => req({
url: "user/subscribes/company",
data: {
page: page
}
})
export default({
userInfo,//用户基本信息
companySubscribesList,//关注企业列表
})