2020-11-04 16:14:18 +00:00
|
|
|
package goapi
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
2020-12-12 12:21:12 +00:00
|
|
|
//
|
|
|
|
///*@API*/
|
|
|
|
//type ARequestStruct struct {
|
|
|
|
// A *string `json:"a"`
|
|
|
|
// B int64
|
|
|
|
// C time.Time
|
|
|
|
// D *string
|
|
|
|
//}
|
|
|
|
//
|
|
|
|
///*@API*/
|
|
|
|
//type AResponseStruct struct {
|
|
|
|
// A string
|
|
|
|
// B int64
|
|
|
|
// C time.Time
|
|
|
|
// D *string
|
|
|
|
//}
|
|
|
|
//
|
|
|
|
///*
|
|
|
|
//@API
|
|
|
|
//@PATH: /someapi
|
|
|
|
//*/
|
|
|
|
//func SomeAPI(ctx context.Context, a *ARequestStruct) (*AResponseStruct, error) {
|
|
|
|
// return nil, nil
|
|
|
|
//}
|
2020-11-04 16:14:18 +00:00
|
|
|
|
|
|
|
/*@API*/
|
2020-12-12 12:21:12 +00:00
|
|
|
type AStr struct {
|
2020-11-04 16:14:18 +00:00
|
|
|
A string
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
@API
|
2020-11-06 23:16:52 +00:00
|
|
|
@PATH: /someapi
|
2020-11-04 16:14:18 +00:00
|
|
|
*/
|
2020-12-12 12:21:12 +00:00
|
|
|
func SomeAPI2(ctx context.Context, a *AStr) ([]*AStr, error) {
|
2020-11-04 16:14:18 +00:00
|
|
|
return nil, nil
|
|
|
|
}
|