mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-27 21:03:41 +08:00
29 lines
791 B
Go
29 lines
791 B
Go
// Package common
|
|
// @Link https://github.com/bufanyun/hotgo
|
|
// @Copyright Copyright (c) 2023 HotGo CLI
|
|
// @Author Ms <133814250@qq.com>
|
|
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
|
package common
|
|
|
|
import (
|
|
"context"
|
|
"hotgo/api/admin/common"
|
|
"hotgo/internal/service"
|
|
)
|
|
|
|
var (
|
|
Wechat = cWechat{}
|
|
)
|
|
|
|
type cWechat struct{}
|
|
|
|
func (c *cWechat) Authorize(ctx context.Context, req *common.WechatAuthorizeReq) (res *common.WechatAuthorizeRes, err error) {
|
|
_, err = service.CommonWechat().Authorize(ctx, &req.WechatAuthorizeInp)
|
|
return
|
|
}
|
|
|
|
func (c *cWechat) AuthorizeCall(ctx context.Context, req *common.WechatAuthorizeCallReq) (res *common.WechatAuthorizeCallRes, err error) {
|
|
_, err = service.CommonWechat().AuthorizeCall(ctx, &req.WechatAuthorizeCallInp)
|
|
return
|
|
}
|