Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MickMake committed Feb 22, 2022
1 parent 1f12cb8 commit 6fea3bf
Show file tree
Hide file tree
Showing 30 changed files with 1,787 additions and 1,213 deletions.
1,222 changes: 13 additions & 1,209 deletions .idea/workspace.xml

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions iSolarCloud/sungro/add.sh → iSolarCloud/add.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,25 @@ then
fi


CMD="$(realpath $0)"
CMD="$(dirname ${CMD})"

DIRNAME="$(realpath "sungro/${AREA}/${NAME}/")"
DIRNAME="$(echo "${DIRNAME}" | perl -pe "s#^${CMD}/##")"
TEMPLATE="$(realpath "api/nullEndPoint/")"
TEMPLATE="$(echo "${TEMPLATE}" | perl -pe "s#^${CMD}/##")"

echo "Template: ${TEMPLATE}"
echo "EndPoint: ${DIRNAME}"

DIRNAME="$(realpath "${AREA}/${NAME}")"
TEMPLATE="$(realpath "../api/nullEndPoint/")"

if [ ! -d "${DIRNAME}" ]
then
mkdir "${DIRNAME}"
else
echo "Directory ${DIRNAME} exists"
echo ""
diff "${TEMPLATE}" "${DIRNAME}"
exit
fi

Expand Down
564 changes: 564 additions & 0 deletions iSolarCloud/addAppService.sh

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
)

const Url = "/v1/devService/communicationModuleDetail"
const Disabled = false

type RequestData struct {
Sn string `json:"sn" required:"true"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (e EndPoint) Help() string {
return ret
}

func (e EndPoint) IsDisabled() bool {
return Disabled
}

func (e EndPoint) GetArea() api.AreaName {
return e.Area
}
Expand Down
1 change: 1 addition & 0 deletions iSolarCloud/sungro/AppService/findPsType/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
)

const Url = "/v1/powerStationService/findPsType"
const Disabled = false

type RequestData struct {
PsId string `json:"ps_id" required:"true"`
Expand Down
4 changes: 4 additions & 0 deletions iSolarCloud/sungro/AppService/findPsType/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (e EndPoint) Help() string {
return ret
}

func (e EndPoint) IsDisabled() bool {
return Disabled
}

func (e EndPoint) GetArea() api.AreaName {
return e.Area
}
Expand Down
4 changes: 4 additions & 0 deletions iSolarCloud/sungro/AppService/getHistoryInfo/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (e EndPoint) Help() string {
return ret
}

func (e EndPoint) IsDisabled() bool {
return Disabled
}

func (e EndPoint) GetArea() api.AreaName {
return e.Area
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
)

const Url = "/v1/powerStationService/getHouseholdStoragePsReport"
const Disabled = false

type RequestData struct {
DateID string `json:"date_id" required:"true"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (e EndPoint) Help() string {
return ret
}

func (e EndPoint) IsDisabled() bool {
return Disabled
}

func (e EndPoint) GetArea() api.AreaName {
return e.Area
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (


const Url = "/v1/reportService/getPowerDevicePointNames"
const Disabled = false

const (
DeviceType1 = "1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (e EndPoint) Help() string {
return ret
}

func (e EndPoint) IsDisabled() bool {
return Disabled
}

func (e EndPoint) GetArea() api.AreaName {
return e.Area
}
Expand Down
1 change: 1 addition & 0 deletions iSolarCloud/sungro/AppService/getPowerStatistics/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
)

const Url = "/v1/powerStationService/getPowerStatistics"
const Disabled = false

type RequestData struct {
PsId string `json:"ps_id" required:"true"`
Expand Down
4 changes: 4 additions & 0 deletions iSolarCloud/sungro/AppService/getPowerStatistics/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (e EndPoint) Help() string {
return ret
}

func (e EndPoint) IsDisabled() bool {
return Disabled
}

func (e EndPoint) GetArea() api.AreaName {
return e.Area
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
)

const Url = "/v1/powerStationService/getPsDetailWithPsType"
const Disabled = false

type RequestData struct {
PsId string `json:"ps_id" required:"true"`
Expand Down
4 changes: 4 additions & 0 deletions iSolarCloud/sungro/AppService/getPsDetailWithPsType/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (e EndPoint) Help() string {
return ret
}

func (e EndPoint) IsDisabled() bool {
return Disabled
}

func (e EndPoint) GetArea() api.AreaName {
return e.Area
}
Expand Down
1 change: 1 addition & 0 deletions iSolarCloud/sungro/AppService/getPsList/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
)

const Url = "/v1/powerStationService/getPsList"
const Disabled = false

type RequestData struct {
}
Expand Down
4 changes: 4 additions & 0 deletions iSolarCloud/sungro/AppService/getPsList/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (e EndPoint) Help() string {
return ret
}

func (e EndPoint) IsDisabled() bool {
return Disabled
}

func (e EndPoint) GetArea() api.AreaName {
return e.Area
}
Expand Down
1 change: 1 addition & 0 deletions iSolarCloud/sungro/AppService/login/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
)

const Url = "/v1/userService/login"
const Disabled = false

type RequestData struct {
UserAccount string `json:"user_account" required:"true"`
Expand Down
4 changes: 4 additions & 0 deletions iSolarCloud/sungro/AppService/login/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ func (e EndPoint) Help() string {
return ret
}

func (e EndPoint) IsDisabled() bool {
return Disabled
}

func (e EndPoint) GetArea() api.AreaName {
return e.Area
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
)

const Url = "/v1/powerStationService/psHourPointsValue"
const Disabled = false

type RequestData struct {
PsID string `json:"ps_id" required:"true"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (e EndPoint) Help() string {
return ret
}

func (e EndPoint) IsDisabled() bool {
return Disabled
}

func (e EndPoint) GetArea() api.AreaName {
return e.Area
}
Expand Down
1 change: 1 addition & 0 deletions iSolarCloud/sungro/AppService/queryUnitList/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
)

const Url = "/v1/userService/queryUnitList"
const Disabled = false

type RequestData struct {
// DeviceType string `json:"device_type" required:"true"`
Expand Down
4 changes: 4 additions & 0 deletions iSolarCloud/sungro/AppService/queryUnitList/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (e EndPoint) Help() string {
return ret
}

func (e EndPoint) IsDisabled() bool {
return Disabled
}

func (e EndPoint) GetArea() api.AreaName {
return e.Area
}
Expand Down
Loading

0 comments on commit 6fea3bf

Please sign in to comment.