23 lines
376 B
Go
23 lines
376 B
Go
package http
|
|
|
|
import "time"
|
|
|
|
type PostRequest struct {
|
|
Key string `form:"key" binding:"required"`
|
|
Value string `form:"value" binding:"required"`
|
|
}
|
|
|
|
var (
|
|
channelKeys = []string{
|
|
"thermocouple", "gain", "offset",
|
|
}
|
|
|
|
deviceKeys = []string{
|
|
"debug", "nolog", "noweb", "led",
|
|
}
|
|
)
|
|
|
|
func (g *GinAdapter) getTimestamp() string {
|
|
return time.Now().Format(time.RFC1123)
|
|
}
|