controllers

package
v0.0.0-...-529d6c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

*

@auther: blue-skycat
@date: 2022/6/28
@note:

*

Index

Constants

View Source
const (
	Ali_public_key            = "" /* 302-byte string literal not displayed */
	Self_public_key           = "" /* 315-byte string literal not displayed */
	Self_private_key          = "" /* 1478-byte string literal not displayed */
	PKCS1            PKCSType = 1
	PKCS8            PKCSType = 2
	RSA                       = "RSA"
	RSA2                      = "RSA2"
	App_id                    = "2021152147896523"
)

Variables

This section is empty.

Functions

func FormatPrivateKey

func FormatPrivateKey(privateKey string) (pKey string)

func GbkToUtf8

func GbkToUtf8(s []byte) ([]byte, error)

func GetRsaSign

func GetRsaSign(bm string, signType string, privateKey string) (sign string, err error)

Types

type AliopenController

type AliopenController struct {
	beego.Controller
}

func (*AliopenController) AliCallBack

func (a *AliopenController) AliCallBack()

func (*AliopenController) GateWay

func (a *AliopenController) GateWay()

type MainController

type MainController struct {
	beego.Controller
}

func (*MainController) Get

func (c *MainController) Get()

type PKCSType

type PKCSType uint8

type ReceiveBizContent

type ReceiveBizContent struct {
	AppId            string `xml:"AppId"`
	FromUserId       string `xml:"FromUserId"`
	CreateTime       int64  `xml:"CreateTime"`
	MsgType          string `xml:"MsgType"`
	EventType        string `xml:"EventType"`
	ActionParam      string `xml:"ActionParam"`
	AgreementId      string `xml:"AgreementId"`
	AccountNo        string `xml:"AccountNo"`
	MsgId            string `xml:"MsgId"`
	UserInfo         string `xml:"UserInfo"`
	FromAlipayUserId string `xml:"FromAlipayUserId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL