jsondto

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByCol

type ByCol []TCellDataDto

*

  • "images":{
  • "image_3mn0T_1663064091969":{
  • "border":{
  • "color":"#000",
  • "width":0,
  • "style":"solid",
  • "radius":0
  • },
  • "originHeight":18,
  • "fromRow":1,
  • "fromCol":0,

func (ByCol) Len

func (a ByCol) Len() int

func (ByCol) Less

func (a ByCol) Less(i, j int) bool

func (ByCol) Swap

func (a ByCol) Swap(i, j int)

type TCellDataDto

type TCellDataDto struct {
	R     int        `json:"r"`
	C     int        `json:"c"`
	Fs    int        //字体大小
	V     *VCell     `json:"v"`
	Vv    string     //原始 值
	Image *TImageDto //图片要占位

}

func (*TCellDataDto) ToPrettyString

func (dto *TCellDataDto) ToPrettyString() string

func (*TCellDataDto) ToString

func (dto *TCellDataDto) ToString() string

type TCellTypeDto

type TCellTypeDto struct {
}

func (*TCellTypeDto) ToString

func (dto *TCellTypeDto) ToString() string

type TConfigDto

type TConfigDto struct {
}

func (*TConfigDto) ToString

func (dto *TConfigDto) ToString() string

type TImageDto

type TImageDto struct {
	FromRow      int
	FromCol      int
	ToCol        int
	ToRow        int
	ImageType    string
	ByteSrc      []byte
	Src          string
	OriginWidth  int
	OriginHeight int
}

func (*TImageDto) ToString

func (dto *TImageDto) ToString() string

type TemplateDto

type TemplateDto struct {
	HasFooter bool
	HasHeader bool
	HasBody   bool

	Header *TemplateItemDto
	Footer *TemplateItemDto
	Body   *TemplateItemDto
}

func (*TemplateDto) ParseCellData

func (dto *TemplateDto) ParseCellData()

func (*TemplateDto) ParseHeaderFooter

func (dto *TemplateDto) ParseHeaderFooter(c []byte)

func (*TemplateDto) ParseTemplate

func (dto *TemplateDto) ParseTemplate(c []byte)

func (*TemplateDto) ToPrettyString

func (dto *TemplateDto) ToPrettyString() string

func (*TemplateDto) ToString

func (dto *TemplateDto) ToString() string

type TemplateItemDto

type TemplateItemDto struct {
	Name   string `json:"name"`
	Row    int    `json:"row"`
	Column int    `json:"column"`

	ZoomRatio        int    `json:"zoomRatio"`
	ShowGridLines    string `json:"showGridLines"`
	DefaultColWidth  int    `json:"defaultColWidth"`
	DefaultRowHeight int    `json:"defaultRowHeight"`

	Index  string `json:"index"`
	Status string `json:"status"`
	Order  string `json:"order"`

	CellData []TCellDataDto
	Config   TConfigDto
	Images   map[string]TImageDto
}

func (*TemplateItemDto) ParseCellData

func (dto *TemplateItemDto) ParseCellData()

func (*TemplateItemDto) ParseImages

func (dto *TemplateItemDto) ParseImages()

func (*TemplateItemDto) ToPrettyString

func (dto *TemplateItemDto) ToPrettyString() string

func (*TemplateItemDto) ToString

func (dto *TemplateItemDto) ToString() string

type VCell

type VCell struct {
	Ct struct {
		Fa string `json:"fa"`
		T  string `json:"t"`
	} `json:"ct"`
	Fs int    `json:"fs"`
	Fc string `json:"fc"`
	Ff string `json:"ff"`
	Ht int    `json:"ht"`
	Vt int    `json:"vt"`
	Tb int    `json:"tb"`
	V  string `json:"v"`
	Qp int    `json:"qp"`
	M  string `json:"m"`
}

func (*VCell) ToPrettyString

func (dto *VCell) ToPrettyString() string

Jump to

Keyboard shortcuts

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