@@ -6,10 +6,10 @@ import (
6
6
"encoding/json"
7
7
)
8
8
9
- type TypePlugins map [string ]func (TypeApi , dbTypeSession ) TypeApi
9
+ type TypePlugins map [string ]func (TypeApi , TypeDbSession ) TypeApi
10
10
11
11
var Plugins = TypePlugins {
12
- "ejaProfile" : func (eja TypeApi , db dbTypeSession ) TypeApi {
12
+ "ejaProfile" : func (eja TypeApi , db TypeDbSession ) TypeApi {
13
13
eja .Alert = nil
14
14
if eja .Action == "run" {
15
15
if eja .Values ["passwordOld" ] == "" || eja .Values ["passwordNew" ] == "" || eja .Values ["passwordRepeat" ] == "" {
@@ -31,13 +31,13 @@ var Plugins = TypePlugins{
31
31
}
32
32
return eja
33
33
},
34
- "ejaImport" : func (eja TypeApi , db dbTypeSession ) TypeApi {
34
+ "ejaImport" : func (eja TypeApi , db TypeDbSession ) TypeApi {
35
35
if eja .Action == "run" {
36
36
moduleName := eja .Values ["moduleName" ]
37
37
moduleData := eja .Values ["import" ]
38
38
dataImport := db .Number (eja .Values ["dataImport" ])
39
39
if moduleData != "" {
40
- var module dbTypeModule
40
+ var module TypeDbModule
41
41
if err := json .Unmarshal ([]byte (moduleData ), & module ); err != nil {
42
42
alert (& eja .Alert , db .Translate ("ejaImportJsonError" , eja .Owner ))
43
43
} else {
@@ -61,7 +61,7 @@ var Plugins = TypePlugins{
61
61
}
62
62
return eja
63
63
},
64
- "ejaExport" : func (eja TypeApi , db dbTypeSession ) TypeApi {
64
+ "ejaExport" : func (eja TypeApi , db TypeDbSession ) TypeApi {
65
65
if eja .Action == "run" {
66
66
moduleId := db .Number (eja .Values ["ejaModuleId" ])
67
67
dataExport := db .Number (eja .Values ["dataExport" ]) > 0
0 commit comments