Documentation ¶
Index ¶
- func Auth(ctx context.Context, obj interface{}, next graphql.Resolver, ...) (res interface{}, err error)
- func Date(ctx context.Context, obj interface{}, next graphql.Resolver, format string) (res interface{}, err error)
- func EnumInt(ctx context.Context, obj interface{}, next graphql.Resolver, value int) (res interface{}, err error)
- func Length(ctx context.Context, obj interface{}, next graphql.Resolver, max int) (res interface{}, err error)
- func Lower(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
- func Matches(ctx context.Context, obj interface{}, next graphql.Resolver, pattern string) (res interface{}, err error)
- func Range(ctx context.Context, obj interface{}, next graphql.Resolver, begin int, ...) (res interface{}, err error)
- func Rename(ctx context.Context, obj interface{}, next graphql.Resolver, to string) (res interface{}, err error)
- func Timestamp(ctx context.Context, obj interface{}, next graphql.Resolver, format string) (res interface{}, err error)
- func Trim(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
- func Upper(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
- func Uuid(ctx context.Context, obj interface{}, next graphql.Resolver, name *string, ...) (res interface{}, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
func Auth(ctx context.Context, obj interface{}, next graphql.Resolver, requires []gqlapi.RoleEnum) (res interface{}, err error)
Auth 权限验证的directive
func Date ¶
func Date(ctx context.Context, obj interface{}, next graphql.Resolver, format string) (res interface{}, err error)
Date 日期格式化的directive
func EnumInt ¶
func EnumInt(ctx context.Context, obj interface{}, next graphql.Resolver, value int) (res interface{}, err error)
EnumInt 枚举转数字的directive
func Length ¶
func Length(ctx context.Context, obj interface{}, next graphql.Resolver, max int) (res interface{}, err error)
Length 字符串长度限制的directive
func Lower ¶
func Lower(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)
Lower 字符串转小写的directive
func Matches ¶
func Matches(ctx context.Context, obj interface{}, next graphql.Resolver, pattern string) (res interface{}, err error)
Matches 字符串正则匹配的directive
func Range ¶
func Range(ctx context.Context, obj interface{}, next graphql.Resolver, begin int, end int) (res interface{}, err error)
Range 数字范围限制的directive
func Rename ¶
func Rename(ctx context.Context, obj interface{}, next graphql.Resolver, to string) (res interface{}, err error)
Rename 改名的directive
func Timestamp ¶
func Timestamp(ctx context.Context, obj interface{}, next graphql.Resolver, format string) (res interface{}, err error)
Timestamp 事件戳的directive
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.