1234567891011 |
- package models
- import "github.com/rdlucklib/rdluck_tools/orm"
- // GetDefaultChartPermissionCount 获取默认的权限数目
- func GetDefaultChartPermissionCount(productId int) (count int, err error) {
- sql := ` select count(1) COUNT from chart_permission where product_id=?`
- o := orm.NewOrm()
- err = o.Raw(sql, productId).QueryRow(&count)
- return
- }
|