Documentation ¶
Index ¶
- func InitApp()
- func InitCity2DB(filePath string)
- func InitCountry2DB(filePath string)
- func InitDistrict2DB(filePath string)
- func InitGroup2DB(filePath string)
- func InitGroupMenu()
- func InitGroupModuleAccess()
- func InitMenus2DB(split string)
- func InitModelAccess2DB(split string)
- func InitModuleCategory2DB(filePath string)
- func InitModuleModule2DB(split string)
- func InitProvince2DB(filePath string)
- func InitUser2DB(filePath string)
- type InitCategory
- type InitCities
- type InitCity
- type InitCountries
- type InitCountry
- type InitDistrict
- type InitDistricts
- type InitGroup
- type InitGroups
- type InitMenu
- type InitMenus
- type InitModule
- type InitModuleAccess
- type InitModuleAccesses
- type InitModuleCategories
- type InitModuleModules
- type InitProvince
- type InitProvinces
- type InitUser
- type InitUsers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitModuleCategory2DB ¶
func InitModuleCategory2DB(filePath string)
InitModuleCategory2DB 初始化用户数据
Types ¶
type InitCategory ¶
type InitCategory struct { md.ModuleCategory XMLID string `xml:"id,attr"` }
InitCategory 用户数据解析
type InitCities ¶
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 ¶
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 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 省份数据列表
Click to show internal directories.
Click to hide internal directories.