msg.go 377 B

1234567891011121314151617181920212223242526
  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. }