added array to params
This commit is contained in:
+3
-13
@@ -81,26 +81,16 @@ async function InvokeOk(path: string, method: HTMLMethod, body?: any): Promise<b
|
||||
//#endregion
|
||||
|
||||
//#region Types
|
||||
export interface ARequestStruct {
|
||||
export interface AStr {
|
||||
a:string
|
||||
b:number
|
||||
c:Date
|
||||
d:string
|
||||
}
|
||||
|
||||
export interface AResponseStruct {
|
||||
a:string
|
||||
b:number
|
||||
c:Date
|
||||
d:string
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Methods
|
||||
/**
|
||||
SomeAPI*/
|
||||
export async function SomeAPI(req:ARequestStruct):Promise<AResponseStruct>{
|
||||
SomeAPI2*/
|
||||
export async function SomeAPI2(req:AStr):Promise<AStr[]>{
|
||||
return InvokeJSON("/someapi","POST",req)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user