feat:朋友圈代码生成
This commit is contained in:
1 parent
6dd2bbde5e
commit
c09424be8f
6 files changed
+419
-3
No files matched your search
@@ -0,0 +1,49 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 朋友圈操作 VO
|
||||
export interface OperationVO {
|
||||
id: number // 收件地址编号
|
||||
memberId: number // 用户编号
|
||||
memberRecentId: number // 朋友圈编号
|
||||
bizType: string // 点赞、屏蔽、举报
|
||||
tapTime: Date // 点击时间
|
||||
cancelTime: Date // 取消时间
|
||||
reportType: string // 举报类型
|
||||
scoreSc: number // 身材评分
|
||||
scoreNx: number // 耐心评分
|
||||
scoreSk: number // 爽快评分
|
||||
scoreYq: number // 有趣评分
|
||||
}
|
||||
|
||||
// 朋友圈操作 API
|
||||
export const OperationApi = {
|
||||
// 查询朋友圈操作分页
|
||||
getOperationPage: async (params: any) => {
|
||||
return await request.get({ url: `/member/operation/page`, params })
|
||||
},
|
||||
|
||||
// 查询朋友圈操作详情
|
||||
getOperation: async (id: number) => {
|
||||
return await request.get({ url: `/member/operation/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增朋友圈操作
|
||||
createOperation: async (data: OperationVO) => {
|
||||
return await request.post({ url: `/member/operation/create`, data })
|
||||
},
|
||||
|
||||
// 修改朋友圈操作
|
||||
updateOperation: async (data: OperationVO) => {
|
||||
return await request.put({ url: `/member/operation/update`, data })
|
||||
},
|
||||
|
||||
// 删除朋友圈操作
|
||||
deleteOperation: async (id: number) => {
|
||||
return await request.delete({ url: `/member/operation/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出朋友圈操作 Excel
|
||||
exportOperation: async (params) => {
|
||||
return await request.download({ url: `/member/operation/export-excel`, params })
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 朋友圈 VO
|
||||
export interface RecentVO {
|
||||
id: number // 收件地址编号
|
||||
memberId: number // 用户编号
|
||||
coverPic: string // 主图
|
||||
describe: string // 描述
|
||||
issueLong: number // 发布-经度
|
||||
issueLat: number // 发布-纬度
|
||||
issueProvince: string // 发布-省
|
||||
issueCity: string // 发布-市
|
||||
issueDistrict: string // 发布-区
|
||||
issueAddress: string // 发布-详细地址
|
||||
}
|
||||
|
||||
// 朋友圈 API
|
||||
export const RecentApi = {
|
||||
// 查询朋友圈分页
|
||||
getRecentPage: async (params: any) => {
|
||||
return await request.get({ url: `/member/recent/page`, params })
|
||||
},
|
||||
|
||||
// 查询朋友圈详情
|
||||
getRecent: async (id: number) => {
|
||||
return await request.get({ url: `/member/recent/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增朋友圈
|
||||
createRecent: async (data: RecentVO) => {
|
||||
return await request.post({ url: `/member/recent/create`, data })
|
||||
},
|
||||
|
||||
// 修改朋友圈
|
||||
updateRecent: async (data: RecentVO) => {
|
||||
return await request.put({ url: `/member/recent/update`, data })
|
||||
},
|
||||
|
||||
// 删除朋友圈
|
||||
deleteRecent: async (id: number) => {
|
||||
return await request.delete({ url: `/member/recent/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出朋友圈 Excel
|
||||
exportRecent: async (params) => {
|
||||
return await request.download({ url: `/member/recent/export-excel`, params })
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user