Documentation ¶
Index ¶
- func ApiAdd(project, module string) string
- func ApiBox(project, module string) string
- func ApiBy(project, module, name string) string
- func ApiDisable(project, module string) string
- func ApiEdit(project, module string) string
- func ApiExport(project, module string) string
- func ApiIndex(project, module string) string
- func ApiModule(project, module string) string
- func ApiSave(project, module string) string
- func ApiShow(project, module string) string
- func ApiTree(project, module string) string
- func PathAdd(project, module string) string
- func PathBox(project, module string) string
- func PathBy(project, module, name string) string
- func PathDisable(project, module string) string
- func PathEdit(project, module string) string
- func PathExport(project, module string) string
- func PathIndex(project, module string) string
- func PathModule(project, module string) string
- func PathSave(project, module string) string
- func PathShow(project, module string) string
- func PathTree(project, module string) string
- func Permit(id string, profiles ...string) *xtype.Permission
- func PermitAdd(project, module string, profiles ...string) *xtype.Permission
- func PermitBy(project, module, name string, profiles ...string) *xtype.Permission
- func PermitDisable(project, module string, profiles ...string) *xtype.Permission
- func PermitEdit(project, module string, profiles ...string) *xtype.Permission
- func PermitExport(project, module string, profiles ...string) *xtype.Permission
- func PermitView(project, module string, profiles ...string) *xtype.Permission
- func SetLocale(locale string)
- func SetPriority(value int)
- func TmplBy(project, module, name string) string
- func TmplDefault(project, module string) string
- func TmplForm(project, module string) string
- func TmplIndex(project, module string) string
- func TmplList(project, module string) string
- type Controller
- func (me *Controller) Add(c xhttp.Context)
- func (me *Controller) Box(c xhttp.Context)
- func (me *Controller) Disable(c xhttp.Context)
- func (me *Controller) DisableAndTx(c xhttp.Context)
- func (me *Controller) Edit(c xhttp.Context)
- func (me *Controller) Error(c xhttp.Context, err error)
- func (me *Controller) ErrorJSON(c xhttp.Context, err error)
- func (me *Controller) Export(c xhttp.Context, mgr service.Service, pre func(c xhttp.Context) error, ...) (out entity.Interfaces, err error)
- func (me *Controller) Fault(c xhttp.Context, state string, data interface{}) map[string]interface{}
- func (me *Controller) FaultMessage(c xhttp.Context, msg, state string) map[string]interface{}
- func (me *Controller) FaultMsg(c xhttp.Context, msg, state string, data interface{}) map[string]interface{}
- func (me *Controller) FaultResult(c xhttp.Context, state string, r *result.Result) map[string]interface{}
- func (me *Controller) FaultStatus(c xhttp.Context, code int, state string, data interface{}) map[string]interface{}
- func (me *Controller) FaultStatusMsg(c xhttp.Context, code int, msg, state string, data interface{}) map[string]interface{}
- func (me *Controller) FaultStatusMsgToken(c xhttp.Context, code int, msg, token, state string, data interface{}) map[string]interface{}
- func (me *Controller) FaultToken(c xhttp.Context, token, state string, data interface{}) map[string]interface{}
- func (me *Controller) Index(c xhttp.Context)
- func (me *Controller) Page(c xhttp.Context, mgr service.Service) (out *result.Page, err error)
- func (me *Controller) PathAdd() string
- func (me *Controller) PathBox() string
- func (me *Controller) PathBy(name string) string
- func (me *Controller) PathDisable() string
- func (me *Controller) PathEdit() string
- func (me *Controller) PathIndex() string
- func (me *Controller) PathSave() string
- func (me *Controller) PathShow() string
- func (me *Controller) PathTree() string
- func (me *Controller) Permit(id string, profiles ...string) *xtype.Permission
- func (me *Controller) PermitAdd(profiles ...string) *xtype.Permission
- func (me *Controller) PermitBy(name string, profiles ...string) *xtype.Permission
- func (me *Controller) PermitDisable(profiles ...string) *xtype.Permission
- func (me *Controller) PermitEdit(profiles ...string) *xtype.Permission
- func (me *Controller) PermitView(profiles ...string) *xtype.Permission
- func (me *Controller) Result(c xhttp.Context, r result.Http) map[string]interface{}
- func (me *Controller) Save(c xhttp.Context)
- func (me *Controller) SaveAndTx(c xhttp.Context)
- func (me *Controller) SetSqlOfExport(sql string)
- func (me *Controller) SetSqlOfIndex(sql string)
- func (me *Controller) Show(c xhttp.Context)
- func (me *Controller) Success(c xhttp.Context, state string, data interface{}) map[string]interface{}
- func (me *Controller) SuccessMessage(c xhttp.Context, msg, state string) map[string]interface{}
- func (me *Controller) SuccessMsg(c xhttp.Context, msg, state string, data interface{}) map[string]interface{}
- func (me *Controller) SuccessResult(c xhttp.Context, state string, r *result.Result) map[string]interface{}
- func (me *Controller) SuccessStatus(c xhttp.Context, code int, state string, data interface{}) map[string]interface{}
- func (me *Controller) SuccessStatusMsg(c xhttp.Context, code int, msg, state string, data interface{}) map[string]interface{}
- func (me *Controller) SuccessStatusMsgToken(c xhttp.Context, code int, msg, token, state string, data interface{}) map[string]interface{}
- func (me *Controller) SuccessToken(c xhttp.Context, token, state string, data interface{}) map[string]interface{}
- func (me *Controller) TmplBy(name string) string
- func (me *Controller) TmplDefault() string
- func (me *Controller) TmplForm() string
- func (me *Controller) TmplIndex() string
- func (me *Controller) TmplList() string
- type JSONController
- func (me *JSONController) Add(c xhttp.Context)
- func (me *JSONController) ApiAdd() string
- func (me *JSONController) ApiBox() string
- func (me *JSONController) ApiBy(name string) string
- func (me *JSONController) ApiDisable() string
- func (me *JSONController) ApiEdit() string
- func (me *JSONController) ApiExport() string
- func (me *JSONController) ApiIndex() string
- func (me *JSONController) ApiSave() string
- func (me *JSONController) ApiShow() string
- func (me *JSONController) ApiTree() string
- func (me *JSONController) Box(c xhttp.Context)
- func (me *JSONController) Disable(c xhttp.Context)
- func (me *JSONController) DisableAndTx(c xhttp.Context)
- func (me *JSONController) Edit(c xhttp.Context)
- func (me *JSONController) Error(c xhttp.Context, err error)
- func (me *JSONController) Export(c xhttp.Context)
- func (me *JSONController) Fault(c xhttp.Context, data interface{}) result.Http
- func (me *JSONController) FaultLogin(c xhttp.Context) result.Http
- func (me *JSONController) FaultMessage(c xhttp.Context, msg string) result.Http
- func (me *JSONController) FaultMsg(c xhttp.Context, msg string, data interface{}) result.Http
- func (me *JSONController) FaultResult(c xhttp.Context, r *result.Result) result.Http
- func (me *JSONController) FaultState(c xhttp.Context, state string, data interface{}) result.Http
- func (me *JSONController) FaultStatus(c xhttp.Context, code int, data interface{}) result.Http
- func (me *JSONController) FaultStatusMsg(c xhttp.Context, code int, msg string, data interface{}) result.Http
- func (me *JSONController) FaultStatusMsgToken(c xhttp.Context, code int, msg, token string, data interface{}) result.Http
- func (me *JSONController) FaultToken(c xhttp.Context, token string, data interface{}) result.Http
- func (me *JSONController) Index(c xhttp.Context)
- func (me *JSONController) Page(c xhttp.Context, mgr service.Service) (out *result.Page, err error)
- func (me *JSONController) Permit(id string, profiles ...string) *xtype.Permission
- func (me *JSONController) PermitAdd(profiles ...string) *xtype.Permission
- func (me *JSONController) PermitBy(name string, profiles ...string) *xtype.Permission
- func (me *JSONController) PermitDisable(profiles ...string) *xtype.Permission
- func (me *JSONController) PermitEdit(profiles ...string) *xtype.Permission
- func (me *JSONController) PermitExport(profiles ...string) *xtype.Permission
- func (me *JSONController) PermitView(profiles ...string) *xtype.Permission
- func (me *JSONController) Save(c xhttp.Context)
- func (me *JSONController) SaveAndTx(c xhttp.Context)
- func (me *JSONController) SetSqlOfExport(sql string)
- func (me *JSONController) SetSqlOfIndex(sql string)
- func (me *JSONController) Show(c xhttp.Context)
- func (me *JSONController) Success(c xhttp.Context, data interface{}) result.Http
- func (me *JSONController) SuccessMessage(c xhttp.Context, msg string) result.Http
- func (me *JSONController) SuccessMsg(c xhttp.Context, msg string, data interface{}) result.Http
- func (me *JSONController) SuccessResult(c xhttp.Context, r *result.Result) result.Http
- func (me *JSONController) SuccessState(c xhttp.Context, state string, data interface{}) result.Http
- func (me *JSONController) SuccessStatus(c xhttp.Context, code int, data interface{}) result.Http
- func (me *JSONController) SuccessStatusMsg(c xhttp.Context, code int, msg string, data interface{}) result.Http
- func (me *JSONController) SuccessStatusMsgToken(c xhttp.Context, code int, msg, token string, data interface{}) result.Http
- func (me *JSONController) SuccessToken(c xhttp.Context, token string, data interface{}) result.Http
- type JSONTreeController
- func (me *JSONTreeController) Breadcrumb(c xhttp.Context, mgr service.Service) ([]xtype.Box, error)
- func (me *JSONTreeController) Disable(c xhttp.Context)
- func (me *JSONTreeController) DisableAndTx(c xhttp.Context)
- func (me *JSONTreeController) Index(c xhttp.Context)
- func (me *JSONTreeController) Page(c xhttp.Context, mgr service.Service) (out *result.Page, err error)
- func (me *JSONTreeController) Save(c xhttp.Context)
- func (me *JSONTreeController) SaveAndTx(c xhttp.Context)
- func (me *JSONTreeController) SetSqlOfExport(sql string)
- func (me *JSONTreeController) SetSqlOfIndex(sql string)
- func (me *JSONTreeController) Tree(c xhttp.Context)
- type PreError
- type Settings
- type TreeController
- func (me *TreeController) Breadcrumb(c xhttp.Context, mgr service.Service) ([]xtype.Box, error)
- func (me *TreeController) Disable(c xhttp.Context)
- func (me *TreeController) DisableAndTx(c xhttp.Context)
- func (me *TreeController) Export(c xhttp.Context, mgr service.Service, pre func(c xhttp.Context) error, ...) (out entity.Interfaces, err error)
- func (me *TreeController) Index(c xhttp.Context)
- func (me *TreeController) Page(c xhttp.Context, mgr service.Service) (out *result.Page, err error)
- func (me *TreeController) Save(c xhttp.Context)
- func (me *TreeController) SaveAndTx(c xhttp.Context)
- func (me *TreeController) SetSqlOfExport(sql string)
- func (me *TreeController) SetSqlOfIndex(sql string)
- func (me *TreeController) Tree(c xhttp.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiDisable ¶
ApiDisable gets the api path with the name disable.
func PathDisable ¶
PathDisable gets the path with the name disable.
func PathExport ¶
PathExport gets the path with the name export.
func PathModule ¶
PathModule gets the path from project and module.
func Permit ¶
func Permit(id string, profiles ...string) *xtype.Permission
Permit gets permission by id and profiles.
func PermitAdd ¶
func PermitAdd(project, module string, profiles ...string) *xtype.Permission
PermitAdd obtain the add type permission from the profiles.
func PermitBy ¶
func PermitBy(project, module, name string, profiles ...string) *xtype.Permission
PermitBy gets permission by name and profiles.
func PermitDisable ¶
func PermitDisable(project, module string, profiles ...string) *xtype.Permission
PermitDisable obtain the disable type permission from the profiles.
func PermitEdit ¶
func PermitEdit(project, module string, profiles ...string) *xtype.Permission
PermitEdit obtain the edit type permission from the profiles.
func PermitExport ¶
func PermitExport(project, module string, profiles ...string) *xtype.Permission
PermitExport obtain the export type permission from the profiles.
func PermitView ¶
func PermitView(project, module string, profiles ...string) *xtype.Permission
PermitView obtain the view type permission from the profiles.
func TmplDefault ¶
TmplDefault gets the template with the default name.
Types ¶
type Controller ¶
Controller controller.Controller.
func (*Controller) Add ¶
func (me *Controller) Add(c xhttp.Context)
Add the form page for adding is displayed.
func (*Controller) Box ¶
func (me *Controller) Box(c xhttp.Context)
Box gets a list of box types and converts them to JSON.
func (*Controller) Disable ¶
func (me *Controller) Disable(c xhttp.Context)
Disable tsed to delete the records corresponding to the form, but do not automatically commit the transaction.
func (*Controller) DisableAndTx ¶
func (me *Controller) DisableAndTx(c xhttp.Context)
DisableAndTx used to delete the record corresponding to the form, but automatically commit the transaction.
func (*Controller) Edit ¶
func (me *Controller) Edit(c xhttp.Context)
Edit the form page for editing is displayed.
func (*Controller) ErrorJSON ¶
func (me *Controller) ErrorJSON(c xhttp.Context, err error)
ErrorJSON error to JSON.
func (*Controller) Fault ¶
func (me *Controller) Fault(c xhttp.Context, state string, data interface{}) map[string]interface{}
Fault constructs a http.ResponseWriter parameter of the failure type.
func (*Controller) FaultMessage ¶
func (me *Controller) FaultMessage(c xhttp.Context, msg, state string) map[string]interface{}
FaultMessage constructs a http.ResponseWriter parameter of the failure type.
func (*Controller) FaultMsg ¶
func (me *Controller) FaultMsg(c xhttp.Context, msg, state string, data interface{}) map[string]interface{}
FaultMsg constructs a http.ResponseWriter parameter of the failure type.
func (*Controller) FaultResult ¶
func (me *Controller) FaultResult(c xhttp.Context, state string, r *result.Result) map[string]interface{}
FaultResult constructs a http.ResponseWriter parameter of the failure type.
func (*Controller) FaultStatus ¶
func (me *Controller) FaultStatus(c xhttp.Context, code int, state string, data interface{}) map[string]interface{}
FaultStatus constructs a http.ResponseWriter parameter of the failure type.
func (*Controller) FaultStatusMsg ¶
func (me *Controller) FaultStatusMsg(c xhttp.Context, code int, msg, state string, data interface{}) map[string]interface{}
FaultStatusMsg constructs a http.ResponseWriter parameter of the failure type.
func (*Controller) FaultStatusMsgToken ¶
func (me *Controller) FaultStatusMsgToken(c xhttp.Context, code int, msg, token, state string, data interface{}) map[string]interface{}
FaultStatusMsgToken constructs a http.ResponseWriter parameter of the failure type.
func (*Controller) FaultToken ¶
func (me *Controller) FaultToken(c xhttp.Context, token, state string, data interface{}) map[string]interface{}
FaultToken constructs a http.ResponseWriter parameter of the failure type.
func (*Controller) Index ¶
func (me *Controller) Index(c xhttp.Context)
Index displays the list of pages.
func (*Controller) PathAdd ¶
func (me *Controller) PathAdd() string
PathAdd gets the path with the name add.
func (*Controller) PathBox ¶
func (me *Controller) PathBox() string
PathBox gets the path with the name box.
func (*Controller) PathBy ¶
func (me *Controller) PathBy(name string) string
PathBy gets path by name.
func (*Controller) PathDisable ¶
func (me *Controller) PathDisable() string
PathDisable gets the path with the name disable.
func (*Controller) PathEdit ¶
func (me *Controller) PathEdit() string
PathEdit gets the path with the name edit.
func (*Controller) PathIndex ¶
func (me *Controller) PathIndex() string
PathIndex gets the path with the name index.
func (*Controller) PathSave ¶
func (me *Controller) PathSave() string
PathSave gets the path with the name save.
func (*Controller) PathShow ¶
func (me *Controller) PathShow() string
PathShow gets the path with the name show.
func (*Controller) PathTree ¶
func (me *Controller) PathTree() string
PathTree gets the path with the name tree.
func (*Controller) Permit ¶
func (me *Controller) Permit(id string, profiles ...string) *xtype.Permission
Permit gets permission by id and profiles.
func (*Controller) PermitAdd ¶
func (me *Controller) PermitAdd(profiles ...string) *xtype.Permission
PermitAdd obtain the add type permission from the profiles.
func (*Controller) PermitBy ¶
func (me *Controller) PermitBy(name string, profiles ...string) *xtype.Permission
PermitBy gets permission by name and profiles.
func (*Controller) PermitDisable ¶
func (me *Controller) PermitDisable(profiles ...string) *xtype.Permission
PermitDisable obtain the disable type permission from the profiles.
func (*Controller) PermitEdit ¶
func (me *Controller) PermitEdit(profiles ...string) *xtype.Permission
PermitEdit obtain the edit type permission from the profiles.
func (*Controller) PermitView ¶
func (me *Controller) PermitView(profiles ...string) *xtype.Permission
PermitView obtain the view type permission from the profiles.
func (*Controller) Save ¶
func (me *Controller) Save(c xhttp.Context)
Save used to save the form, but do not automatically commit the transaction.
func (*Controller) SaveAndTx ¶
func (me *Controller) SaveAndTx(c xhttp.Context)
SaveAndTx used to save the form, but automatically commit the transaction.
func (*Controller) SetSqlOfExport ¶
func (me *Controller) SetSqlOfExport(sql string)
func (*Controller) SetSqlOfIndex ¶
func (me *Controller) SetSqlOfIndex(sql string)
func (*Controller) Show ¶
func (me *Controller) Show(c xhttp.Context)
Show displays a non-editable form page.
func (*Controller) Success ¶
func (me *Controller) Success(c xhttp.Context, state string, data interface{}) map[string]interface{}
Success constructs a http.ResponseWriter parameter of the successful type.
func (*Controller) SuccessMessage ¶
func (me *Controller) SuccessMessage(c xhttp.Context, msg, state string) map[string]interface{}
SuccessMessage constructs a http.ResponseWriter parameter of the successful type.
func (*Controller) SuccessMsg ¶
func (me *Controller) SuccessMsg(c xhttp.Context, msg, state string, data interface{}) map[string]interface{}
SuccessMsg constructs a http.ResponseWriter parameter of the successful type.
func (*Controller) SuccessResult ¶
func (me *Controller) SuccessResult(c xhttp.Context, state string, r *result.Result) map[string]interface{}
SuccessResult constructs a http.ResponseWriter parameter of the successful type.
func (*Controller) SuccessStatus ¶
func (me *Controller) SuccessStatus(c xhttp.Context, code int, state string, data interface{}) map[string]interface{}
SuccessStatus constructs a http.ResponseWriter parameter of the successful type.
func (*Controller) SuccessStatusMsg ¶
func (me *Controller) SuccessStatusMsg(c xhttp.Context, code int, msg, state string, data interface{}) map[string]interface{}
SuccessStatusMsg constructs a http.ResponseWriter parameter of the successful type.
func (*Controller) SuccessStatusMsgToken ¶
func (me *Controller) SuccessStatusMsgToken(c xhttp.Context, code int, msg, token, state string, data interface{}) map[string]interface{}
SuccessStatusMsgToken constructs a http.ResponseWriter parameter of the successful type.
func (*Controller) SuccessToken ¶
func (me *Controller) SuccessToken(c xhttp.Context, token, state string, data interface{}) map[string]interface{}
SuccessToken constructs a http.ResponseWriter parameter of the successful type.
func (*Controller) TmplBy ¶
func (me *Controller) TmplBy(name string) string
TmplBy gets template by name.
func (*Controller) TmplDefault ¶
func (me *Controller) TmplDefault() string
TmplDefault gets the template with the default name.
func (*Controller) TmplForm ¶
func (me *Controller) TmplForm() string
TmplForm gets the template with the name form.
func (*Controller) TmplIndex ¶
func (me *Controller) TmplIndex() string
TmplIndex gets the template with the name index.
func (*Controller) TmplList ¶
func (me *Controller) TmplList() string
TmplList gets the template with the name list.
type JSONController ¶
type JSONController struct { Settings Mgr service.Service // contains filtered or unexported fields }
JSONController controller.JSONController.
func (*JSONController) Add ¶
func (me *JSONController) Add(c xhttp.Context)
Add gets the form data for the JSON type.
func (*JSONController) ApiAdd ¶
func (me *JSONController) ApiAdd() string
ApiAdd gets the api path with the name add.
func (*JSONController) ApiBox ¶
func (me *JSONController) ApiBox() string
ApiBox gets the api path with the name box.
func (*JSONController) ApiBy ¶
func (me *JSONController) ApiBy(name string) string
ApiBy gets api path by name.
func (*JSONController) ApiDisable ¶
func (me *JSONController) ApiDisable() string
ApiDisable gets the api path with the name disable.
func (*JSONController) ApiEdit ¶
func (me *JSONController) ApiEdit() string
ApiEdit gets the api path with the name edit.
func (*JSONController) ApiExport ¶
func (me *JSONController) ApiExport() string
ApiExport gets the api path with the name export.
func (*JSONController) ApiIndex ¶
func (me *JSONController) ApiIndex() string
ApiIndex gets the api path with the name index.
func (*JSONController) ApiSave ¶
func (me *JSONController) ApiSave() string
ApiSave gets the api path with the name save.
func (*JSONController) ApiShow ¶
func (me *JSONController) ApiShow() string
ApiShow gets the api path with the name show.
func (*JSONController) ApiTree ¶
func (me *JSONController) ApiTree() string
ApiTree gets the api path with the name tree.
func (*JSONController) Box ¶
func (me *JSONController) Box(c xhttp.Context)
Box gets a list of box types and converts them to JSON.
func (*JSONController) Disable ¶
func (me *JSONController) Disable(c xhttp.Context)
Disable delete the data, but does not automatically commit the transaction.
func (*JSONController) DisableAndTx ¶
func (me *JSONController) DisableAndTx(c xhttp.Context)
DisableAndTx delete the data, but automatically commits the transaction.
func (*JSONController) Edit ¶
func (me *JSONController) Edit(c xhttp.Context)
Edit gets the form data for the JSON type.
func (*JSONController) Export ¶
func (me *JSONController) Export(c xhttp.Context)
Export export for the excel.
func (*JSONController) Fault ¶
func (me *JSONController) Fault(c xhttp.Context, data interface{}) result.Http
Fault constructs a http.ResponseWriter parameter of the failure type.
func (*JSONController) FaultLogin ¶
func (me *JSONController) FaultLogin(c xhttp.Context) result.Http
FaultLogin constructs a http.ResponseWriter parameter of the failure type.
func (*JSONController) FaultMessage ¶
FaultMessage constructs a http.ResponseWriter parameter of the failure type.
func (*JSONController) FaultMsg ¶
FaultMsg constructs a http.ResponseWriter parameter of the failure type.
func (*JSONController) FaultResult ¶
FaultResult constructs a http.ResponseWriter parameter of the failure type.
func (*JSONController) FaultState ¶
FaultState constructs a http.ResponseWriter parameter of the failure type.
func (*JSONController) FaultStatus ¶
FaultStatus constructs a http.ResponseWriter parameter of the failure type.
func (*JSONController) FaultStatusMsg ¶
func (me *JSONController) FaultStatusMsg(c xhttp.Context, code int, msg string, data interface{}) result.Http
FaultStatusMsg constructs a http.ResponseWriter parameter of the failure type.
func (*JSONController) FaultStatusMsgToken ¶
func (me *JSONController) FaultStatusMsgToken(c xhttp.Context, code int, msg, token string, data interface{}) result.Http
FaultStatusMsgToken constructs a http.ResponseWriter parameter of the failure type.
func (*JSONController) FaultToken ¶
FaultToken constructs a http.ResponseWriter parameter of the failure type.
func (*JSONController) Index ¶
func (me *JSONController) Index(c xhttp.Context)
Index gets the list data for the JSON type.
func (*JSONController) Permit ¶
func (me *JSONController) Permit(id string, profiles ...string) *xtype.Permission
Permit gets permission by id and profiles.
func (*JSONController) PermitAdd ¶
func (me *JSONController) PermitAdd(profiles ...string) *xtype.Permission
PermitAdd obtain the add type permission from the profiles.
func (*JSONController) PermitBy ¶
func (me *JSONController) PermitBy(name string, profiles ...string) *xtype.Permission
PermitBy gets permission by name and profiles.
func (*JSONController) PermitDisable ¶
func (me *JSONController) PermitDisable(profiles ...string) *xtype.Permission
PermitDisable obtain the disable type permission from the profiles.
func (*JSONController) PermitEdit ¶
func (me *JSONController) PermitEdit(profiles ...string) *xtype.Permission
PermitEdit obtain the edit type permission from the profiles.
func (*JSONController) PermitExport ¶
func (me *JSONController) PermitExport(profiles ...string) *xtype.Permission
PermitExport obtain the export type permission from the profiles.
func (*JSONController) PermitView ¶
func (me *JSONController) PermitView(profiles ...string) *xtype.Permission
PermitView obtain the view type permission from the profiles.
func (*JSONController) Save ¶
func (me *JSONController) Save(c xhttp.Context)
Save saves the data, but does not automatically commit the transaction.
func (*JSONController) SaveAndTx ¶
func (me *JSONController) SaveAndTx(c xhttp.Context)
SaveAndTx saves the data, but automatically commits the transaction.
func (*JSONController) SetSqlOfExport ¶
func (me *JSONController) SetSqlOfExport(sql string)
func (*JSONController) SetSqlOfIndex ¶
func (me *JSONController) SetSqlOfIndex(sql string)
func (*JSONController) Show ¶
func (me *JSONController) Show(c xhttp.Context)
Show gets the form data for the JSON type.
func (*JSONController) Success ¶
func (me *JSONController) Success(c xhttp.Context, data interface{}) result.Http
Success constructs a http.ResponseWriter parameter of the successful type.
func (*JSONController) SuccessMessage ¶
SuccessMessage constructs a http.ResponseWriter parameter of the successful type.
func (*JSONController) SuccessMsg ¶
SuccessMsg constructs a http.ResponseWriter parameter of the successful type.
func (*JSONController) SuccessResult ¶
SuccessResult constructs a http.ResponseWriter parameter of the successful type.
func (*JSONController) SuccessState ¶
SuccessState constructs a http.ResponseWriter parameter of the successful type.
func (*JSONController) SuccessStatus ¶
SuccessStatus constructs a http.ResponseWriter parameter of the successful type.
func (*JSONController) SuccessStatusMsg ¶
func (me *JSONController) SuccessStatusMsg(c xhttp.Context, code int, msg string, data interface{}) result.Http
SuccessStatusMsg constructs a http.ResponseWriter parameter of the successful type.
func (*JSONController) SuccessStatusMsgToken ¶
func (me *JSONController) SuccessStatusMsgToken(c xhttp.Context, code int, msg, token string, data interface{}) result.Http
SuccessStatusMsgToken constructs a http.ResponseWriter parameter of the successful type.
func (*JSONController) SuccessToken ¶
SuccessToken constructs a http.ResponseWriter parameter of the successful type.
type JSONTreeController ¶
type JSONTreeController struct { JSONController // contains filtered or unexported fields }
JSONTreeController controller.JSONTreeController.
func (*JSONTreeController) Breadcrumb ¶
func (*JSONTreeController) Disable ¶
func (me *JSONTreeController) Disable(c xhttp.Context)
Disable delete the data, but does not automatically commit the transaction.
func (*JSONTreeController) DisableAndTx ¶
func (me *JSONTreeController) DisableAndTx(c xhttp.Context)
DisableAndTx delete the data, but automatically commits the transaction.
func (*JSONTreeController) Index ¶
func (me *JSONTreeController) Index(c xhttp.Context)
Index gets the list data for the JSON type.
func (*JSONTreeController) Save ¶
func (me *JSONTreeController) Save(c xhttp.Context)
Save saves the data, but does not automatically commit the transaction.
func (*JSONTreeController) SaveAndTx ¶
func (me *JSONTreeController) SaveAndTx(c xhttp.Context)
SaveAndTx saves the data, but automatically commits the transaction.
func (*JSONTreeController) SetSqlOfExport ¶
func (me *JSONTreeController) SetSqlOfExport(sql string)
func (*JSONTreeController) SetSqlOfIndex ¶
func (me *JSONTreeController) SetSqlOfIndex(sql string)
func (*JSONTreeController) Tree ¶
func (me *JSONTreeController) Tree(c xhttp.Context)
Tree gets a list of tree types and converts them to JSON.
type TreeController ¶
type TreeController struct { Controller // contains filtered or unexported fields }
TreeController controller.TreeController.
func (*TreeController) Breadcrumb ¶
func (*TreeController) Disable ¶
func (me *TreeController) Disable(c xhttp.Context)
Disable tsed to delete the records corresponding to the form, but do not automatically commit the transaction.
func (*TreeController) DisableAndTx ¶
func (me *TreeController) DisableAndTx(c xhttp.Context)
DisableAndTx used to delete the record corresponding to the form, but automatically commit the transaction.
func (*TreeController) Index ¶
func (me *TreeController) Index(c xhttp.Context)
Index displays the list of pages.
func (*TreeController) Save ¶
func (me *TreeController) Save(c xhttp.Context)
Save used to save the form, but do not automatically commit the transaction.
func (*TreeController) SaveAndTx ¶
func (me *TreeController) SaveAndTx(c xhttp.Context)
SaveAndTx used to save the form, but automatically commit the transaction.
func (*TreeController) SetSqlOfExport ¶
func (me *TreeController) SetSqlOfExport(sql string)
func (*TreeController) SetSqlOfIndex ¶
func (me *TreeController) SetSqlOfIndex(sql string)
func (*TreeController) Tree ¶
func (me *TreeController) Tree(c xhttp.Context)
Tree gets a list of tree types and converts them to JSON.
Source Files ¶
- base_controller.go
- base_controller_tree.go
- const.go
- default_controller.go
- default_controller_tree.go
- default_error.go
- default_modules.go
- default_result.go
- i18n.go
- json_controller.go
- json_controller_tree.go
- json_error.go
- json_modules.go
- json_result.go
- log.go
- settings.go
- settings_err.go
- settings_post.go
- settings_pre.go
- util.go
- util_error.go