service

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: 7 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 struct

func New

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

New init

func (*Service) AddCard

func (s *Service) AddCard(c context.Context, req *model.AddCard) (err error)

AddCard add card.

func (*Service) AddGroup

func (s *Service) AddGroup(c context.Context, req *model.AddGroup) (err error)

AddGroup add group.

func (*Service) CardOrderChange

func (s *Service) CardOrderChange(c context.Context, req *model.ArgIds) (err error)

CardOrderChange card order change.

func (*Service) CardsByGid

func (s *Service) CardsByGid(c context.Context, gid int64) ([]*model.Card, error)

CardsByGid get cards by gid.

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) DeleteCard

func (s *Service) DeleteCard(c context.Context, id int64) error

DeleteCard delete card.

func (*Service) DeleteGroup

func (s *Service) DeleteGroup(c context.Context, id int64) error

DeleteGroup delete group.

func (*Service) GroupList

func (s *Service) GroupList(c context.Context, req *model.ArgQueryGroup) (res []*model.CardGroup, err error)

GroupList group list.

func (*Service) GroupOrderChange

func (s *Service) GroupOrderChange(c context.Context, req *model.ArgIds) (err error)

GroupOrderChange group order change.

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping Service

func (*Service) UpdateCard

func (s *Service) UpdateCard(c context.Context, req *model.UpdateCard) (err error)

UpdateCard update card.

func (*Service) UpdateCardState

func (s *Service) UpdateCardState(c context.Context, req *model.ArgState) error

UpdateCardState update card state.

func (*Service) UpdateGroup

func (s *Service) UpdateGroup(c context.Context, req *model.UpdateGroup) error

UpdateGroup update group.

func (*Service) UpdateGroupState

func (s *Service) UpdateGroupState(c context.Context, req *model.ArgState) error

UpdateGroupState update group state.

Jump to

Keyboard shortcuts

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