1 Star 1 Fork 1

xiaoyutab / xgotool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
get_count_by_fid.go 279 Bytes
一键复制 编辑 原始数据 按行查看 历史
xiaoyutab 提交于 2023-12-20 17:53 . 添加是否存在下级的判定项
package xauth
// 查询下级权限条数
//
// id 权限ID
func getCountByFid(id uint) int64 {
var count int64
err := _default.DB.Table(_default.AuthorityName).Where("fid", id).Count(&count).Error
if err != nil {
errFun("下级条数查询失败", err)
}
return count
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/xiaoyutab/xgotool.git
git@gitee.com:xiaoyutab/xgotool.git
xiaoyutab
xgotool
xgotool
v0.3.14

搜索帮助

344bd9b3 5694891 D2dac590 5694891