1 Star 0 Fork 0

ichub / goconfig

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
fileinfo_dto.go 949 Bytes
一键复制 编辑 原始数据 按行查看 历史
leijmdas 提交于 2024-05-05 12:11 . add
package difactroy
import (
"gitee.com/ichub/goconfig/common/base/basedto"
"go/ast"
)
type FileinfoDto struct {
basedto.BaseEntity
PathFile string `json:"path_file,omitempty"`
FileContent string `json:"content,omitempty"`
StructInfoMap map[string]*StructInfo `json:"struct_info_map,omitempty"`
StructInfos []*StructInfo
Funcs []string `json:"funcs"`
Node *ast.File `json:"-"`
}
func NewFileInfoDto() *FileinfoDto {
var fi = &FileinfoDto{
StructInfoMap: make(map[string]*StructInfo),
Funcs: make([]string, 0),
StructInfos: make([]*StructInfo, 0),
}
fi.InitProxy(fi)
return fi
}
func (this *FileinfoDto) ExistNewFunc(Struname string) bool {
for _, v := range this.Funcs {
if v == "New"+Struname {
return true
}
}
return false
}
//type TypeInfo struct {
// Name string
// Type string
//}
//
//
//func (this *TypeInfo) Filter(typename string) {
//
//}
1
https://gitee.com/ichub/goconfig.git
git@gitee.com:ichub/goconfig.git
ichub
goconfig
goconfig
v1.0.403

搜索帮助