18 lines
354 B
TypeScript
18 lines
354 B
TypeScript
import client from './client'
|
|
|
|
export function createPerson(data: any) {
|
|
return client.post('/api/v1/person', data)
|
|
}
|
|
|
|
export function listPersons() {
|
|
return client.get('/api/v1/person/list')
|
|
}
|
|
|
|
export function listTags() {
|
|
return client.get('/api/v1/tag/list')
|
|
}
|
|
|
|
export function createTag(data: any) {
|
|
return client.post('/api/v1/tag', data)
|
|
}
|