import { request } from '../axios.config' ; import { ListResponse } from '@/client/types/response/list.response' ; import { Tag } from '@/client/types/tag.interface' ; interface UpdateTag { tag_id : number ; name ? : string ; picture ? : string ; desc ? : string ; } export const user = { createTag ( postData ) { return request . post ( '/tag/user/create-tag' , postData ) ; } , updateTag ( data ) { return request . post ( '/tag/user/update-tag' , data ) ; } , deleteTag ( tagId ) { return request . get ( '/tag/user/delete-tag' , { params : { tag_id : tagId , } , } ) ; } , getList ( params ) { return request . get ( '/tag/user/list' , { params } ) ; } } ;