let apiRoot = 'https://www.xzszwhy.cn/';
let clinetUser = 'usercenter/';
let clinetNews = 'news/';
let api = {
	common: {
		aboutUs: apiRoot + 'common/aboutUs.html',
		verify: apiRoot + "common/verify.html",
	},
	news: {
		getMainFun: apiRoot + clinetNews + "app/newsdirectories/listnewsdirectoriesrelease",
		getNewsList: apiRoot + clinetNews +
			"app/newscontent/listpagenewscontentrelease", //获取新闻列表  newsDirectoriesId 
		NEWS_MAIN_ID: "f497904b-7727-4832-891c-604c36ae4167",//新闻类型ID
		NEWS_BANNER_ID: "eab0ca3c-d35d-4c02-9397-ace2bdd10fc1",
		imgUrl: apiRoot + clinetNews + "route/file/downloadfile/true/"
	},
	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/login", //post 登录
		doRegister: apiRoot + clinetUser + "app/register/saveregisteruser", //post 注册
		doChangePhone: apiRoot + clinetUser + "app/user/updatephoneusername", //修改手机号  put
		doChangePwd: apiRoot + clinetUser + "app/user/updateuserpassword", //put 修改密码
		getUserInfo: apiRoot + clinetUser + "app/user/getappuser", //获取用户基础信息
	},
	wechat: {
		miniAppLogin: apiRoot + 'wechat/miniAppLogin',
		mpLogin: apiRoot + 'wechat/mpLogin',
		devLogin: apiRoot + 'wechat/devLogin',
		mpConfig: apiRoot + 'wechat/mpConfig',
	},
};
export default api;
