YiTao/service/service.go

26 lines
504 B
Go
Raw Normal View History

2024-11-09 14:59:27 +08:00
package service
type Service struct {
2025-01-21 14:37:34 +08:00
User *UserService
Captcha *CaptchaService
LoginLog *LoginLogService
Common *CommonService
Item *ItemService
File *FileService
Recomment *RecommentService
2024-11-09 14:59:27 +08:00
}
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)
2025-01-21 14:37:34 +08:00
s.Recomment = new(RecommentService)
2024-11-09 14:59:27 +08:00
return s
}