excel

package
v0.3.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(
	wire.Struct(new(Controller), "*"),
	wire.Struct(new(Service), "*"),
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Service *Service
}

func (*Controller) Create

func (x *Controller) Create(ctx context.Context, c *app.RequestContext)

type CreateDto

type CreateDto struct {
	File   string  `json:"file"`
	Sheets []Sheet `json:"sheets"`
}

type Service

type Service struct {
	*common.Inject
}

func (*Service) Create

func (x *Service) Create(ctx context.Context, dto *CreateDto) (err error)

func (*Service) Upload

func (x *Service) Upload(ctx context.Context, buf *bytes.Buffer, name string) (err error)

type Sheet

type Sheet struct {
	Name string          `json:"name"`
	Data [][]interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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