feat: 升级接口约束以及定义

This commit is contained in:
2026-04-13 17:04:21 +08:00
parent c232fe9317
commit ad44a84718
8 changed files with 195 additions and 0 deletions

14
abstract/IConsumer.go Normal file
View File

@@ -0,0 +1,14 @@
// Package abstract ...
//
// Description : abstract ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2025-08-22 16:33
package abstract
// IConsumer 消费者接口约束
type IConsumer interface {
Start() error // 启动消费者
Stop() // 停止消费者
}