31 lines
342 B
Go
31 lines
342 B
Go
|
package goapi
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
/*@API*/
|
||
|
type ARequestStruct struct {
|
||
|
A *string
|
||
|
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
|
||
|
}
|