th7/api/http/util.go

13 lines
239 B
Go
Raw Normal View History

2023-12-05 17:22:12 +00:00
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)
}