View Code? Open in Web Editor
NEW
🚀 基于Go-Zero + Vue3 + TypeScript + Element-Plus开发的简单高效权限管理系统。 A simple and efficient permission management system based on Go-Zero + Vue3 + TypeScript + Element-Plus
Home Page: https://docs.arklnk.com
License: MIT License
Go 64.71%
Dockerfile 0.32%
Smarty 34.44%
Shell 0.13%
Makefile 0.40%
ark-admin-zero's People
Contributors
ark-admin-zero's Issues
博主,咱们的 系统管理>>菜单管理下面的列表可以做个分页,这样方便菜单数量大幅度增加
validate := validator .New ()
validate .RegisterTagNameFunc (func (fld reflect.StructField ) string {
name := fld .Tag .Get ("label" )
return name
})
trans , _ := ut .New (zh .New ()).GetTranslator ("zh" )
validateErr := translations .RegisterDefaultTranslations (validate , trans )
if validateErr = validate .StructCtx (r .Context (), req ); validateErr != nil {
for _ , err := range validateErr .(validator.ValidationErrors ) {
httpx .Error (w , errorx .NewHandlerError (errorx .ParamErrorCode , errors .New (err .Translate (trans )).Error ()))
return
}
}
There are many repeated struct types in api files, like XxxPagination
, maybe we can nested it in its parent struct, with this feature support generates nested types in doc
1.ParentId int64 json:"parentId"
小写驼峰修改为下划线,这样可以同数据库保持一致,减少后端修改
2.status
tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '0=禁用 1=开启', 建议别用0设置默认值,proto3 的int64不写默认就是0
api文件中prefix : /admin/user, 但是postman请求时必须是 /api/admin/user , 不太明白为什么会出现这种情况,能解答一下吗
想跟作者请教下,为何推荐文件命名是全小写的呢?
Hello everyone,
Is anyone has some docs that explain how to use BasicForm and schema?
I appreciate any help!
看demo好像不能打开多个页面,这个功能还是很实用的
建议仿照looklook组织结构一样
1.错误码可以弄大一点,方便不同模块扩展
2.把这里的作为admin模块,塞到looklook类似组织结构的api模块最为实用