feat: release v1.0.0

This commit is contained in:
2026-07-29 22:10:33 +08:00
parent 3abf272e33
commit 97235386ca
98 changed files with 2389 additions and 467 deletions

22
src/api/blog/tag.ts Normal file
View File

@@ -0,0 +1,22 @@
import { http } from '@/lib'
import type { PageParams, Tag, TagForm } from '@/schemas'
export const getTags = (params: PageParams) => {
return http.get<Tag[], ApiPageResponse<Tag>>('/tag', { params })
}
export const createTag = (data: TagForm) => {
return http.post('/tag', data)
}
export const updateTag = (id: number, data: TagForm) => {
return http.patch(`/tag/${id}`, data)
}
export const deleteTag = (id: number) => {
return http.delete(`/tag/${id}`)
}
export const listAllTags = () => {
return http.get<Tag[]>('/tag/all')
}