init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package example
|
||||
|
||||
// ExampleService 示例服务
|
||||
type ExampleService struct{}
|
||||
|
||||
// NewExampleService 创建示例服务
|
||||
func NewExampleService() *ExampleService {
|
||||
return &ExampleService{}
|
||||
}
|
||||
|
||||
// Hello 返回示例消息
|
||||
func (s *ExampleService) Hello() HelloResponse {
|
||||
return HelloResponse{
|
||||
Message: "hello from skeleton example",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user