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.
25 lines
538 B
25 lines
538 B
package GPSqlController
|
|
|
|
import (
|
|
"dsDataex/MyReport/GPSql/GPSqlOpenapi"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
//Gin 路由配置
|
|
func Routers(r *gin.RouterGroup) {
|
|
rr := r.Group("/report")
|
|
|
|
rr.POST("/QuerySimpleGP", GPSqlOpenapi.QuerySimpleGP)
|
|
|
|
rr.OPTIONS("/QuerySimpleGP", HandleOptions)
|
|
|
|
}
|
|
|
|
func HandleOptions(c *gin.Context) {
|
|
c.Header("Access-Control-Allow-Origin", "*")
|
|
c.Header("Access-Control-Allow-Methods", "POST, GET, OPTIONS")
|
|
c.Header("Access-Control-Allow-Headers", "X-Requested-With, Content-Type")
|
|
|
|
c.String(200, "ok")
|
|
}
|