Versions in this module Expand all Collapse all v1 v1.0.4 Jan 2, 2021 v1.0.3 Nov 18, 2020 Changes in this version + type AccessToken struct + Access_token string + Expires_in int64 + Update int64 + type PushInfo struct + AppId string + ComponentVerifyTicket string + CreateTime int64 + InfoType string + type Ticket struct + Expires_in int64 + Ticket string + Update int64 + type TokenXML struct + AppId string + Encrypt string + type WXDetail struct + Goods_detail []WXGoodsDetail + type WXGoodsDetail struct + Goods_id string + Goods_name string + Price string + Quantity string + type WxOrderResult struct + Appid string + Err_code_des string + Mch_id string + Nonce_str string + Prepay_id string + Result_code string + Return_code string + Return_msg string + Sign string + Trade_type string + type WxService struct + Organization company.OrganizationService + User user.UserService + func (entity WxService) ChangeWxConfig(DB *gorm.DB, ID uint64, Value dao.WxConfig) error + func (entity WxService) CloseOrder(OrderNo string, OID uint64) (Success bool, Message string) + func (entity WxService) Decrypt(encryptedData, session_key, iv_text string) (bool, string) + func (entity WxService) GetAccessToken(WxConfig dao.WxConfig) string + func (entity WxService) GetTransfersInfo(transfers dao.Transfers) (Success bool) + func (entity WxService) GetWXAConfig(prepay_id string, WxConfig dao.WxConfig) (outData map[string]string) + func (entity WxService) INComeNotify(slUser dao.User, itemName string, timeText string, typeText string) *result.ActionResult + func (entity WxService) MPOrder(OrderNo string, title, description string, ogs []dao.OrdersGoods, ...) (Success result.ActionResultCode, Message string, result WxOrderResult) + func (entity WxService) MWQRCodeTemp(OID uint64, UserID uint64, qrtype, params string) *result.ActionResult + func (entity WxService) MiniProgram() dao.WxConfig + func (entity WxService) MiniProgramInfo(Code, AppID, AppSecret string) (err error, OpenID, SessionKey string) + func (entity WxService) MiniWeb() dao.WxConfig + func (entity WxService) MwGetTicket(WxConfig dao.WxConfig) string + func (entity WxService) MwGetWXJSConfig(url string, OID uint64) map[string]interface{} + func (entity WxService) NewOrderNotify(Order dao.Orders, ogs []dao.OrdersGoods) *result.ActionResult + func (entity WxService) NewUserJoinNotify(NewUser dao.User, notifyUser dao.User) *result.ActionResult + func (entity WxService) Order(OrderNo string, title, description string, detail, openid string, IP string, ...) (Success result.ActionResultCode, Message string, wxResult WxOrderResult) + func (entity WxService) OrderDeliveryNotify(Order dao.Orders, ogs []dao.OrdersGoods) *result.ActionResult + func (entity WxService) OrderQuery(OrderNo string) (Success bool, Result util.Map) + func (entity WxService) Refund(order dao.Orders, ordersPackage dao.OrdersPackage, ...) (Success bool, Message string) + func (entity WxService) SendUniformMessage(sendData map[string]interface{}) (*result.ActionResult, int) + func (entity WxService) SendWXMessage(sendData map[string]interface{}) *result.ActionResult + func (entity WxService) SignatureVerification(dataMap util.Map) bool + func (entity WxService) Transfers(transfers dao.Transfers) (Success bool, Message string)