nf-disk/internal/handler/connection.go

26 lines
382 B
Go
Raw Normal View History

2024-09-26 17:51:40 +08:00
package handler
import (
"nf-disk/internal/ndh"
)
func ConnectionTest(c *ndh.Ctx) error {
type Req struct {
Name string `json:"name"`
Endpoint string `json:"endpoint"`
Access string `json:"access"`
Key string `json:"key"`
}
var (
err error
req = new(Req)
)
if err = c.ReqParse(req); err != nil {
return err
}
return c.Send200("test success")
}