consts

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CODE_SUCCESS = 200

	CODE_REQUEST_BAD    = 400
	CODE_SERVER_ERR     = 500
	CODE_NOFOUND_RECORD = 501

	CODE_FAIL = CODE_SERVER_ERR

	SHEET_NAME_BODY   = "正文"
	SHEET_NAME_HEADER = "页眉"
	SHEET_NAME_FOOTER = "页脚"

	PAGE_NO_CONST    = "{页码}"
	FONT_NAME_SIMHEI = "simhei"
	FONT_FILE_SIMHEI = "simhei.ttf"
	FONT_SIZE        = 8

	TEMPLATE_JSON_FILENAME = "template_head_tail.json"
)
View Source
const Metas = `` /* 4039-byte string literal not displayed */

Variables

View Source
var InstCommonDefine = &CommonDefine{}

Functions

This section is empty.

Types

type CommonDefine

type CommonDefine struct {
	BaseDir   string
	FontDir   string
	ConfigDir string
	ImageDir  string
	JsonDir   string
	InputDir  string
	OutputDir string

	JsonFileHeadTail string
	PdfFileHeadTail  string
}

func (*CommonDefine) ReadFile

func (c *CommonDefine) ReadFile(filename string) []byte

func (*CommonDefine) ReadJsonFile

func (c *CommonDefine) ReadJsonFile(name string) ([]byte, error)

func (*CommonDefine) ReadJsonFileDefault

func (c *CommonDefine) ReadJsonFileDefault() []byte

Jump to

Keyboard shortcuts

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