apigen/test/goapi/test.go

31 lines
354 B
Go
Raw Normal View History

package goapi
import (
"context"
"time"
)
/*@API*/
type ARequestStruct struct {
2020-11-06 23:16:52 +00:00
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
2020-11-06 23:16:52 +00:00
@PATH: /someapi
*/
func SomeAPI(ctx context.Context, a *ARequestStruct) (*AResponseStruct, error) {
return nil, nil
}