新增测点配置
This commit is contained in:
17
service/common.go
Normal file
17
service/common.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package service
|
||||
|
||||
const (
|
||||
WATER = iota + 1 // WATER 水
|
||||
ELECTRICITY // ELECTRICITY 电
|
||||
)
|
||||
|
||||
var EnergyTypeStrMap = map[int]string{
|
||||
WATER: "水",
|
||||
ELECTRICITY: "电",
|
||||
}
|
||||
|
||||
type Common struct{}
|
||||
|
||||
func (r *Common) GetEnergyTypeMap() map[int]string {
|
||||
return EnergyTypeStrMap
|
||||
}
|
||||
Reference in New Issue
Block a user