Documentation ¶
Index ¶
- func AesDecrypt(key []byte, cryptoText string) string
- func AesEncrypt(key []byte, text string) string
- func AesKeyDecrypt(keyStr string, cryptoText string) string
- func AesKeyEncrypt(keyStr string, cryptoText string) string
- type Client
- func (c *Client) AccessToken() string
- func (c *Client) AppKey() string
- func (c *Client) AppSecret() string
- func (c *Client) ChannelNotifyPayCb(inCode string) *ResultState
- func (c *Client) Env() string
- func (c *Client) GetChannelAdBanner(frameId int) *ResultState
- func (c *Client) GetChannelAdBanners(frameId int) *ResultState
- func (c *Client) GetChannelAdFrameList() *ResultState
- func (c *Client) GetChannelTestCategoryList() *ResultState
- func (c *Client) GetOpenToken() *ResultState
- func (c *Client) GetTestCode(testId int, no string) *ResultState
- func (c *Client) GetTestCodeStatus(testId int, inCode string) *ResultState
- func (c *Client) GetTestDetail(testId int) *ResultState
- func (c *Client) GetTestEntireReport(testId int, taskToken string) *ResultState
- func (c *Client) GetTestInfoList(testId int, inCode string) *ResultState
- func (c *Client) GetTestList(categoryId int, page int, size int) *ResultState
- func (c *Client) GetTestQuestion(testId int, inCode string) *ResultState
- func (c *Client) GetTestRecommendList() *ResultState
- func (c *Client) GetTestReport(testId int, inCode string) *ResultState
- func (c *Client) GetTestShareCode(testId int, inCode string) *ResultState
- func (c *Client) SetAccessToken(accessToken string)
- func (c *Client) SetAppKey(appKey string)
- func (c *Client) SetAppSecret(appSecret string)
- func (c *Client) SetEnv(env string)
- func (c *Client) TestEntireReportTask(testId int, inCodeList string, traceSetting map[string]interface{}) *ResultState
- func (c *Client) TestInfo(testId int, inCode string, setting map[string]interface{}) *ResultState
- func (c *Client) TestRedeemShareCode(testId int, code string) *ResultState
- func (c *Client) TestResult(testId int, inCode string, choices string) *ResultState
- type ResultState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
decrypt from base64 to decrypted string
func AesEncrypt ¶
encrypt string to base64 crypto using AES
func AesKeyDecrypt ¶
func AesKeyEncrypt ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AccessToken ¶
func (*Client) ChannelNotifyPayCb ¶
func (c *Client) ChannelNotifyPayCb(inCode string) *ResultState
func (*Client) GetChannelAdBanner ¶
func (c *Client) GetChannelAdBanner(frameId int) *ResultState
func (*Client) GetChannelAdBanners ¶
func (c *Client) GetChannelAdBanners(frameId int) *ResultState
func (*Client) GetChannelAdFrameList ¶
func (c *Client) GetChannelAdFrameList() *ResultState
func (*Client) GetChannelTestCategoryList ¶
func (c *Client) GetChannelTestCategoryList() *ResultState
func (*Client) GetOpenToken ¶
func (c *Client) GetOpenToken() *ResultState
func (*Client) GetTestCode ¶
func (c *Client) GetTestCode(testId int, no string) *ResultState
func (*Client) GetTestCodeStatus ¶
func (c *Client) GetTestCodeStatus(testId int, inCode string) *ResultState
func (*Client) GetTestDetail ¶
func (c *Client) GetTestDetail(testId int) *ResultState
func (*Client) GetTestEntireReport ¶
func (c *Client) GetTestEntireReport(testId int, taskToken string) *ResultState
func (*Client) GetTestInfoList ¶
func (c *Client) GetTestInfoList(testId int, inCode string) *ResultState
func (*Client) GetTestList ¶
func (c *Client) GetTestList(categoryId int, page int, size int) *ResultState
func (*Client) GetTestQuestion ¶
func (c *Client) GetTestQuestion(testId int, inCode string) *ResultState
func (*Client) GetTestRecommendList ¶
func (c *Client) GetTestRecommendList() *ResultState
func (*Client) GetTestReport ¶
func (c *Client) GetTestReport(testId int, inCode string) *ResultState
func (*Client) GetTestShareCode ¶
func (c *Client) GetTestShareCode(testId int, inCode string) *ResultState
func (*Client) SetAccessToken ¶
func (*Client) SetAppSecret ¶
func (*Client) TestEntireReportTask ¶
func (c *Client) TestEntireReportTask(testId int, inCodeList string, traceSetting map[string]interface{}) *ResultState
func (*Client) TestInfo ¶
func (c *Client) TestInfo(testId int, inCode string, setting map[string]interface{}) *ResultState
func (*Client) TestRedeemShareCode ¶
func (c *Client) TestRedeemShareCode(testId int, code string) *ResultState
func (*Client) TestResult ¶
func (c *Client) TestResult(testId int, inCode string, choices string) *ResultState
type ResultState ¶
Click to show internal directories.
Click to hide internal directories.