service

package
v0.0.0-...-5384eee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaiduAk    = "EcaqNxUoy0LHtsVKXIshPOqHZZAHN7sj"       // BaiduAk
	BaiduSk    = "jh9cjRcM8CpBkuB4Sm5mnBMgAboqcUz3"       // BaiduSk
	BaiduIPUrl = "https://api.map.baidu.com/location/ip?" // 百度ip获取位置信息url
)

百度lbs相关

View Source
const (
	XForwardedFor = "X-Forwarded-For"
	XRealIP       = "X-Real-IP"
)

ip相关header

Variables

This section is empty.

Functions

func FcreateObject4d

func FcreateObject4d(recommendcon model.Miniocon, object model.Object4d, sourceobjectstream io.Reader, fileContentType string) (n int64, err error)

func FgetObject

func FgetObject(object model.Object4d) (stream *minio.Object, err error)

func GetLocation

func GetLocation(req *http.Request) (*model.Object4d, error)

GetLocation 根据req获取当前请求的地理位置信息, 如header中有longitude(经度)、latitude(纬度)字段, 则根据经纬度逆地理编码结构化为详细地址,如果没有上面两个字段, 则通过获取调用方ip获取详细地址

func Minioconcount

func Minioconcount() (c []model.Miniocon)

func RendMinioconid

func RendMinioconid() model.Miniocon

func SearchObject4d

func SearchObject4d(filter map[string]interface{}) (result []model.Object4d, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL