Documentation ¶
Index ¶
- Constants
- type Client
- func (comp *Client) Create(data *request.RequestQRCodeCreate, temporary bool, expireSecond int) (*response.ResponseQRCodeCreate, error)
- func (comp *Client) Forever(sceneValue interface{}) (*response.ResponseQRCodeCreate, error)
- func (comp *Client) Temporary(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 {
*kernel.BaseClient
}
func NewClient ¶
func NewClient(app *kernel.ApplicationInterface) *Client
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) *Client
func (*Client) Create ¶
func (comp *Client) Create(data *request.RequestQRCodeCreate, temporary bool, expireSecond int) (*response.ResponseQRCodeCreate, error)
func (*Client) Forever ¶
func (comp *Client) Forever(sceneValue interface{}) (*response.ResponseQRCodeCreate, error)
Click to show internal directories.
Click to hide internal directories.