import { request } from '../axios.config' ; import { Article } from '@/client/types/article.interface' ; import { ListResponse } from '@/client/types/response/list.response' ; import { User } from '@/client/types/user.interface' ; import { NumberString } from '@/client/types/NumberString.interface' ; export const user = { createArticle ( data ) { return request . post ( '/article/user/create-article' , data ) ; } , updateArticle ( data ) { return request . post ( '/article/user/update-article' , data ) ; } , deleteArticle ( articleId ) { return request . get ( '/article/user/delete' , { params : { article_id : articleId , } , } ) ; } , getArticle ( data ) { return request . get ( '/article/user/detail' , { params : data , } ) ; } , getList ( params ) { return request . get ( '/article/user/list' , { params } ) ; } , search ( title , page , size ) { return request . get ( '/article/user/search' , { params : { page , size , title , } , } ) ; } } ;