|
|
|
@ -0,0 +1,36 @@
|
|
|
|
|
package DictController
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"dsBigData/Business/Dict/DictService"
|
|
|
|
|
"dsBigData/Model"
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
"net/http"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//模块的路由配置
|
|
|
|
|
func Routers(r *gin.RouterGroup) {
|
|
|
|
|
rr := r.Group("/dict")
|
|
|
|
|
|
|
|
|
|
rr.GET("/GetXxbxlx", GetXxbxlx)
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
功能:获取学校办学类型字典
|
|
|
|
|
*/
|
|
|
|
|
func GetXxbxlx(c *gin.Context) {
|
|
|
|
|
arr, err := DictService.GetDictInfo("xxbxlxm")
|
|
|
|
|
if err != nil {
|
|
|
|
|
c.JSON(http.StatusOK, Model.Res{
|
|
|
|
|
Success: false,
|
|
|
|
|
Message: err.Error(),
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
c.JSON(http.StatusOK, Model.Res{
|
|
|
|
|
Success: true,
|
|
|
|
|
List: arr,
|
|
|
|
|
})
|
|
|
|
|
}
|