IOTTrack

package
v5.1.37 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(args *ArgsCreate) (err error)

Create 添加新的定位

func DeleteByDevice

func DeleteByDevice(args *ArgsDeleteByDevice) (err error)

DeleteByDevice 删除指定用户的所有定位

func Run

func Run()

Types

type ArgsCreate

type ArgsCreate struct {
	//所属设备
	DeviceID int64 `db:"device_id" json:"deviceID" check:"id"`
	//地图制式
	// 0 / 1 / 2 / 3
	// WGS-84 / GCJ-02 / BD-09 / 2000中国大地坐标系
	MapType int `db:"map_type" json:"mapType"`
	//坐标位置
	Longitude float64 `db:"longitude" json:"longitude"`
	Latitude  float64 `db:"latitude" json:"latitude"`
	//基站信息
	StationInfo string `db:"station_info" json:"stationInfo"`
}

ArgsCreate 添加新的定位参数

type ArgsDeleteByDevice

type ArgsDeleteByDevice struct {
	//所属设备
	DeviceID int64 `db:"device_id" json:"deviceID" check:"id"`
}

ArgsDeleteByDevice 删除指定用户的所有定位参数

type ArgsGetLast

type ArgsGetLast struct {
	//所属设备
	DeviceID int64 `db:"device_id" json:"deviceID" check:"id"`
}

ArgsGetLast 获取最新的定位参数

type ArgsGetList

type ArgsGetList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//所属设备
	DeviceID int64 `db:"device_id" json:"deviceID" check:"id" empty:"true"`
	//地图制式
	// 0 / 1 / 2
	// WGS-84 / GCJ-02 / BD-09
	MapType int `db:"map_type" json:"mapType"`
}

ArgsGetList 获取定位追踪列表参数

type FieldsTrack

type FieldsTrack struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	// 访问的时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//设备ID
	DeviceID int64 `db:"device_id" json:"deviceID"`
	//地图制式
	// 0 / 1 / 2 / 3
	// WGS-84 / GCJ-02 / BD-09 / 2000-china
	MapType int `db:"map_type" json:"mapType"`
	//坐标位置
	Longitude float64 `db:"longitude" json:"longitude"`
	Latitude  float64 `db:"latitude" json:"latitude"`
	//基站信息
	StationInfo string `db:"station_info" json:"stationInfo"`
}

FieldsTrack 设备追踪表

func GetLast

func GetLast(args *ArgsGetLast) (data FieldsTrack, err error)

GetLast 获取最新的定位

func GetList

func GetList(args *ArgsGetList) (dataList []FieldsTrack, dataCount int64, err error)

GetList 获取定位追踪列表

Jump to

Keyboard shortcuts

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