Documentation ¶
Index ¶
- type MessageController
- type SendController
- func (c *SendController[TIRes, TISRes]) CreateSend(ctx context.Context, req *co_v1.CreateSendReq) (api_v1.BoolRes, error)
- func (c *SendController[TIRes, TISRes]) QuerySendInfoList(ctx context.Context, req *co_v1.GetSendInfoListReq) (*co_model.SendListRes, error)
- func (c *SendController[TIRes, TISRes]) SetSendInfoAction(ctx context.Context, req *co_v1.SetSendActionReq) (api_v1.BoolRes, error)
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)
设置发送命令
Click to show internal directories.
Click to hide internal directories.