ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
```js import request from '@/common/request' export default { create (data) { return new Promise((resolve, reject) => { request.post('/event', data).then(response => { resolve(response) }) }) }, getList (map = {}) { return new Promise((resolve, reject) => { request.get('/event', map).then(response => { resolve(response) }) }) }, getInfo (id, map = {}) { return new Promise((resolve, reject) => { request.get('/event/' + id, map).then(response => { resolve(response) }) }) }, update (id, data) { return new Promise((resolve, reject) => { request.put('/event/' + id, data).then(response => { resolve(response) }) }) }, delete (id) { return new Promise((resolve, reject) => { request.delete('/event/' + id).then(response => { resolve(response) }) }) } } ```