v2
This commit is contained in:
17
internal/erpserver/biz/v1/common/common.go
Normal file
17
internal/erpserver/biz/v1/common/common.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package common
|
||||
|
||||
type CommonBiz interface {
|
||||
CaptchaBiz() CaptchaBiz
|
||||
}
|
||||
|
||||
type commonBiz struct{}
|
||||
|
||||
var _ CommonBiz = (*commonBiz)(nil)
|
||||
|
||||
func New() *commonBiz {
|
||||
return &commonBiz{}
|
||||
}
|
||||
|
||||
func (b *commonBiz) CaptchaBiz() CaptchaBiz {
|
||||
return NewCaptcha()
|
||||
}
|
||||
Reference in New Issue
Block a user