egg

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is egg service

func New

func New(c *conf.Config) (s *Service)

New new a egg service

func (*Service) AddEgg

func (s *Service) AddEgg(e *eggModel.Egg, p []eggModel.Plat, w []string) (err error)

AddEgg add egg

func (*Service) DelEgg

func (s *Service) DelEgg(id uint, person string, uid int64) (err error)

DelEgg update egg

func (*Service) EggWithID

func (s *Service) EggWithID(id uint) (egg *eggModel.Egg, err error)

EggWithID get egg with ID

func (*Service) IndexEgg

func (s *Service) IndexEgg(param *eggModel.IndexParam) (values *eggModel.IndexPager, err error)

IndexEgg egg list

func (*Service) IsWdExist

func (s *Service) IsWdExist(words []string, sTime, eTime libTime.Time, eggID uint) (exist bool, w string, err error)

IsWdExist the word will add is exist

func (*Service) PubEgg

func (s *Service) PubEgg(id uint, publish uint8, person string, uid int64) (err error)

PubEgg publish egg

func (*Service) SearchEgg

func (s *Service) SearchEgg() (values []eggModel.SearchEgg, err error)

SearchEgg search egg list

func (*Service) SearchEggWeb

func (s *Service) SearchEggWeb() (values []eggModel.SearchEggWeb, err error)

SearchEggWeb search egg list

func (*Service) UpdateEgg

func (s *Service) UpdateEgg(e *eggModel.Egg, p []eggModel.Plat, w []string) (err error)

UpdateEgg update egg

Jump to

Keyboard shortcuts

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