multiple improvements
This commit is contained in:
@@ -83,15 +83,49 @@ async function InvokeOk(path: string, method: HTMLMethod, body?: any): Promise<b
|
||||
//#region Types
|
||||
export interface AStr {
|
||||
a:string
|
||||
b:string
|
||||
}
|
||||
|
||||
export interface AStr2 {
|
||||
z:AStr
|
||||
w:{[s:string]:AStr}
|
||||
x:string
|
||||
y:string
|
||||
}
|
||||
|
||||
export interface ARequestStruct {
|
||||
b:number
|
||||
c:Date
|
||||
d:string
|
||||
a:string
|
||||
}
|
||||
|
||||
export interface AResponseStruct {
|
||||
a:string
|
||||
b:number
|
||||
c:Date
|
||||
d:string
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Methods
|
||||
/**
|
||||
SomeAPI*/
|
||||
export async function SomeAPI(req:AStr):Promise<AStr[]>{
|
||||
return InvokeJSON("/someapi","PUT",req)
|
||||
}
|
||||
|
||||
/**
|
||||
SomeAPI2*/
|
||||
export async function SomeAPI2(req:AStr):Promise<AStr[]>{
|
||||
return InvokeJSON("/someapi","POST",req)
|
||||
}
|
||||
|
||||
/**
|
||||
SomeAPI3*/
|
||||
export async function SomeAPI3(req:AStr):Promise<AStr[]>{
|
||||
return InvokeJSON("/someapi3","POST",req)
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
Reference in New Issue
Block a user