service

package
v0.0.0-...-b2ba615 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPageParameter

func ConvertPageParameter(pageNo int, pageSize int) (int, int)

Types

type AreaService

type AreaService struct {
	Base *BaseService
}

func (*AreaService) GetByDepth

func (ctx *AreaService) GetByDepth(depth uint, pageNo int, pageSize int) (model.Page, error)

func (*AreaService) GetByID

func (ctx *AreaService) GetByID(id uint) (model.Area, error)

func (*AreaService) GetByParentID

func (ctx *AreaService) GetByParentID(id uint, pageNo int, pageSize int) (model.Page, error)

func (*AreaService) QueryByName

func (ctx *AreaService) QueryByName(name string, pageNo int, pageSize int) (model.Page, error)

type AttachmentService

type AttachmentService struct {
	Base *BaseService
}

func (*AttachmentService) SaveAttachment

func (ctx *AttachmentService) SaveAttachment(file *multipart.FileHeader) (model.Attachment, error)

type BaseService

type BaseService struct {
	Conf *config.Config
	DB   *gorm.DB
}

Jump to

Keyboard shortcuts

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