18 lines
363 B
Go
18 lines
363 B
Go
|
|
// Package network define struct of network operation
|
||
|
|
package network
|
||
|
|
|
||
|
|
type ResponseHeader struct {
|
||
|
|
Status int `json:"status"`
|
||
|
|
ErrMsg string `json:"err_msg"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type BasicResponse struct {
|
||
|
|
ResponseHeader
|
||
|
|
PayLoad map[string]interface{} `json:"payload"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type DiagramLoadResponse struct {
|
||
|
|
ResponseHeader
|
||
|
|
PayLoad map[string]interface{} `json:"payload"`
|
||
|
|
}
|