master
wubin 5 years ago
parent a16914b9b3
commit 0c581bcf75

@ -3,7 +3,6 @@ package DictController
import (
"dsBigData/Business/Dict/DictService"
"dsBigData/Model"
"fmt"
"github.com/gin-gonic/gin"
"net/http"
)
@ -13,21 +12,10 @@ func Routers(r *gin.RouterGroup) {
rr := r.Group("/dict")
rr.GET("/GetXxbxlx", GetXxbxlx)
rr.POST("/Test", Test)
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").
Query(boolQuery).
Size(100).
Sort("data_content.sort_id", true).
Do(CTX)
if err != nil {
return nil, err

Binary file not shown.
Loading…
Cancel
Save