query.go 364 B

123456789
  1. package company_user_chart_classify_permission
  2. import "hongze/hongze_yb/global"
  3. // GetPermissionByUserId 获取用户图库分类权限信息
  4. func GetPermissionByUserId(userId int) (item *CompanyUserChartClassifyPermission, err error) {
  5. err = global.DEFAULT_MYSQL.Model(CompanyUserChartClassifyPermission{}).Where("user_id", userId).First(&item).Error
  6. return
  7. }