dlwork

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jbqy

type Jbqy struct {
	Longitude string `json:"jbqyjd,omitempty"` // 禁爆区域中心位置经度
	Latitude  string `json:"jbqywd,omitempty"` // 禁爆区域中心位置纬度
	Radius    string `json:"jbqybj,omitempty"` // 禁爆区域半径
	StartTime string `json:"jbqssj,omitempty"` // 禁爆起始时间
	LastTime  string `json:"jbjzsj,omitempty"` // 禁爆截止时间
}

type JbqyList

type JbqyList struct {
	Items []Jbqy `json:"jbqy,omitempty"`
}

type Lg

type Lg struct {
	Fbh     string `json:"fbh,omitempty"`
	Uid     string `json:"uid,omitempty"`
	Gzm     string `json:"gzm,omitempty"`
	Yxq     string `json:"yxq,omitempty"` // yyyy-mm-dd hh24:mi:ss
	Gzmcwxx string `json:"gzmcwxx,omitempty"`
}

type LgList

type LgList struct {
	Items []Lg `json:"lg,omitempty"`
}

type Location

type Location struct {
	Latitude  string `json:"latitude,omitempty"`  // 纬度
	Longitude string `json:"longitude,omitempty"` // 经度
}

type OfflineWorkCodeReq

type OfflineWorkCodeReq struct {
	Dwdm string `json:"dwdm,omitempty"` // 单位代码
	Sbbh string `json:"sbbh,omitempty"` // 起爆器设备编号
	HtId string `json:"htid,omitempty"` // 合同ID
	Xmbh string `json:"xmbh,omitempty"` // 项目编号

	Xtm string `json:"xtm,omitempty"` // 箱条码
	Htm string `json:"htm,omitempty"` // 盒条码
	Fbh string `json:"fbh,omitempty"` // 发条码

}

type OfflineWorkCodeResp added in v0.0.13

type OfflineWorkCodeResp struct {
	Cwxx    string `json:"cwxx,omitempty"`
	Success string `json:"success,omitempty"`
}

type Resp

type Resp struct {
	ErrorMessage string `json:"cwxx,omitempty"`
}

type Sdk

type Sdk interface {
	GetWorkCode(req WorkCodeReq) (code int, resp WorkCodeResp, err error)
	OfflineGetWorkCode(req OfflineWorkCodeReq) (code int, resp WorkCodeResp, err error)
	Upload(req UploadReq) (code int, resp OfflineWorkCodeResp, err error)
}

func New

func New(host string, key []byte) (sdk Sdk)

type UploadReq

type UploadReq struct {
	Dwdm string `json:"dwdm,omitempty"` // 单位代码
	Sbbh string `json:"sbbh,omitempty"` // 起爆器设备编号
	HtId string `json:"htid,omitempty"` // 合同ID
	Xmbh string `json:"xmbh,omitempty"` // 项目编号

	Jd string `json:"jd,omitempty"` // 经度
	Wd string `json:"wd,omitempty"` // 纬度

	Bpsj    string `json:"bpsj,omitempty"`    // 爆破时间 YYYY-MM-DD HH:MM:SS
	Bprysfz string `json:"bprysfz,omitempty"` // 爆破人员身份证
	Uid     string `json:"uid,omitempty"`     // UID 多个雷管之间用逗号分隔

}

type WorkCodeQbq added in v0.0.12

type WorkCodeQbq struct {
	Qbq string `json:"sbbh,omitempty"` // 起爆器
}

type WorkCodeReq

type WorkCodeReq struct {
	Sbbh string `json:"sbbh,omitempty"` // 起爆器设备编号
	Jd   string `json:"jd,omitempty"`   // 经度
	Wd   string `json:"wd,omitempty"`   // 纬度
	Uid  string `json:"uid,omitempty"`  // 雷管UID(多个雷管逗号分隔)
	HtId string `json:"htid,omitempty"` // 合同ID
	Xmbh string `json:"xmbh,omitempty"` // 项目编号
	Dwdm string `json:"dwdm,omitempty"` // 单位代码
}

type WorkCodeResp

type WorkCodeResp struct {
	Resp
	Sqri  string        `json:"sqri,omitempty"`  // 申请日期:yyyy-mm-dd hh24:mi:ss
	Qbqs  []WorkCodeQbq `json:"sbbhs,omitempty"` // 起爆器列表15
	Zbqys ZbqyList      `json:"zbqys"`           // 准爆区域
	Jbqys JbqyList      `json:"jbqys"`           // 禁爆区域
	Lgs   LgList        `json:"lgs"`             // 每一条代表一发雷管的密码
}

type Zbqy

type Zbqy struct {
	Name      string `json:"zbqymc,omitempty"` // 准爆区域名称
	Longitude string `json:"zbqyjd,omitempty"` // 准爆区域中心位置经度
	Latitude  string `json:"zbqywd,omitempty"` // 准爆区域中心位置纬度
	Radius    string `json:"zbqybj,omitempty"` // 准爆区域半径 千米
	StartTime string `json:"zbqssj,omitempty"` // 准爆起始时间 YYYYMMDD
	LastTime  string `json:"zbjzsj,omitempty"` // 准爆截止时间
}

type ZbqyList

type ZbqyList struct {
	Items []Zbqy `json:"zbqy,omitempty"`
}

Jump to

Keyboard shortcuts

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