Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByDevice ¶
func DeleteByDevice(args *ArgsDeleteByDevice) (err error)
DeleteByDevice 删除指定用户的所有定位
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 GetList ¶
func GetList(args *ArgsGetList) (dataList []FieldsTrack, dataCount int64, err error)
GetList 获取定位追踪列表
Click to show internal directories.
Click to hide internal directories.