handler

package
v0.0.0-...-64045c7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookkeepingArgs

type BookkeepingArgs struct {
	Remark   string `json:"remark"`
	Amount   string `json:"amount"`
	Expenses string `json:"expenses"`
	Category string `json:"category"`
}

type DevboxHandler

type DevboxHandler interface {
	GetUserByID(ctx *gin.Context)
	PreparedLedger(ctx *gin.Context)
}

func NewDevboxHandler

func NewDevboxHandler(cfg *config.Config, user usecase.UserUseCase, ledger usecase.LedgerUseCase) DevboxHandler

type GetUserIdentityArgs

type GetUserIdentityArgs struct {
	Name string `json:"name"`
}

type Handler

type Handler struct {
	Name     string
	NeedAuth bool
	Handle   func(operator *domain.User) (string, error)
}

type WechatHandler

type WechatHandler interface {
	CheckSignature(ctx *gin.Context)
	Dispatch(ctx *gin.Context)
}

func NewWechatHandler

func NewWechatHandler(cfg *config.Config, billUseCase usecase.BillUseCase, aiService domain.AIService, ledgerUseCase usecase.LedgerUseCase, userUseCase usecase.UserUseCase) WechatHandler

func NewWechatHandler(cfg *config.Config, user biz.User, aiService client.OpenaiService) WechatHandler {

type WxReq

type WxReq struct {
	XMLName xml.Name `xml:"xml"`
	// ToUserName 开发者微信号
	ToUserName string `xml:"ToUserName"`
	// FromUserName 发送方帐号(一个OpenID)
	FromUserName string `xml:"FromUserName"`
	// CreateTime 消息创建时间 (整型)
	CreateTime int64 `xml:"CreateTime"`
	// MsgType 消息类型(文本消息为 text )
	MsgType string `xml:"MsgType"`
	// Content 文本消息内容
	Content string `xml:"Content"`
	// MsgID 消息类型(消息id,64位整型)
	MsgID string `xml:"MsgId"`
}

type WxResp

type WxResp struct {
	XMLName xml.Name `xml:"xml"`
	// ToUserName 接收方帐号(收到的OpenID)
	ToUserName string `xml:"ToUserName"`
	// FromUserName 开发者微信号
	FromUserName string `xml:"FromUserName"`
	// CreateTime 消息创建时间 (整型)
	CreateTime int64 `xml:"CreateTime"`
	// MsgType 消息类型(文本消息为 text )
	MsgType string `xml:"MsgType"`
	// Content 文本消息内容
	Content string `xml:"Content"`
}

Jump to

Keyboard shortcuts

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