service

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronService

type CronService struct {
	service.Serv
}

func (CronService) Deletes

func (cron CronService) Deletes(ids []uint) (err error)

删除数据

func (CronService) Insert

func (cron CronService) Insert(data interface{}) (err error)

写入数据

func (CronService) List

func (cron CronService) List(req *model.CronQuery) ([]model.Cron, error)

查询数据

func (CronService) Updates

func (cron CronService) Updates(id uint, cols interface{}) (err error)

更新数据

type ICronInterface

type ICronInterface interface {
	service.IServInterface
	Insert(data interface{}) (err error)
	Deletes(ids []uint) (err error)
	Updates(id uint, cols interface{}) (err error)
	List(req *model.CronQuery) ([]model.Cron, error)
}

func NewCronService

func NewCronService() ICronInterface

type IUserInterface

type IUserInterface interface {
	service.IServInterface
	FindUser(name string) (*model.User, error)
}

func NewUserService

func NewUserService() IUserInterface

type UserService

type UserService struct {
	service.Serv
}

func (UserService) FindUser

func (user UserService) FindUser(name string) (*model.User, error)

Jump to

Keyboard shortcuts

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