init: 初始化 hgmj 后台管理项目
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,171 @@
|
||||
import ajax from '../utils/request';
|
||||
|
||||
const BASE = '/officialWebsite';
|
||||
|
||||
const officialWebsiteApi = {
|
||||
// 基础数据
|
||||
getOfficialWebsiteBasic() {
|
||||
return ajax({ url: BASE, type: 'get' });
|
||||
},
|
||||
createOfficialWebsiteBasic(params) {
|
||||
return ajax({ url: BASE, type: 'post', params });
|
||||
},
|
||||
updateOfficialWebsiteBasic(params) {
|
||||
return ajax({ url: BASE, type: 'put', params }, true);
|
||||
},
|
||||
deleteOfficialWebsiteBasic(params) {
|
||||
return ajax({ url: BASE, type: 'delete', params });
|
||||
},
|
||||
|
||||
// 创作者
|
||||
getHeroList(params) {
|
||||
return ajax({ url: `${BASE}/hero/list`, type: 'get', params });
|
||||
},
|
||||
createHero(params) {
|
||||
return ajax({ url: `${BASE}/hero/create`, type: 'post', params });
|
||||
},
|
||||
updateHero(params) {
|
||||
return ajax({ url: `${BASE}/hero/update`, type: 'put', params }, true);
|
||||
},
|
||||
deleteHero(params) {
|
||||
return ajax({ url: `${BASE}/hero/delete`, type: 'delete', params });
|
||||
},
|
||||
|
||||
// 专辑
|
||||
getAlbumList(params) {
|
||||
return ajax({ url: `${BASE}/album/list`, type: 'get', params });
|
||||
},
|
||||
createAlbum(params) {
|
||||
return ajax({ url: `${BASE}/album/create`, type: 'post', params });
|
||||
},
|
||||
updateAlbum(params) {
|
||||
return ajax({ url: `${BASE}/album/update`, type: 'put', params }, true);
|
||||
},
|
||||
deleteAlbum(params) {
|
||||
return ajax({ url: `${BASE}/album/delete`, type: 'delete', params });
|
||||
},
|
||||
|
||||
// 视频
|
||||
getOfficialVideoList(params) {
|
||||
return ajax({ url: `${BASE}/video/list`, type: 'get', params });
|
||||
},
|
||||
createOfficialVideo(params) {
|
||||
return ajax({ url: `${BASE}/video/create`, type: 'post', params });
|
||||
},
|
||||
updateOfficialVideo(params) {
|
||||
return ajax({ url: `${BASE}/video/update`, type: 'put', params }, true);
|
||||
},
|
||||
deleteOfficialVideo(params) {
|
||||
return ajax({ url: `${BASE}/video/delete`, type: 'delete', params });
|
||||
},
|
||||
batchOfficialVideo(params) {
|
||||
return ajax({ url: `${BASE}/video/batch`, type: 'put', params }, true);
|
||||
},
|
||||
// 导入后台视频库视频
|
||||
importOfficialVideo(params) {
|
||||
return ajax({ url: `${BASE}/video/import`, type: 'put', params }, true);
|
||||
},
|
||||
getOfficialVideoListFromVid(params) {
|
||||
return ajax({ url: `${BASE}/video/listFromVid`, type: 'get', params });
|
||||
},
|
||||
|
||||
// 写真
|
||||
getPhotographList(params) {
|
||||
return ajax({ url: `${BASE}/photograph/list`, type: 'get', params });
|
||||
},
|
||||
createPhotograph(params) {
|
||||
return ajax({ url: `${BASE}/photograph/create`, type: 'post', params });
|
||||
},
|
||||
updatePhotograph(params) {
|
||||
return ajax({ url: `${BASE}/photograph/update`, type: 'put', params }, true);
|
||||
},
|
||||
deletePhotograph(params) {
|
||||
return ajax({ url: `${BASE}/photograph/delete`, type: 'delete', params });
|
||||
},
|
||||
batchPhotograph(params) {
|
||||
return ajax({ url: `${BASE}/photograph/batch`, type: 'put', params }, true);
|
||||
},
|
||||
|
||||
// 标签
|
||||
getOfficialTagList(params) {
|
||||
return ajax({ url: `${BASE}/tag/list`, type: 'get', params });
|
||||
},
|
||||
createOfficialTag(params) {
|
||||
return ajax({ url: `${BASE}/tag/create`, type: 'post', params });
|
||||
},
|
||||
updateOfficialTag(params) {
|
||||
return ajax({ url: `${BASE}/tag/update`, type: 'put', params }, true);
|
||||
},
|
||||
deleteOfficialTag(params) {
|
||||
return ajax({ url: `${BASE}/tag/delete`, type: 'delete', params });
|
||||
},
|
||||
|
||||
// 招聘表单
|
||||
getRecruitFormList(params) {
|
||||
return ajax({ url: `${BASE}/recruitForm/list`, type: 'get', params });
|
||||
},
|
||||
updateRecruitForm(params) {
|
||||
return ajax({ url: `${BASE}/recruitForm/update`, type: 'put', params }, true);
|
||||
},
|
||||
deleteRecruitForm(params) {
|
||||
return ajax({ url: `${BASE}/recruitForm/delete`, type: 'delete', params });
|
||||
},
|
||||
|
||||
// 职位
|
||||
getJobList(params) {
|
||||
return ajax({ url: `${BASE}/jobList/list`, type: 'get', params });
|
||||
},
|
||||
createJob(params) {
|
||||
return ajax({ url: `${BASE}/jobList/create`, type: 'post', params });
|
||||
},
|
||||
updateJob(params) {
|
||||
return ajax({ url: `${BASE}/jobList/update`, type: 'put', params }, true);
|
||||
},
|
||||
deleteJob(params) {
|
||||
return ajax({ url: `${BASE}/jobList/delete`, type: 'delete', params });
|
||||
},
|
||||
|
||||
// 新闻
|
||||
getNewsList(params) {
|
||||
return ajax({ url: `${BASE}/news/list`, type: 'get', params });
|
||||
},
|
||||
createNews(params) {
|
||||
return ajax({ url: `${BASE}/news/create`, type: 'post', params });
|
||||
},
|
||||
updateNews(params) {
|
||||
return ajax({ url: `${BASE}/news/update`, type: 'put', params }, true);
|
||||
},
|
||||
deleteNews(params) {
|
||||
return ajax({ url: `${BASE}/news/delete`, type: 'delete', params });
|
||||
},
|
||||
|
||||
// 合作伙伴
|
||||
getPartnerList(params) {
|
||||
return ajax({ url: `${BASE}/partner/list`, type: 'get', params });
|
||||
},
|
||||
createPartner(params) {
|
||||
return ajax({ url: `${BASE}/partner/create`, type: 'post', params });
|
||||
},
|
||||
updatePartner(params) {
|
||||
return ajax({ url: `${BASE}/partner/update`, type: 'put', params }, true);
|
||||
},
|
||||
deletePartner(params) {
|
||||
return ajax({ url: `${BASE}/partner/delete`, type: 'delete', params });
|
||||
},
|
||||
|
||||
// Business
|
||||
getBusinessList(params) {
|
||||
return ajax({ url: `${BASE}/business/list`, type: 'get', params });
|
||||
},
|
||||
createBusiness(params) {
|
||||
return ajax({ url: `${BASE}/business/create`, type: 'post', params });
|
||||
},
|
||||
updateBusiness(params) {
|
||||
return ajax({ url: `${BASE}/business/update`, type: 'put', params }, true);
|
||||
},
|
||||
deleteBusiness(params) {
|
||||
return ajax({ url: `${BASE}/business/delete`, type: 'delete', params });
|
||||
},
|
||||
};
|
||||
|
||||
export default officialWebsiteApi;
|
||||
Reference in New Issue
Block a user