Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
729 B
JavaScript
40 lines
729 B
JavaScript
import { request } from '../index'
|
|
|
|
export default {
|
|
login(data) {
|
|
return request.post('/auth/login', data)
|
|
},
|
|
|
|
register(data) {
|
|
return request.post('/auth/register', data)
|
|
},
|
|
|
|
logout() {
|
|
return request.post('/auth/logout')
|
|
},
|
|
|
|
getProfile() {
|
|
return request.get('/auth/me')
|
|
},
|
|
|
|
updateProfile(data) {
|
|
return request.put('/auth/profile', data)
|
|
},
|
|
|
|
changePassword(data) {
|
|
return request.post('/auth/change-password', data)
|
|
},
|
|
|
|
// API Key management
|
|
getApiKeys() {
|
|
return request.get('/auth/api-keys')
|
|
},
|
|
|
|
createApiKey(data) {
|
|
return request.post('/auth/api-keys', data)
|
|
},
|
|
|
|
deleteApiKey(id) {
|
|
return request.delete(`/auth/api-keys/${id}`)
|
|
}
|
|
} |