🎉 搭完基本框架

This commit is contained in:
zhaoyupeng
2024-09-26 17:54:14 +08:00
commit fcb2a349e7
46 changed files with 10552 additions and 0 deletions

View File

@ -0,0 +1,25 @@
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")
}