master
wubin 5 years ago
parent a16914b9b3
commit 0c581bcf75

@ -3,7 +3,6 @@ package DictController
import ( import (
"dsBigData/Business/Dict/DictService" "dsBigData/Business/Dict/DictService"
"dsBigData/Model" "dsBigData/Model"
"fmt"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"net/http" "net/http"
) )
@ -13,21 +12,10 @@ func Routers(r *gin.RouterGroup) {
rr := r.Group("/dict") rr := r.Group("/dict")
rr.GET("/GetXxbxlx", GetXxbxlx) rr.GET("/GetXxbxlx", GetXxbxlx)
rr.POST("/Test", Test)
return return
} }
func Test(c *gin.Context) {
abc := "aaa"
fmt.Println(abc)
c.JSON(http.StatusOK, Model.Res{
Success: true,
List: "ok",
})
}
/** /**
*/ */

@ -29,6 +29,7 @@ func GetDictInfo(dictKind string) ([]DictModel.Dict, error) {
Index("sys_dic"). Index("sys_dic").
Query(boolQuery). Query(boolQuery).
Size(100). Size(100).
Sort("data_content.sort_id", true).
Do(CTX) Do(CTX)
if err != nil { if err != nil {
return nil, err return nil, err

Binary file not shown.
Loading…
Cancel
Save