first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,79 @@
import Api from '@/api'
import config from '@/config'
export default class HomeService {
async token (data = {}, headers = {}) {
return await (new Api).post({
url: config.apiList.token,
data,
headers
})
}
async push (data = {}, headers = {}) {
return await (new Api).post({
url: config.apiList.push,
data,
headers
})
}
async notice (data = {}, headers = {}) {
return await (new Api).post({
url: config.apiList.notice,
data,
headers
})
}
//详情
async info (data = {}, headers = {}) {
return await (new Api).post({
url: config.apiList.info,
data,
headers
})
}
//获取用户发布的历史记录信息
async history (data = {}, headers = {}) {
console.log(1)
console.log("data",data)
return await (new Api).post({
url: config.apiList.history,
data,
headers
})
}
//修改 失物招领 和 寻物启事 的状态
async changeStatus (data = {}, headers = {}) {
return await (new Api).post({
url: config.apiList.changeStatus,
data,
headers
})
}
async tab (data = {}, headers = {}) {
return await (new Api).post({
url: config.apiList.tab,
data,
headers
})
}
async uploadFile (data = {}, headers = {}) {
return await (new Api("noBaseUrl")).post({
url: config.aliOss.host,
data,
headers
})
}
async trigger(data = {}, headers = {}) {
return await (new Api).post({
url: config.apiList.search,
data,
headers
})
}
}

View File

@@ -0,0 +1,22 @@
import Api from '@/api'
import config from '@/config'
export default class MeService {
async history (data = {}, headers = {}){
console.log(4)
return await (new Api).post({
url: config.apiList.Statistics,
data,
headers
})
}
async meinfo (data = {}, headers = {}){
console.log(4)
return await (new Api).post({
url: config.apiList.edit,
data,
headers
})
}
}

View File

@@ -0,0 +1,20 @@
import Api from '@/api'
import config from '@/config'
export default class UserService {
async add (data = {}, headers = {}) {
return await (new Api).post({
url: config.apiList.add,
data,
headers
})
}
async login (data = {}, headers = {}) {
return await (new Api).post({
url: config.apiList.login,
data,
headers
})
}
}

View File

@@ -0,0 +1,9 @@
import HomeService from './Home';
import UserService from './User';
import MeService from './Me';
export default {
home: new HomeService,
user: new UserService,
me:new MeService
}