controller

package
v0.0.0-...-264dbbd Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageController

type MessageController[
	TIRes co_model.IMessageRes,
] struct {
	i_controller.IMessage[TIRes]
}

func Message

func Message[
	TIRes co_model.IMessageRes,
	TISRes co_model.ISendRes,
](modules co_interface.IModules[TIRes, TISRes]) *MessageController[TIRes]

func (*MessageController[TIRes]) CreateMessage

func (c *MessageController[TIRes]) CreateMessage(ctx context.Context, req *co_v1.SetMessageInfoReq) (api_v1.BoolRes, error)

CreateMessage 创建消息

func (*MessageController[TIRes]) QueryMessageList

func (c *MessageController[TIRes]) QueryMessageList(ctx context.Context, req *co_v1.GetMessageListReq) (*co_model.MessageListRes, error)

消息列表

type SendController

type SendController[
	TIRes co_model.IMessageRes,
	TISRes co_model.ISendRes,
] struct {
	i_controller.ISend[TISRes]
}

func Send

func Send[
	TIRes co_model.IMessageRes,
	TISRes co_model.ISendRes,
](modules co_interface.IModules[TIRes, TISRes]) *SendController[TIRes, TISRes]

func (*SendController[TIRes, TISRes]) CreateSend

func (c *SendController[TIRes, TISRes]) CreateSend(ctx context.Context, req *co_v1.CreateSendReq) (api_v1.BoolRes, error)

func (*SendController[TIRes, TISRes]) QuerySendInfoList

func (c *SendController[TIRes, TISRes]) QuerySendInfoList(ctx context.Context, req *co_v1.GetSendInfoListReq) (*co_model.SendListRes, error)

规则列表

func (*SendController[TIRes, TISRes]) SetSendInfoAction

func (c *SendController[TIRes, TISRes]) SetSendInfoAction(ctx context.Context, req *co_v1.SetSendActionReq) (api_v1.BoolRes, error)

设置发送命令

Jump to

Keyboard shortcuts

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