diff --git a/api/phase2/onceMedal.js b/api/phase2/onceMedal.js new file mode 100644 index 0000000..487cbd3 --- /dev/null +++ b/api/phase2/onceMedal.js @@ -0,0 +1,20 @@ +/**文章模块的相关处理*/ +// import ajax from '@/utils/xajax.js' +import config from '@/config/index.js' +import ajax from '../ajax' +const baseURL = config.statApiBaseUrl; + +const has = function(type) { + return ajax.post(baseURL,'/xboe/m/stat/once/medal/has',{type}); +} + +const save = function(type) { + return ajax.post(baseURL,'/xboe/m/stat/once/medal/save',{type}); +} + + + +export default { + has, + save +}