压测 dome
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
468 B

package PgTest
import (
"net/http"
"demo/internal/logic/PgTest"
"demo/internal/svc"
"github.com/zeromicro/go-zero/rest/httpx"
)
func PgInsertTestHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := PgTest.NewPgInsertTestLogic(r.Context(), svcCtx)
resp, err := l.PgInsertTest()
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.OkJsonCtx(r.Context(), w, resp)
}
}
}