mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
feat(FE-40): create api type for nonstock
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
|||||||
|
import { BaseApiResponse } from '@/types/api/api-general';
|
||||||
|
|
||||||
|
export type Nonstock = {
|
||||||
|
id: number;
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type CreateNonstockPayload = {
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type UpdateNonstockPayload = CreateNonstockPayload;
|
||||||
|
|
||||||
|
export type NonstockResponse = BaseApiResponse<Nonstock>;
|
||||||
|
|
||||||
|
export type NonstocksResponse = BaseApiResponse<Nonstock[]>;
|
||||||
|
|
||||||
|
export type DeleteNonstockResponse = BaseApiResponse;
|
||||||
Reference in New Issue
Block a user