3 Star 0 Fork 3

上海炘璞电子科技有限公司/detonator

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sdk.go 972 Bytes
一键复制 编辑 原始数据 按行查看 历史
alex 提交于 2023-11-15 22:59 +08:00 . danling sdk
package danling
type Client interface {
RegisterDetonator(projects ...XpxxProjectInfo) (code int, err error)
UploadQbrz(projects ...QbrzxxProjectInfo) (code int, err error)
RegisterQbq(projects ...QbqProjectInfo) (code int, err error)
RegisterUid(projects ...LshUidProjectInfo) (code int, err error)
}
type Req struct {
Xpch string `json:"xpch,omitempty"` // 芯片厂号
Projects []any `json:"projectInfo,omitempty"` // 数据集合 自行去重, 最大1000
}
type Resp struct {
Message string `json:"msg,omitempty"`
Success string `json:"success,omitempty"`
}
type client struct {
host string
desKey []byte
xpch string
}
type Qualified string // 结论
const (
Pass Qualified = "0"
Fail = "1"
)
type QbCheckType string
const (
Low QbCheckType = "0"
High = "1"
)
func New(host string, desKey []byte, xpch string) Client {
var c = &client{host: host, desKey: desKey, xpch: xpch}
var h Client = c
return h
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/thingple/detonator.git
git@gitee.com:thingple/detonator.git
thingple
detonator
detonator
v0.0.19

搜索帮助