17 lines
337 B
Go
17 lines
337 B
Go
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",
|
|
}
|
|
}
|