Documentation ¶
Overview ¶
Package users @service users @title Users @description Users service
Index ¶
- func AddAsync(ctx context.Context, param AddParam) (future futures.Future, err error)
- func Component[C services.Component](ctx context.Context, name string) (component C, has bool)
- func GetAsync(ctx context.Context, param GetParam) (future futures.Future, err error)
- func ListAsync(ctx context.Context) (future futures.Future, err error)
- func Service() (v services.Service)
- type AddParam
- type GetParam
- type User
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddParam ¶
type AddParam struct { // Id // @title user id // @description user id Id string `json:"id" validate:"required" validate-message:""` // Name // @title name // @description name Name string `json:"name" validate:"required" validate-message:""` // Age // @title age // @description age Age int `json:"age"` // Birthday // @title birthday // @description birthday Birthday times.Time `json:"birthday"` }
AddParam @title add param @description add user param
type GetParam ¶
type GetParam struct { // Id // @title id // @description id // @validate-message-i18n >>> // zh: zh_message // en: en_message // <<< Id string `json:"id" validate:"not_blank" validate-message:"invalid_id"` }
GetParam @title get param @description get param
Click to show internal directories.
Click to hide internal directories.