service_user

package
v1.0.1-0...-bd443ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitAppData

type InitAppData struct {
	Version   string `json:"version"`
	GitSha    string `json:"git_sha"`
	BuildTime string `json:"build_time"`
}

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 (a *UserService) DeleteArticleById(ctx context.Context, id string) (bool, error)

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 (a *UserService) GetAllConfig(ctx context.Context, searchKey string) ([]*model.Config, error)

func (*UserService) GetAllVisitorPoint

func (a *UserService) GetAllVisitorPoint(ctx context.Context) ([]model.VisitorLonlatModel, error)

func (*UserService) GetArticleById

func (a *UserService) GetArticleById(ctx context.Context, id string) (*model.Article, error)

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 (a *UserService) QueryCarousel(ctx context.Context, isOnShow *bool) (list []*model.Carousel, err error)

func (*UserService) SendRegisterSms

func (a *UserService) SendRegisterSms(ctx context.Context, phoneNum string) error

func (*UserService) UpdateArticle

func (a *UserService) UpdateArticle(ctx context.Context, article *model.Article) error

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 (a *UserService) UploadFile(ctx context.Context, userId, fileName string, file io.Reader, size int) (url, bucket, key string, err error)

func (*UserService) UserLogin

func (a *UserService) UserLogin(ctx context.Context, phone, password, clientId string) (jwt string, err error)

func (*UserService) UserRegister

func (a *UserService) UserRegister(ctx context.Context, phone, password, validCode, clientId string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL