13 lines
239 B
Go
13 lines
239 B
Go
package http
|
|
|
|
import "time"
|
|
|
|
type PostRequest struct {
|
|
Key string `form:"key" binding:"required"`
|
|
Value string `form:"value" binding:"required"`
|
|
}
|
|
|
|
func (g *GinAdapter) getTimestamp() string {
|
|
return time.Now().Format(time.RFC1123)
|
|
}
|