YiTao/service/service.go

24 lines
432 B
Go
Raw Normal View History

2024-11-09 14:59:27 +08:00
package service
type Service struct {
User *UserService
Captcha *CaptchaService
LoginLog *LoginLogService
Common *CommonService
Item *ItemService
File *FileService
}
func InitService() *Service {
s := new(Service)
s.User = new(UserService)
s.Captcha = new(CaptchaService)
s.LoginLog = new(LoginLogService)
s.Common = new(CommonService)
s.Item = new(ItemService)
s.File = new(FileService)
return s
}