logic

package
v0.0.0-...-8b17fe9 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cdata

type Cdata struct {
	Value string `xml:",cdata"`
}

type Contenttemplate

type Contenttemplate struct {
	XMLName  xml.Name `xml:"content_template"`
	Linklist Linklist `xml:"link_list"`
}
type Link struct {
	XMLName    xml.Name   `xml:"link"`
	Name       string     `xml:"name,attr"`
	Memberlist Memberlist `xml:"memberlist"`
}
type Linklist struct {
	XMLName xml.Name `xml:"link_list"`
	Link    []Link   `xml:"link"`
}

type Member

type Member struct {
	XMLName  xml.Name `xml:"member"`
	Username Cdata    `xml:"username"`
	Nickname Cdata    `xml:"nickname"`
}

type Memberlist

type Memberlist struct {
	XMLName xml.Name `xml:"memberlist"`
	Member  []Member `xml:"member"`
}

type MessageLogic

type MessageLogic struct {
}

func NewMessageLogic

func NewMessageLogic() *MessageLogic

func (*MessageLogic) Do

func (m *MessageLogic) Do(message *wechat.Msg)

type RoomJoinXml

type RoomJoinXml struct {
	XMLName        xml.Name       `xml:"sysmsg"`
	Sysmsgtemplate Sysmsgtemplate `xml:"sysmsgtemplate"`
}

type RoomLogic

type RoomLogic struct {
}

func NewRoomLogic

func NewRoomLogic() *RoomLogic

func (*RoomLogic) DoJoin

func (r *RoomLogic) DoJoin(msg *wechat.Msg)

type Sysmsgtemplate

type Sysmsgtemplate struct {
	XMLName         xml.Name        `xml:"sysmsgtemplate"`
	Contenttemplate Contenttemplate `xml:"content_template"`
}

Jump to

Keyboard shortcuts

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