mirror of
https://github.com/tiger1103/gfast.git
synced 2026-10-02 13:35:05 +00:00
26 lines
614 B
Go
26 lines
614 B
Go
/*
|
|
* @desc:字典数据管理
|
|
* @company:云南奇讯科技有限公司
|
|
* @Author: yixiaohu<yxh669@qq.com>
|
|
* @Date: 2022/3/18 11:57
|
|
*/
|
|
|
|
package controller
|
|
|
|
import (
|
|
"context"
|
|
"github.com/tiger1103/gfast/v3/api/v1/system"
|
|
commonService "github.com/tiger1103/gfast/v3/internal/app/common/service"
|
|
)
|
|
|
|
var DictData = dictDataController{}
|
|
|
|
type dictDataController struct {
|
|
}
|
|
|
|
// GetDictData 获取字典数据
|
|
func (c *dictDataController) GetDictData(ctx context.Context, req *system.GetDictReq) (res *system.GetDictRes, err error) {
|
|
res, err = commonService.DictData().GetDictWithDataByType(ctx, req)
|
|
return
|
|
}
|