1 Star 0 Fork 0

water/gowater

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rule_file_path.go 739 Bytes
一键复制 编辑 原始数据 按行查看 历史
leijmdas 提交于 2025-02-03 13:14 +08:00 . add
package ruledto
import fileutils "gitee.com/leijmdas/gobase/goconfig/common/base/fileutils"
type RuleFilePath struct {
RuleFileName string
ParamFileName string
ResultFileName string
RuleBasePath string `json:"rule_base_path"`
rulePath string `json:"rule_path"`
}
func NewRuleFilePath() *RuleFilePath {
return &RuleFilePath{
RuleBasePath: fileutils.FindRootDir() + "/config/rule_define/",
}
}
func (self *RuleFilePath) RulePath() string {
return self.rulePath
}
func (self *RuleFilePath) SetRulePath(rulePath string) {
self.rulePath = rulePath
}
func (self *RuleFilePath) BuildFileName(id, suffix string) string {
var funcPath = id + "/"
var funcFile = funcPath + id + suffix
return self.RulePath() + funcFile
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/leijmdas/gowater.git
git@gitee.com:leijmdas/gowater.git
leijmdas
gowater
gowater
600342654330

搜索帮助