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")
}

 

posted @ 2022-07-29 21:52  delphi中间件  阅读(37)  评论(0编辑  收藏  举报