新增测点配置
This commit is contained in:
14
api/v1/common.go
Normal file
14
api/v1/common.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"energy-management-system/response"
|
||||
"energy-management-system/service"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type Common struct{}
|
||||
|
||||
func (r *Common) GetEnergyTypeMap(c *gin.Context) {
|
||||
respData := service.GroupServices.Common.GetEnergyTypeMap()
|
||||
response.SuccessData(respData, c)
|
||||
}
|
||||
Reference in New Issue
Block a user