Documentation ¶
Index ¶
- func AddDownExcelHttpHeader(c *gin.Context, name string)
- func BuildExcelTemplate(url, objID, filename string, header http.Header) error
- func GetExcelData(sheet *xlsx.Sheet, fields, defFields common.KvMap, isCheckHeader bool, ...) (map[int]map[string]interface{}, error)
- func GetHostData(appIDStr, hostIDStr, apiAddr string, header http.Header, ...) ([]interface{}, error)
- func GetImportHosts(f *xlsx.File, url string, header http.Header) (map[int]map[string]interface{}, error)
- func GetImportInsts(f *xlsx.File, url string, header http.Header, headerRow int) (map[int]map[string]interface{}, error)
- func GetInstData(ownerID, objID, instIDStr, apiAddr string, header http.Header, ...) ([]interface{}, error)
- func GetObjectData(ownerID, objID, apiAddr string, header http.Header) ([]interface{}, error)
- func GetUserAppPri(apiAddr string, userName string, ownerID, lang string) (userPriveApp map[int64][]string, rolePrivi map[string][]string, ...)
- func ProductExcelHealer(fields []interface{}, filter []string, sheet *xlsx.Sheet)
- func SetProxyHeader(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDownExcelHttpHeader ¶
func BuildExcelTemplate ¶
BuildExcelTemplate return httpcode, error
func GetExcelData ¶
func GetExcelData(sheet *xlsx.Sheet, fields, defFields common.KvMap, isCheckHeader bool, firstRow int) (map[int]map[string]interface{}, error)
GetExcelData excel数据,一个kv结构,key行数(excel中的行数),value内容
func GetHostData ¶
func GetHostData(appIDStr, hostIDStr, apiAddr string, header http.Header, kvMap map[string]string) ([]interface{}, error)
GetHostData get host data from excel
func GetImportHosts ¶
func GetImportHosts(f *xlsx.File, url string, header http.Header) (map[int]map[string]interface{}, error)
GetImportHosts get import hosts
func GetImportInsts ¶
func GetImportInsts(f *xlsx.File, url string, header http.Header, headerRow int) (map[int]map[string]interface{}, error)
GetImportInsts get insts from excel file
func GetInstData ¶
func GetInstData(ownerID, objID, instIDStr, apiAddr string, header http.Header, kvMap map[string]string) ([]interface{}, error)
GetInstData get inst data
func GetObjectData ¶
GetObjectData get object data
func GetUserAppPri ¶
func GetUserAppPri(apiAddr string, userName string, ownerID, lang string) (userPriveApp map[int64][]string, rolePrivi map[string][]string, modelConfigPrivi map[string][]string, sysPrivi []string)
GetUserAppPri get user privilege
func ProductExcelHealer ¶
ProductExcelHealer Excel文件头部,
func SetProxyHeader ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.