package getPsCBoxDetail

import (
	"GoSungrow/iSolarCloud/api"
	"GoSungrow/iSolarCloud/api/GoStruct"
	"GoSungrow/iSolarCloud/api/GoStruct/valueTypes"

	"fmt"
)

const Url = "/v1/devService/getPsCBoxDetail"
const Disabled = false
const EndPointName = "WebAppService.getPsCBoxDetail"

type RequestData struct {
	PsId   valueTypes.PsId    `json:"ps_id" required:"true"`
	UpUUID valueTypes.Integer `json:"up_uuid" required:"true"`
}

func (rd RequestData) IsValid() error {
	rd.PsId = valueTypes.SetPsIdValue(1171348)
	rd.UpUUID = valueTypes.SetIntegerValue(1179860)

	// rd.PsId = valueTypes.SetPsIdValue(1129147)
	// rd.UpUUID = valueTypes.SetStringValue("844763")

	return GoStruct.VerifyOptionsRequired(rd)
}

func (rd RequestData) Help() string {
	ret := fmt.Sprintf("")
	return ret
}


type ResultData struct {
}

func (e *ResultData) IsValid() error {
	var err error
	return err
}

func (e *EndPoint) GetData() api.DataMap {
	entries := api.NewDataMap()
	entries.StructToDataMap(*e, "", GoStruct.EndPointPath{})
	return entries
}
