feat: 添加角色类型常量及用户主角色获取方法

This commit is contained in:
unclesam committed 2026-07-08 08:19:51 +08:00
1 parent c5977ce354
commit 20ad8115da
14 files changed
+123 -64

No files matched your search

+2 -2
View File
@@ -299,7 +299,7 @@ func (_q *RoleQuery) WithUsers(opts ...func(*UserQuery)) *RoleQuery {
// Example:
//
// var v []struct {
// Code string `json:"code,omitempty"`
// Code int `json:"code,omitempty"`
// Count int `json:"count,omitempty"`
// }
//
@@ -322,7 +322,7 @@ func (_q *RoleQuery) GroupBy(field string, fields ...string) *RoleGroupBy {
// Example:
//
// var v []struct {
// Code string `json:"code,omitempty"`
// Code int `json:"code,omitempty"`
// }
//
// client.Role.Query().