initalActions

package
v0.0.0-...-6a5318f Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitApp

func InitApp()

InitApp 基础数据插入

func InitCity2DB

func InitCity2DB(filePath string)

InitCity2DB 初始化省份城市数据

func InitCountry2DB

func InitCountry2DB(filePath string)

InitCountry2DB 初始化国家数据

func InitDistrict2DB

func InitDistrict2DB(filePath string)

InitDistrict2DB 初始化省份城市数据

func InitGroup2DB

func InitGroup2DB(filePath string)

InitGroup2DB 菜单初始化,数据库创建记录

func InitGroupMenu

func InitGroupMenu()

InitGroupMenu 权限菜单初始化

func InitGroupModuleAccess

func InitGroupModuleAccess()

InitGroupModuleAccess 权限组对表的操作权限

func InitMenus2DB

func InitMenus2DB(split string)

InitMenus2DB 菜单初始化,数据库创建记录

func InitModelAccess2DB

func InitModelAccess2DB(split string)

InitModelAccess2DB 初始化模块数据

func InitModuleCategory2DB

func InitModuleCategory2DB(filePath string)

InitModuleCategory2DB 初始化用户数据

func InitModuleModule2DB

func InitModuleModule2DB(split string)

InitModuleModule2DB 初始化模块数据

func InitProvince2DB

func InitProvince2DB(filePath string)

InitProvince2DB 初始化省份数据

func InitUser2DB

func InitUser2DB(filePath string)

InitUser2DB 初始化用户数据

Types

type InitCategory

type InitCategory struct {
	md.ModuleCategory
	XMLID string `xml:"id,attr"`
}

InitCategory 用户数据解析

type InitCities

type InitCities struct {
	XMLName xml.Name   `xml:"Cities"`
	Cities  []InitCity `xml:"City"`
}

InitCities 初始化城市数据列表

type InitCity

type InitCity struct {
	ID    uint   `xml:"ID,attr"`
	Name  string `xml:"CityName,attr"`
	PID   uint   `xml:"PID,attr"`
	XMLID string `xml:"xml_id,attr"`
}

InitCity 初始化城市数据

type InitCountries

type InitCountries struct {
	XMLName   xml.Name      `xml:"Countries"`
	Countries []InitCountry `xml:"country"`
}

InitCountries 国家数据列表

type InitCountry

type InitCountry struct {
	ID    uint   `xml:"ID,attr"`
	Name  string `xml:"name"`
	XMLID string `xml:"xml_id,attr"`
}

InitCountry 国家数据解析

type InitDistrict

type InitDistrict struct {
	ID    uint   `xml:"ID,attr"`
	Name  string `xml:"DistrictName,attr"`
	PID   uint   `xml:"CID,attr"`
	XMLID string `xml:"xml_id,attr"`
}

InitDistrict 初始化区县数据

type InitDistricts

type InitDistricts struct {
	XMLName   xml.Name       `xml:"Districts"`
	Districts []InitDistrict `xml:"District"`
}

InitDistricts 初始化区县数据列表

type InitGroup

type InitGroup struct {
	XMLID       string `xml:"id,attr"`
	Childs      string `xml:"childs"`
	Parent      string `xml:"parent"`
	Category    string `xml:"category"`
	Description string `xml:"description"`
	Name        string `xml:"name"`
}

InitGroup 权限组数据解析

type InitGroups

type InitGroups struct {
	XMLName xml.Name    `xml:"Groups"`
	Groups  []InitGroup `xml:"group"`
}

InitGroups 权限组数据列表

type InitMenu

type InitMenu struct {
	XMLID         string `xml:"id,attr"`
	Name          string `xml:"name"`
	ParentID      string `xml:"parent"`
	Icon          string `xml:"icon"`
	Groups        string `xml:"group"`
	Path          string `xml:"path"`
	ComponentPath string `xml:"componentpath"`
	Meta          string `xml:"meta"`
	ViewType      string `xml:"viewtype"`
	IsBackground  bool   `xml:"isbackground"`
}

InitMenu 菜单数据解析

type InitMenus

type InitMenus struct {
	XMLName xml.Name   `xml:"Menus"`
	Menus   []InitMenu `xml:"menu"`
}

InitMenus 菜单数据列表

type InitModule

type InitModule struct {
	md.ModuleModule
	XMLID    string `xml:"id,attr"`
	Category string `xml:"category"`
}

InitModule 模块数据解析

type InitModuleAccess

type InitModuleAccess struct {
	XMLID      string `xml:"id,attr"`
	Module     string `xml:"module"`
	PermCreate bool   `xml:"create"` //创建权限
	PermUnlink bool   `xml:"unlink"` //删除权限
	PermWrite  bool   `xml:"write"`  //修改权限
	PermRead   bool   `xml:"read"`   //读权限
}

InitModuleAccess 模块数据解析

type InitModuleAccesses

type InitModuleAccesses struct {
	XMLName     xml.Name           `xml:"Permissions"`
	Permissions []InitModuleAccess `xml:"permission"`
}

InitModuleAccesses 模块权限数据

type InitModuleCategories

type InitModuleCategories struct {
	XMLName    xml.Name       `xml:"Categories"`
	Categories []InitCategory `xml:"category"`
}

InitModuleCategories 模块分类数据

type InitModuleModules

type InitModuleModules struct {
	XMLName xml.Name     `xml:"Modules"`
	Modules []InitModule `xml:"module"`
}

InitModuleModules 模块数据

type InitProvince

type InitProvince struct {
	ID    uint   `xml:"ID,attr"`
	Name  string `xml:"ProvinceName,attr"`
	PID   uint   `xml:"PID,attr"`
	XMLID string `xml:"xml_id,attr"`
}

InitProvince 省份数据解析

type InitProvinces

type InitProvinces struct {
	XMLName   xml.Name       `xml:"Provinces"`
	Provinces []InitProvince `xml:"Province"`
}

InitProvinces 省份数据列表

type InitUser

type InitUser struct {
	md.User
	XMLID  string `xml:"id,attr"`
	Groups string `xml:"group"`
}

InitUser 用户数据解析

type InitUsers

type InitUsers struct {
	XMLName xml.Name   `xml:"Users"`
	Users   []InitUser `xml:"user"`
}

InitUsers 用户数据列表

Jump to

Keyboard shortcuts

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