18 lines
289 B
Go
18 lines
289 B
Go
package routes
|
|
|
|
import (
|
|
v1 "energy-management-system/api/v1"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type Common struct{}
|
|
|
|
func (r *Common) InitCommon(Router *gin.RouterGroup) {
|
|
commonApi := Router.Group("common")
|
|
{
|
|
|
|
commonApi.GET("energyTypes", v1.Controllers.Common.GetEnergyTypeMap)
|
|
|
|
}
|
|
}
|