mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-28 19:10:35 +08:00
tt
This commit is contained in:
29
hotgo-server/app/controller/apiController/dict_controller.go
Normal file
29
hotgo-server/app/controller/apiController/dict_controller.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package apiController
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/bufanyun/hotgo/app/form/adminForm"
|
||||
"github.com/bufanyun/hotgo/app/service/sysService"
|
||||
)
|
||||
|
||||
var Dict = dict{}
|
||||
|
||||
type dict struct{}
|
||||
|
||||
//
|
||||
// @Title 获取指定字典类型的属性数据
|
||||
// @Description
|
||||
// @Author Ms <133814250@qq.com>
|
||||
// @Param ctx
|
||||
// @Param req
|
||||
// @Return res
|
||||
// @Return err
|
||||
//
|
||||
func (controller *dict) Attribute(ctx context.Context, req *adminForm.DictAttributeReq) (res *adminForm.DictAttributeRes, err error) {
|
||||
|
||||
res, err = sysService.Dict.Attribute(ctx, req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return res, nil
|
||||
}
|
Reference in New Issue
Block a user