template

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Code generated by hero. source: D:\GoProjects\dp_clean_core\template\add.tpl DO NOT EDIT!

Code generated by hero. source: D:\GoProjects\dp_clean_core\template\addEdit.tpl DO NOT EDIT!

Code generated by hero. source: D:\GoProjects\dp_clean_core\template\api.tpl DO NOT EDIT!

Code generated by hero. source: D:\GoProjects\dp_clean_core\template\edit.tpl DO NOT EDIT!

Code generated by hero. source: D:\GoProjects\dp_clean_core\template\table.tpl DO NOT EDIT!

Code generated by hero. source: D:\GoProjects\dp_clean_core\template\tableDrawerIndex.tpl DO NOT EDIT!

Code generated by hero. source: D:\GoProjects\dp_clean_core\template\tableIndex.tpl DO NOT EDIT!

Code generated by hero. source: D:\GoProjects\dp_clean_core\template\tree.tpl DO NOT EDIT!

Code generated by hero. source: D:\GoProjects\dp_clean_core\template\treeApi.tpl DO NOT EDIT!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(fields []pkg.FormField, options AddOption, buffer *bytes.Buffer)

func AddEdit

func AddEdit(fields []pkg.FormField, options AddEditOption, buffer *bytes.Buffer)

func Api

func Api(apiName string, apiPath string, vueName string, buffer *bytes.Buffer)

func Edit

func Edit(fields []pkg.FormField, options EditOption, buffer *bytes.Buffer)

func Table

func Table(fields []pkg.FormField, firstTwo []pkg.FormField, rest []pkg.FormField, options TableOption, buffer *bytes.Buffer)

func TableDrawerIndex

func TableDrawerIndex(fields []pkg.FormField, firstTwo []pkg.FormField, rest []pkg.FormField, options TableDrawerIndexOption, buffer *bytes.Buffer)

func TableIndex

func TableIndex(fields []pkg.FormField, firstTwo []pkg.FormField, rest []pkg.FormField, options TableIndexOption, buffer *bytes.Buffer)

func Tree

func Tree(fields []pkg.FormField, options TreeOption, buffer *bytes.Buffer)

func TreeApi

func TreeApi(apiName string, apiPath string, vueName string, buffer *bytes.Buffer)

Types

type AddEditOption

type AddEditOption struct {
	Api           bool
	ApiName       string
	CustomList    bool
	Dict          bool
	Password      bool
	Editor        bool
	Upload        bool
	UploadThumb   bool
	FileUpload    bool
	TotalRow      int
	RowNum        int
	Span          string
	LabelPosition string
	ModalWidth    string
}

type AddOption

type AddOption struct {
	Api           bool
	ApiName       string
	CustomList    bool
	Dict          bool
	Password      bool
	Editor        bool
	Upload        bool
	UploadThumb   bool
	FileUpload    bool
	TotalRow      int
	RowNum        int
	Span          string
	LabelPosition string
	ModalWidth    string
}

type EditOption

type EditOption struct {
	Api           bool
	ApiName       string
	CustomList    bool
	Dict          bool
	Password      bool
	Editor        bool
	Upload        bool
	UploadThumb   bool
	FileUpload    bool
	TotalRow      int
	RowNum        int
	Span          string
	LabelPosition string
	ModalWidth    string
}

type TableDrawerIndexOption

type TableDrawerIndexOption struct {
	SearchSize       int
	HideSearch       bool
	ApiName          string
	DaterangeSearch  bool
	Api              bool
	DefaultSort      string
	DefaultSortType  string
	SearchDict       bool
	SearchCustomList bool
	VueName          string
}

type TableIndexOption

type TableIndexOption struct {
	SearchSize       int
	HideSearch       bool
	ApiName          string
	DaterangeSearch  bool
	Api              bool
	DefaultSort      string
	DefaultSortType  string
	SearchDict       bool
	SearchCustomList bool
	VueName          string
}

type TableOption

type TableOption struct {
	RowNum           int
	SearchSize       int
	HideSearch       bool
	ModalWidth       string
	ApiName          string
	Upload           bool
	UploadThumb      bool
	DaterangeSearch  bool
	Password         bool
	VueName          string
	Api              bool
	DefaultSort      string
	DefaultSortType  string
	LabelPosition    string
	TotalRow         int
	Span             string
	FileUpload       bool
	Editor           bool
	Dict             bool
	SearchDict       bool
	CustomList       bool
	SearchCustomList bool
}

type TreeOption

type TreeOption struct {
	RowNum        int
	TotalRow      int
	EnableTable   bool
	TreeSpan      string
	TreeEditSpan  string
	LabelPosition string
	Span          string
	IsDrawer      bool
	ModalWidth    string
	TotalRowTree  int
	Api           bool
	ApiName       string
	FileUpload    bool
	Upload        bool
	UploadThumb   bool
	Editor        bool
	Password      bool
	Dict          bool
	CustomList    bool
	VueName       string
}

Jump to

Keyboard shortcuts

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