msg.go 379 B

123456789101112131415161718192021222324252627
  1. package models
  2. type GeneralRes struct {
  3. Code int64 `json:"code"`
  4. Msg string `json:"msg"`
  5. }
  6. // type
  7. const (
  8. ControlConn = iota
  9. WorkConn
  10. )
  11. type ClientCtlReq struct {
  12. Type int64 `json:"type"`
  13. ProxyName string `json:"proxy_name"`
  14. Passwd string `json:"passwd"`
  15. }
  16. type ClientCtlRes struct {
  17. GeneralRes
  18. }
  19. type ServerCtlReq struct {
  20. Type int64 `json:"type"`
  21. }