项目初始化

This commit is contained in:
jerry
2025-01-21 01:46:34 +08:00
parent 364021b042
commit 48153e7761
962 changed files with 172070 additions and 0 deletions

195
sheep/api/worker/clerk.js Normal file
View File

@@ -0,0 +1,195 @@
import request from '@/sheep/request';
const ClerkApi = {
// 创建店员申请
createClerkApply: (data) => {
return request({
url: '/worker/clerk-apply/create',
method: 'POST',
data,
custom: {
showSuccess: true,
successMsg: '提交成功'
},
});
},
// 更新店员申请
updateClerkApply: (data) => {
return request({
url: '/worker/clerk-apply/update',
method: 'PUT',
data,
custom: {
showSuccess: true,
successMsg: '提交成功'
},
});
},
// 更新店员在线状态
updateOnlineStatus: (data) => {
return request({
url: '/worker/clerk-apply/updateOnlineStatus',
method: 'PUT',
data,
custom: {
showSuccess: true,
successMsg: '提交成功'
},
});
},
// 获得店员申请
getClerkApply: (id) => {
return request({
url: '/worker/clerk-apply/get',
method: 'GET',
params: { id },
custom: {
auth: true,
showLoading: false,
},
});
},
// 获得店员等级
getClerkLevel: (id) => {
return request({
url: '/worker/clerk-apply/getClerkLevel',
method: 'GET',
params: { id },
custom: {
auth: true,
showLoading: false,
},
});
},
// 获得店员申请
getClerk: (params) => {
return request({
url: '/worker/clerk/get',
method: 'GET',
params,
custom: {
auth: false,
showLoading: false,
},
});
},
// 获得店员盲盒
getClerkBlind: () => {
return request({
url: '/worker/clerk/getClerkBlind',
method: 'GET',
custom: {
auth: false,
showLoading: false,
},
});
},
// 获得商品分类列表
getCategoryListByParentId: (parentId) => {
return request({
url: '/worker/category/getCategoryListByParentId',
method: 'GET',
params: { parentId },
custom: {
auth: false,
showLoading: false,
},
});
},
// 保存技能管理
saveGoodsList: (data) => {
return request({
url: '/worker/clerk-apply/save',
method: 'PUT',
data,
custom: {
showSuccess: true,
successMsg: '保存成功'
},
});
},
// 获得店员列表
getClerkPage: (params) => {
return request({
url: '/worker/clerk/page',
method: 'GET',
params,
custom: {
auth: false,
showLoading: false,
},
});
},
// 获得店员关注列表
getClerkFansPage: (params) => {
return request({
url: '/worker/clerk-fans/page',
method: 'GET',
params,
custom: {
auth: false,
showLoading: false,
},
});
},
// 获得首页信息
getHomeData: () => {
return request({
url: '/worker/clerk/getHomeData',
method: 'GET',
custom: {
auth: false,
showLoading: false,
},
});
},
// 获得首页信息
getClerkList: () => {
return request({
url: '/worker/clerk/getClerkList',
method: 'GET',
custom: {
auth: true,
showLoading: false,
},
});
},
// 获得榜单信息
getWeekTopList: () => {
return request({
url: '/worker/clerk/getWeekTopList',
method: 'GET',
custom: {
auth: false,
showLoading: false,
},
});
},
// 获得店员申请列表
getClerkApplyPage: (params) => {
return request({
url: '/worker/clerk-apply/page',
method: 'GET',
params,
custom: {
auth: true,
showLoading: false,
},
});
},
// 获得商品列表
getGoodsList: (id) => {
return request({
url: '/worker/clerk-apply/list',
method: 'GET',
params: { id },
custom: {
auth: true,
showLoading: false,
},
});
},
};
export default ClerkApi;

View File

@@ -0,0 +1,60 @@
import request from '@/sheep/request';
const RewardApi = {
// 获得礼物列表
getGiftList: () => {
return request({
url: '/worker/gift/getList',
method: 'GET',
custom: {
auth: true,
showLoading: false,
},
});
},
// 获得打赏礼物列表
getRewardGiftList: (params) => {
return request({
url: '/worker/reward/getGiftList',
method: 'GET',
params: params,
custom: {
auth: false,
showLoading: false,
},
});
},
// 获得礼物列表
getTopList: () => {
return request({
url: '/worker/reward/getTopList',
method: 'GET',
custom: {
auth: false,
showLoading: false,
},
});
},
// 创建打赏订单
createRewardOrder: (data) => {
return request({
url: `/worker/reward/createOrder`,
method: 'POST',
data,
});
},
// 获得打赏分页
getRewardPage: (params) => {
return request({
url: '/worker/reward/page',
method: 'GET',
params,
custom: {
auth: true,
showLoading: false,
},
});
},
};
export default RewardApi;

100
sheep/api/worker/trend.js Normal file
View File

@@ -0,0 +1,100 @@
import request from '@/sheep/request';
const TrendApi = {
// 发布动态
createTrend: (data) => {
return request({
url: '/worker/trend/create',
method: 'POST',
data,
custom: {
auth: true,
showSuccess: true,
successMsg: '发布成功,请等待管理员审核'
},
});
},
// 动态点赞
createTrendLike: (data) => {
return request({
url: '/worker/trend-like/create',
method: 'POST',
data,
custom: {
auth: true,
showSuccess: false,
showLoading: false,
successMsg: '点赞成功'
},
});
},
// 删除动态
deleteTrendLike: (id) => {
return request({
url: '/worker/trend/delete',
method: 'DELETE',
params: {
id,
},
custom: {
auth: true,
showSuccess: true,
showLoading: false,
successMsg: '删除成功'
},
});
},
// 获得动态详情
getTrend: (id) => {
return request({
url: '/worker/trend/get',
method: 'GET',
params: { id },
custom: {
auth: false,
showLoading: false,
},
});
},
// 店员关注
createClerkFans: (data) => {
return request({
url: '/worker/clerk-fans/create',
method: 'POST',
data,
custom: {
auth: true,
showSuccess: false,
showLoading: false,
successMsg: '关注成功'
},
});
},
// 获得动态分页
getTrendPage: (params) => {
return request({
url: '/worker/trend/page',
method: 'GET',
params,
custom: {
auth: false,
showLoading: false,
},
});
},
// 获得动态分页
getMyTrendPage: (params) => {
return request({
url: '/worker/trend/myPage',
method: 'GET',
params,
custom: {
auth: true,
showLoading: false,
},
});
},
};
export default TrendApi;