package informPush import ( "github.com/MickMake/GoSungrow/iSolarCloud/api" "github.com/MickMake/GoSungrow/iSolarCloud/api/GoStruct" "github.com/MickMake/GoUnify/Only" "fmt" ) const Url = "/v1/messageService/informPush" const Disabled = false const EndPointName = "AppService.informPush" type RequestData struct { } func (rd RequestData) IsValid() error { return GoStruct.VerifyOptionsRequired(rd) } func (rd RequestData) Help() string { ret := fmt.Sprintf("") return ret } type ResultData struct { // Dummy valueTypes.String `json:"dummy"` } func (e *ResultData) IsValid() error { var err error return err } //type DecodeResultData ResultData // //func (e *ResultData) UnmarshalJSON(data []byte) error { // var err error // // for range Only.Once { // if len(data) == 0 { // break // } // var pd DecodeResultData // // // Store ResultData // _ = json.Unmarshal(data, &pd) // e.Dummy = pd.Dummy // } // // return err //} func (e *EndPoint) GetData() api.DataMap { entries := api.NewDataMap() for range Only.Once { entries.StructToDataMap(*e, "", GoStruct.EndPointPath{}) } return entries }