gin路由
gin路由
// svrGIN project main.go package main //cxg 2022-7-29 import ( "svrGIN/dal" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() rest := r.Group("/rest") { rest.POST("/units/select/*where", dal.SelectUnits) rest.POST("/units/insert/", dal.InsertUnits) rest.POST("/units/update/", dal.UpdateUnits) rest.POST("/units/delete/*where", dal.DeleteUnits) } r.Run(":8000") }
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/p/16533686.html