rewrite write page

This commit is contained in:
simple321vip
2022-10-28 00:52:28 +08:00
parent 6fc98d832b
commit 2e2dbbbf72
3 changed files with 383 additions and 181 deletions
+31
View File
@@ -0,0 +1,31 @@
import { MockMethod } from 'vite-plugin-mock'
export default [
{
url: '/auth/api/v1/author/blog/content/0001',
method: 'get',
response: ({ body, query }) => {
return {
content: "asdasdasdasdsadasdasdasdasdas"
}
}
},
{
url: '/auth/api/v1/author/blog/content/0002',
method: 'get',
response: ({ body, query }) => {
return {
content: "wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww"
}
}
},
{
url: '/auth/api/v1/author/blog/content',
method: 'POST',
response: ({ body, query }) => {
return {
content: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
}
},
] as MockMethod[]