add i18n support

This commit is contained in:
landaiqing
2024-11-12 22:59:39 +08:00
parent 97ca3fc7b0
commit ae743ba8a6
62 changed files with 4468 additions and 2797 deletions

View File

@@ -299,12 +299,12 @@ func (sarq *ScaAuthRoleQuery) WithScaAuthPermissionRule(opts ...func(*ScaAuthPer
// Example:
//
// var v []struct {
// RoleName string `json:"role_name,omitempty"`
// CreatedAt time.Time `json:"created_at,omitempty"`
// Count int `json:"count,omitempty"`
// }
//
// client.ScaAuthRole.Query().
// GroupBy(scaauthrole.FieldRoleName).
// GroupBy(scaauthrole.FieldCreatedAt).
// Aggregate(ent.Count()).
// Scan(ctx, &v)
func (sarq *ScaAuthRoleQuery) GroupBy(field string, fields ...string) *ScaAuthRoleGroupBy {
@@ -322,11 +322,11 @@ func (sarq *ScaAuthRoleQuery) GroupBy(field string, fields ...string) *ScaAuthRo
// Example:
//
// var v []struct {
// RoleName string `json:"role_name,omitempty"`
// CreatedAt time.Time `json:"created_at,omitempty"`
// }
//
// client.ScaAuthRole.Query().
// Select(scaauthrole.FieldRoleName).
// Select(scaauthrole.FieldCreatedAt).
// Scan(ctx, &v)
func (sarq *ScaAuthRoleQuery) Select(fields ...string) *ScaAuthRoleSelect {
sarq.ctx.Fields = append(sarq.ctx.Fields, fields...)