Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaimedReward ¶
Types ¶
type ClaimedRes ¶
type ParamClaimed ¶
type ParamClaimed struct {
Token string `json:"token" bind:"required"`
}
type PostReward ¶
type PostReward[paramType any, responseType any] struct { Path string `json:"-" default:"/common/claimed"` Method string `json:"-" default:"/POST"` Param paramType `json:"-"` Response responseType `json:"-"` Handler func(context.Context, *paramType, *responseType) error }
func PostHandler ¶
Click to show internal directories.
Click to hide internal directories.