Comments (7)
目前modes里只有commentmodel这个文件,你另外一个comment文件哪里来的?
from engineercms.
@3xxx mac 系统 不知道那里来的
from engineercms.
ubuntu 也报错
# github.com/3xxx/engineercms/models
models/comment.go:12:6: Comment redeclared in this block
models/CommentModel.go:12:6: other declaration of Comment
models/comment.go:39:19: Comment.TableName redeclared in this block
models/CommentModel.go:41:19: other declaration of TableName
models/comment.go:44:19: Comment.TableEngine redeclared in this block
models/CommentModel.go:46:19: other declaration of TableEngine
models/comment.go:48:19: Comment.TableNameWithPrefix redeclared in this block
models/CommentModel.go:50:19: other declaration of TableNameWithPrefix
models/comment.go:52:6: NewComment redeclared in this block
models/CommentModel.go:54:6: other declaration of NewComment
models/comment.go:55:19: Comment.Find redeclared in this block
models/CommentModel.go:179:19: other declaration of Find
models/comment.go:65:19: Comment.Update redeclared in this block
models/CommentModel.go:98:19: other declaration of Update
models/comment.go:74:19: Comment.Insert redeclared in this block
models/CommentModel.go:107:19: other declaration of Insert
models/PayModel.go:40:15: undefined: UserTemple
models/PayModel.go:74:16: undefined: ExcelTemple
models/PayModel.go:74:16: too many errors
from engineercms.
另外那个删掉试试。
from engineercms.
我的AdminModel.go报错
github.com/3xxx/engineercms/models
models\PassExcelModel.go:42:27: undefined: Select2
models\PassExcelModel.go:43:25: undefined: TextAreal
models\PayModel.go:40:15: undefined: UserTemple
models\AdminModel.go:215:19: undefined: AnsysApdl
models\AdminModel.go:215:33: undefined: AnsysInputs
models\AdminModel.go:215:49: undefined: AnsysOutputs
models\AdminModel.go:215:66: undefined: AnsysHistory
models\AdminModel.go:215:83: undefined: AnsysHistoryInputValue
models\AdminModel.go:215:110: undefined: AnsysHistoryOutputValue
models\AdminModel.go:215:138: undefined: AnsysArticle
models\AdminModel.go:215:138: too many errors
from engineercms.
抱歉,我重新更新了一版可以编译通过的,
2023/07/08 13:38:05 ERROR ▶ 0010 Failed to build the application: # github.com/3xxx/engineercms/controllers controllers\chat.go:129:60: too many arguments in call to avatar.New have (string, number) want (string) controllers\project.go:2839:60: too many arguments in call to avatar.New have (string, number) want (string)
遇到这个问题,把下面这段代码,第一行注释,第二行取消注释即可。
// 项目头像
func ProjectAvatar(text, filename string) error {
// 秦修改了源码,支持字的大小,下面第二个参数是字的大小
a := avatar.New("./static/fonts/Hiragino_Sans_GB_W3.ttf", 26.0) //./resource/fonts/Hiragino_Sans_GB_W3.ttf
// a := avatar.New("./static/fonts/Hiragino_Sans_GB_W3.ttf")
from engineercms.
go build -ldflags "-w"
//a := avatar.New("./static/fonts/Hiragino_Sans_GB_W3.ttf", 26.0)
//./resource/fonts/Hiragino_Sans_GB_W3.ttf
a := avatar.New("./static/fonts/Hiragino_Sans_GB_W3.ttf")
want (string)
controllers/project.go:2839:60: too many arguments in call to avatar.New
have (string, number)
want (string)
这样解决了 谢谢作者
from engineercms.
Related Issues (20)
- undefined AnsyApld undefined AnsysInputs 等等等等 好多结构体缺失 HOT 2
- 编译运行错误 HOT 7
- 增加了相册功能
- 更新了mindoc HOT 1
- 增加了视频功能
- 如何批量导入用户 HOT 1
- 建议登录支持LDAP HOT 1
- 新增supa-mapus地图协作
- 增加对minio分布式存储的支持
- 实现supa-mapus支持微软bing高清遥感地图的框选按级下载并拼图
- mapus增加测量距离和面积,增加切换图层
- supa-mapus增加 编辑图元名称和描述,框选按级下载卫图,列表显示所有“房间”
- supa-mapus增加文字功能
- 增加在线查看和管理freecad三维模型功能
- 不能编辑 HOT 1
- 增加了freecad三维模型展示功能
- 项目里的office文档可以设置协作权限了
- 最新版选择项目后,无法回到添加项目页面 HOT 1
- error doc.go:76: sql: unknown driver "mysql" (forgotten import?) exit status 1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from engineercms.