Initial commit: Telegram Management System
Some checks failed
Deploy / deploy (push) Has been cancelled
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>
This commit is contained in:
40
marketing-agent/frontend/src/api/modules/auth.js
Normal file
40
marketing-agent/frontend/src/api/modules/auth.js
Normal file
@@ -0,0 +1,40 @@
|
||||
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}`)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user