2025-05-25 12:05:06 +08:00

19 lines
391 B
Go

package impl
import (
"122.51.31.227/go-course/go18/book/v4/apps/comment"
)
// 怎么知道他有没有实现该业务, 可以通过类型约束
// var _ book.Service = &BookServiceImpl{}
// &BookServiceImpl 的 nil对象
//
// int64(1) int64 1
// *BookServiceImpl(nil)
var _ comment.Service = (*CommentServiceImpl)(nil)
// Book业务的具体实现
type CommentServiceImpl struct {
}