Documentation ¶
Index ¶
- Constants
- type Client
- func (comp *Client) Create(ctx context.Context, data *request.RequestQRCodeCreate, temporary bool, ...) (*response.ResponseQRCodeCreate, error)
- func (comp *Client) Forever(ctx context.Context, sceneValue interface{}) (*response.ResponseQRCodeCreate, error)
- func (comp *Client) Temporary(ctx context.Context, sceneValue interface{}, expireSeconds int) (*response.ResponseQRCodeCreate, error)
- func (comp *Client) URL(ticket string) string
Constants ¶
View Source
const DAY int = 86400
View Source
const SCENE_MAX_VALUE int = 100000
View Source
const SCENE_QR_CARD string = "QR_CARD"
View Source
const SCENE_QR_FOREVER string = "QR_LIMIT_SCENE"
View Source
const SCENE_QR_FOREVER_STR string = "QR_LIMIT_STR_SCENE"
View Source
const SCENE_QR_TEMPORARY string = "QR_SCENE"
View Source
const SCENE_QR_TEMPORARY_STR string = "QR_STR_SCENE"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) Create ¶
func (comp *Client) Create(ctx context.Context, data *request.RequestQRCodeCreate, temporary bool, expireSecond int) (*response.ResponseQRCodeCreate, error)
func (*Client) Forever ¶
Click to show internal directories.
Click to hide internal directories.