Add service component type

This commit is contained in:
世界
2025-07-08 13:14:41 +08:00
parent e3c8c0705f
commit 7a1eee78df
22 changed files with 431 additions and 62 deletions
+21
View File
@@ -0,0 +1,21 @@
package service
type Adapter struct {
serviceType string
serviceTag string
}
func NewAdapter(serviceType string, serviceTag string) Adapter {
return Adapter{
serviceType: serviceType,
serviceTag: serviceTag,
}
}
func (a *Adapter) Type() string {
return a.serviceType
}
func (a *Adapter) Tag() string {
return a.serviceTag
}