64 lines
3.0 KiB
JavaScript
64 lines
3.0 KiB
JavaScript
let apiRoot = 'http://192.168.0.120:7019/';
|
|
let clinetUser = 'qmywzs/';
|
|
let clinetNews = 'qmywzs/';
|
|
let clinetDuty = 'qmywzs/';
|
|
let api = {
|
|
common: {
|
|
imgUrl: apiRoot + clinetDuty + "route/file/download/true/",
|
|
baseUrl: apiRoot + clinetDuty,
|
|
getAppVersion: apiRoot + clinetDuty + "app/appversion/get-number/29605432-4eb4-4c19-a01c-89f05486fd9a",
|
|
appDownloadUrl: apiRoot + clinetDuty + "app/appversion/download/29605432-4eb4-4c19-a01c-89f05486fd9a",
|
|
doUploadImg: apiRoot + clinetDuty + "app/file/uploadimage",
|
|
},
|
|
news: {
|
|
getMainFun: apiRoot + clinetNews + "app/newsdirectories/listnewsdirectoriesrelease",
|
|
getNewsList: apiRoot + clinetNews +
|
|
"app/newscontent/listpagenewscontentrelease", //获取新闻列表 newsDirectoriesId
|
|
NEWS_MAIN_ID: "cadef8e1-1baf-4aec-a1b4-f002bd5e99f5", //新闻类型ID
|
|
NEWS_BANNER_ID: "cb7cd502-ff00-4d58-83c1-c54c57add14c",
|
|
imgUrl: apiRoot + clinetNews + "route/file/download/true/",
|
|
|
|
},
|
|
duty: {
|
|
getActivityList: apiRoot + clinetDuty + "app/activity/release/listpage",
|
|
getActivityDetail: apiRoot + clinetDuty + "app/activity/release/get/",
|
|
doSignActivity: apiRoot + clinetDuty + "app/activity-join/save",
|
|
getMineActivity: apiRoot + clinetDuty + "app/activity-join/myActivity",
|
|
delMineActivity: apiRoot + clinetDuty + "app/activity-join/remove/",
|
|
getDutyExplain: apiRoot + clinetDuty + "app/activity-responsible/list",
|
|
},
|
|
article: {
|
|
index: apiRoot + 'article/index.html',
|
|
category: apiRoot + 'article/category.html',
|
|
detail: apiRoot + 'article/detail.html',
|
|
comment: apiRoot + 'article/comment.html',
|
|
commentDetail: apiRoot + "article/commentDetail.html",
|
|
commentReply: apiRoot + "article/commentReply.html",
|
|
addComment: apiRoot + 'article/addComment.html',
|
|
addReply: apiRoot + 'article/addReply.html',
|
|
like: apiRoot + "article/like.html",
|
|
commentLike: apiRoot + "article/commentLike.html",
|
|
commentReplyLike: apiRoot + "article/commentReplyLike.html",
|
|
favorite: apiRoot + "article/favorite.html",
|
|
favoriteList: apiRoot + "article/favoriteList.html",
|
|
},
|
|
user: {
|
|
getVerifyCode: apiRoot + clinetUser + "api/sms/getverificationcode/", //get 获取验证码
|
|
doLogin: apiRoot + clinetUser + "app/sign/default", //post 登录
|
|
doRegister: apiRoot + clinetUser + "app/register/saveregisteruser", //post 注册
|
|
doChangePhone: apiRoot + clinetUser + "app/user/updatephoneusername", //修改手机号 put
|
|
doChangePwd: apiRoot + clinetUser + "app/user/update-password", //put 修改密码
|
|
getUserInfo: apiRoot + clinetUser + "app/user/get-app-user", //获取用户基础信息
|
|
doUpdateUserIcon: apiRoot + clinetDuty + "app/user/update-avatar", //更新用户头像
|
|
doUpdateUserInfo: apiRoot + clinetDuty + "app/user/update-info", //更改用户信息
|
|
|
|
},
|
|
wechat: {
|
|
miniAppLogin: apiRoot + 'wechat/miniAppLogin',
|
|
mpLogin: apiRoot + 'wechat/mpLogin',
|
|
devLogin: apiRoot + 'wechat/devLogin',
|
|
mpConfig: apiRoot + 'wechat/mpConfig',
|
|
},
|
|
};
|
|
export default api;
|