common_controller.go 531 字节
package controllers

import (
	"github.com/linmadan/egglib-go/web/beego"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/application/common/service"
)

type CommonController struct {
	beego.BaseController
}

func (controller *CommonController) DictionarySearch() {
	menuService := service.CommonService{}
	type search struct {
		DictCodes []string `json:"dictCodes"`
	}
	query := &search{}
	controller.Unmarshal(query)
	data, err := menuService.DictionarySearch(query.DictCodes)
	controller.Response(data, err)
}