15 lines
252 B
Go
15 lines
252 B
Go
package server
|
|
|
|
import (
|
|
"api/utils/r"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// NetWorkApi 网络接口
|
|
type NetWorkApi struct{}
|
|
|
|
// GetHeaders 获取请求头
|
|
func (*NetWorkApi) GetHeaders(c *gin.Context) {
|
|
r.SuccessData(c, networkService.GetHeaders(c))
|
|
}
|