| 123456789101112131415161718192021 | package servicetype Service interface {	// HealthCheck check service health status	HealthCheck() bool}type CommonService struct {}// HealthCheck implement Service method// 用于检查服务的健康状态,这里仅仅返回truefunc (s *CommonService) HealthCheck() bool {	return true}func NewCommonService() *CommonService {	return &CommonService{}}
 |