Dockerfile
This commit is contained in:
31
controller/enum/enum_controller.go
Normal file
31
controller/enum/enum_controller.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"assets/model/dto/enum"
|
||||
"assets/service/enum"
|
||||
"context"
|
||||
)
|
||||
|
||||
type enum struct{}
|
||||
|
||||
// Enum 枚举控制器
|
||||
var Enum = new(enum)
|
||||
|
||||
// init 初始化表单配置
|
||||
func init() {
|
||||
}
|
||||
|
||||
// GetAssetType 获取资产类型
|
||||
func (c *enum) GetAssetType(ctx context.Context, req *dto.GetAssetTypeReq) (res *dto.GetAssetTypeRes, err error) {
|
||||
return service.Enum.GetAssetType(ctx, req)
|
||||
}
|
||||
|
||||
// GetCategoryAttrType 获取分类属性类型
|
||||
func (c *enum) GetCategoryAttrType(ctx context.Context, req *dto.GetCategoryAttrTypeReq) (res *dto.GetCategoryAttrTypeRes, err error) {
|
||||
return service.Enum.GetCategoryAttrType(ctx, req)
|
||||
}
|
||||
|
||||
// GetSpecsUnit 获取规格单位
|
||||
func (c *enum) GetSpecsUnit(ctx context.Context, req *dto.GetSpecsUnitReq) (res *dto.GetSpecsUnitRes, err error) {
|
||||
return service.Enum.GetSpecsUnit(ctx, req)
|
||||
}
|
||||
Reference in New Issue
Block a user