Documentation ¶
Index ¶
- type InitAppData
- type UserService
- func (a *UserService) CreateArticle(ctx context.Context, article *model.CreateArticleModel) error
- func (a *UserService) CreateCarousel(ctx context.Context, item *model.CreateCarouselModel) error
- func (a *UserService) DeleteArticleById(ctx context.Context, id string) (bool, error)
- func (a *UserService) DeleteCarouselById(ctx context.Context, id string) error
- func (a *UserService) DeleteFile(ctx context.Context, key string) (err error)
- func (a *UserService) GetAMapKey(ctx context.Context) (key string, err error)
- func (a *UserService) GetAllConfig(ctx context.Context, searchKey string) ([]*model.Config, error)
- func (a *UserService) GetAllVisitorPoint(ctx context.Context) ([]model.VisitorLonlatModel, error)
- func (a *UserService) GetArticleById(ctx context.Context, id string) (*model.Article, error)
- func (a *UserService) GetAuthFace() *service.UserModule
- func (a *UserService) InitAppData(ctx context.Context) (data *InitAppData)
- func (a *UserService) QueryCarousel(ctx context.Context, isOnShow *bool) (list []*model.Carousel, err error)
- func (a *UserService) SendRegisterSms(ctx context.Context, phoneNum string) error
- func (a *UserService) UpdateArticle(ctx context.Context, article *model.Article) error
- func (a *UserService) UpdateArticleSample(ctx context.Context, article *model.UpdateArticleModel) error
- func (a *UserService) UpdateCarousel(ctx context.Context, item *model.UpdateCarouselModel) error
- func (a *UserService) UpdateConfig(ctx context.Context, name, value string) error
- func (a *UserService) UploadFile(ctx context.Context, userId, fileName string, file io.Reader, size int) (url, bucket, key string, err error)
- func (a *UserService) UserLogin(ctx context.Context, phone, password, clientId string) (jwt string, err error)
- func (a *UserService) UserRegister(ctx context.Context, phone, password, validCode, clientId string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitAppData ¶
type UserService ¶
type UserService struct { ModuleArticle *service2.BlogArticleModule ModuleFile *service3.FileModule ModuleCarousel *service4.CarouselModule ModuleStatistic *service5.StatisticService ModuleCatchword *service6.CatchwordModule NCfg *ncfg.NConfig // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService( moduleArticle *service2.BlogArticleModule, moduleFile *service3.FileModule, log *nlog.NLog, moduleConfig *ConfigService.ConfigModule, moduleUser *service.UserModule, moduleMsg *MessageService.MessageModule, moduleCarousel *service4.CarouselModule, moduleStatistic *service5.StatisticService, moduleCatchword *service6.CatchwordModule, nCfg *ncfg.NConfig, ) *UserService
func (*UserService) CreateArticle ¶
func (a *UserService) CreateArticle(ctx context.Context, article *model.CreateArticleModel) error
func (*UserService) CreateCarousel ¶
func (a *UserService) CreateCarousel(ctx context.Context, item *model.CreateCarouselModel) error
func (*UserService) DeleteArticleById ¶
func (*UserService) DeleteCarouselById ¶
func (a *UserService) DeleteCarouselById(ctx context.Context, id string) error
func (*UserService) DeleteFile ¶
func (a *UserService) DeleteFile(ctx context.Context, key string) (err error)
func (*UserService) GetAMapKey ¶
func (a *UserService) GetAMapKey(ctx context.Context) (key string, err error)
func (*UserService) GetAllConfig ¶
func (*UserService) GetAllVisitorPoint ¶
func (a *UserService) GetAllVisitorPoint(ctx context.Context) ([]model.VisitorLonlatModel, error)
func (*UserService) GetArticleById ¶
func (*UserService) GetAuthFace ¶
func (a *UserService) GetAuthFace() *service.UserModule
func (*UserService) InitAppData ¶
func (a *UserService) InitAppData(ctx context.Context) (data *InitAppData)
func (*UserService) QueryCarousel ¶
func (*UserService) SendRegisterSms ¶
func (a *UserService) SendRegisterSms(ctx context.Context, phoneNum string) error
func (*UserService) UpdateArticle ¶
func (*UserService) UpdateArticleSample ¶
func (a *UserService) UpdateArticleSample(ctx context.Context, article *model.UpdateArticleModel) error
func (*UserService) UpdateCarousel ¶
func (a *UserService) UpdateCarousel(ctx context.Context, item *model.UpdateCarouselModel) error
func (*UserService) UpdateConfig ¶
func (a *UserService) UpdateConfig(ctx context.Context, name, value string) error
func (*UserService) UploadFile ¶
func (*UserService) UserRegister ¶
func (a *UserService) UserRegister(ctx context.Context, phone, password, validCode, clientId string) error
Click to show internal directories.
Click to hide internal directories.