feature:分类管理接口对接
This commit is contained in:
1 parent
f3d5e881af
commit
37a8db0055
12 files changed
+231
-154
No files matched your search
+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,23 @@
|
||||
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 CategoryDeleteRequest{
|
||||
id: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