18 lines
		
	
	
		
			250 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			250 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 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()
 | |
| }
 |