初始
This commit is contained in:
51
third/ys7/struct.go
Normal file
51
third/ys7/struct.go
Normal file
@ -0,0 +1,51 @@
|
||||
package ys7
|
||||
|
||||
const OK = "200"
|
||||
|
||||
//type Public struct {
|
||||
// Code string `json:"code"`
|
||||
// Msg string `json:"msg"`
|
||||
//}
|
||||
|
||||
type TP struct {
|
||||
Public
|
||||
Data struct {
|
||||
AccessToken string `json:"accessToken"`
|
||||
ExpireTime int64 `json:"expireTime"`
|
||||
} `json:"data"`
|
||||
}
|
||||
|
||||
type HelMet struct {
|
||||
Public
|
||||
RequestId string `json:"requestId"`
|
||||
Data []struct {
|
||||
Id string `json:"id"`
|
||||
Height string `json:"height"`
|
||||
TargetList []struct {
|
||||
BodyRect struct {
|
||||
VmodelHF string `json:"vmodel_h_f"`
|
||||
VmodelWF string `json:"vmodel_w_f"`
|
||||
VmodelXF string `json:"vmodel_x_f"`
|
||||
VmodelYF string `json:"vmodel_y_f"`
|
||||
} `json:"body_rect"`
|
||||
AlarmFlg int `json:"alarm_flg"`
|
||||
UniformType int `json:"uniform_type"`
|
||||
ID int `json:"ID"`
|
||||
HelmetType int `json:"helmet_type"`
|
||||
HeadRect struct {
|
||||
VmodelHF string `json:"vmodel_h_f"`
|
||||
VmodelWF string `json:"vmodel_w_f"`
|
||||
VmodelXF string `json:"vmodel_x_f"`
|
||||
VmodelYF string `json:"vmodel_y_f"`
|
||||
} `json:"head_rect"`
|
||||
ColorType int `json:"color_type"`
|
||||
} `json:"target_list"`
|
||||
Width string `json:"width"`
|
||||
RuleInfo []interface{} `json:"rule_info"`
|
||||
RuleList [][]struct {
|
||||
Y string `json:"y"`
|
||||
X string `json:"x"`
|
||||
} `json:"rule_list"`
|
||||
ErrorCode int `json:"errorCode"`
|
||||
} `json:"data"`
|
||||
}
|
Reference in New Issue
Block a user