modelRT/network/response.go

18 lines
363 B
Go
Raw Normal View History

2024-11-27 15:41:22 +08:00
// 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"`
}