Documentation ¶
Index ¶
- func ConvertPageParameter(pageNo int, pageSize int) (int, int)
- type AreaService
- func (ctx *AreaService) GetByDepth(depth uint, pageNo int, pageSize int) (model.Page, error)
- func (ctx *AreaService) GetByID(id uint) (model.Area, error)
- func (ctx *AreaService) GetByParentID(id uint, pageNo int, pageSize int) (model.Page, error)
- func (ctx *AreaService) QueryByName(name string, pageNo int, pageSize int) (model.Page, error)
- type AttachmentService
- type BaseService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AreaService ¶
type AreaService struct {
Base *BaseService
}
func (*AreaService) GetByDepth ¶
func (*AreaService) GetByParentID ¶
func (*AreaService) QueryByName ¶
type AttachmentService ¶
type AttachmentService struct {
Base *BaseService
}
func (*AttachmentService) SaveAttachment ¶
func (ctx *AttachmentService) SaveAttachment(file *multipart.FileHeader) (model.Attachment, error)
Click to show internal directories.
Click to hide internal directories.