package http type McsRequest struct { Request bool `json:"request"` ID int `json:"id"` Method string `json:"method"` Data McsData `json:"data"` } type McsData struct { DevID string `json:"devId"` PeopleNo string `json:"peopleNo"` WorkNo string `json:"workNo"` StorType int `json:"storType"` } func (p *McsRequest) Validate() error { return nil }