10 lines
387 B
TypeScript
10 lines
387 B
TypeScript
|
import {httpReq} from "@/utils/axiosReq";
|
||
|
import {AddDiary, ListDiary} from "@/components/type/Diary";
|
||
|
import {ResponseVO} from "@/lib/definitions";
|
||
|
import {AxiosResponse} from "axios";
|
||
|
|
||
|
export const addTaskLogAPI= (data:AddDiary):Promise<AxiosResponse<ResponseVO<ListDiary>>> =>{
|
||
|
return httpReq.post(process.env.NEXT_PUBLIC_TODO_REQUEST_URL + "/task/message/diary",
|
||
|
data)
|
||
|
}
|