apigen/test/goapi/test.go

44 lines
546 B
Go

package goapi
import (
"context"
)
//
///*@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
//}
/*@API*/
type AStr struct {
A string
}
/*
@API
@PATH: /someapi
*/
func SomeAPI2(ctx context.Context, a *AStr) ([]*AStr, error) {
return nil, nil
}