Merge branch 'main' into feature/31-carousal
This commit is contained in:
commit
df4d5848a2
22 files changed
+1197
-155
No files matched your search
@@ -0,0 +1,29 @@
|
||||
import type { AuditBaseModel,Paging } from '@/model/base'
|
||||
import type { Category } from './category'
|
||||
|
||||
export enum ArticleStatus {
|
||||
Draft = 'draft',
|
||||
Published = 'published',
|
||||
Closed = 'closed'
|
||||
}
|
||||
|
||||
export interface Article extends AuditBaseModel{
|
||||
title: string
|
||||
content:string
|
||||
category: Category
|
||||
status: ArticleStatus
|
||||
}
|
||||
|
||||
|
||||
export interface ArticleSearchFilter extends Partial<Paging>{
|
||||
order?: string
|
||||
title?: string
|
||||
content?:string
|
||||
categoryId?:string
|
||||
}
|
||||
|
||||
export interface CreateArticleRequest{
|
||||
categoryId:string
|
||||
title: string
|
||||
content: number
|
||||
}
|
||||
+5
-3
@@ -5,7 +5,7 @@ export interface ErrorResponse {
|
||||
message: string;
|
||||
}
|
||||
export interface BaseModel {
|
||||
id: number
|
||||
id: string
|
||||
createdTime: string
|
||||
updateTime: string
|
||||
}
|
||||
@@ -25,6 +25,8 @@ export interface BaseFilterRequest extends Partial<Paging>{
|
||||
}
|
||||
|
||||
export interface PageResult<T> {
|
||||
paging: Paging,
|
||||
pagination: Paging,
|
||||
data: T[]
|
||||
}
|
||||
}
|
||||
|
||||
export interface ErrorResponseList extends Array<ErrorResponse> {}
|
||||
@@ -0,0 +1,20 @@
|
||||
import type { AuditBaseModel,Paging } from '@/model/base'
|
||||
|
||||
|
||||
export interface Category extends AuditBaseModel{
|
||||
name: string
|
||||
code:string
|
||||
order: number
|
||||
}
|
||||
|
||||
|
||||
export interface CategorySearchFilter extends Partial<Paging>{
|
||||
order?: string
|
||||
}
|
||||
|
||||
|
||||
export interface UpdateCategoryRequest{
|
||||
name: string
|
||||
code:string
|
||||
order: number
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
import type { BaseModel } from '@/model/base'
|
||||
|
||||
export interface Classify extends BaseModel{
|
||||
numbering:string
|
||||
name: string
|
||||
sort: string
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user