Documentation ¶
Index ¶
- type Actions
- type DocumentDetail
- type FlowController
- func (c *FlowController) FlowAccessContext()
- func (c *FlowController) FlowAccessContextList()
- func (c *FlowController) FlowAction()
- func (c *FlowController) FlowActionList()
- func (c *FlowController) FlowDoc()
- func (c *FlowController) FlowDocList()
- func (c *FlowController) FlowDocumentDetail()
- func (c *FlowController) FlowDocumentList()
- func (c *FlowController) FlowEvent()
- func (c *FlowController) FlowEventList()
- func (c *FlowController) FlowGroup()
- func (c *FlowController) FlowGroupList()
- func (c *FlowController) FlowGroupMailbox()
- func (c *FlowController) FlowGroupRole()
- func (c *FlowController) FlowGroupRoleList()
- func (c *FlowController) FlowGroupUsersList()
- func (c *FlowController) FlowNext()
- func (c *FlowController) FlowNode()
- func (c *FlowController) FlowNodeList()
- func (c *FlowController) FlowPermission()
- func (c *FlowController) FlowRole()
- func (c *FlowController) FlowRoleList()
- func (c *FlowController) FlowRolePermissionList()
- func (c *FlowController) FlowState()
- func (c *FlowController) FlowStateList()
- func (c *FlowController) FlowTransition()
- func (c *FlowController) FlowTransitionList()
- func (c *FlowController) FlowType()
- func (c *FlowController) FlowTypeDelete()
- func (c *FlowController) FlowTypeList()
- func (c *FlowController) FlowTypeUpdate()
- func (c *FlowController) FlowUser()
- func (c *FlowController) FlowUserGroup()
- func (c *FlowController) FlowUserList()
- func (c *FlowController) FlowUserMailbox()
- func (c *FlowController) FlowWorkflow()
- func (c *FlowController) FlowWorkflowList()
- func (c *FlowController) Get()
- func (c *FlowController) WorkFlow()
- type GroupUsers
- type RolePermission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentDetail ¶
type FlowController ¶
type FlowController struct {
beego.Controller
}
Flowtest API
func (*FlowController) FlowAccessContext ¶
func (c *FlowController) FlowAccessContext()
@Title post wf AccessContext... @Description post AccessContext.. @Param name query string true "The name of AccessContext" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowaccesscontext [post] 管理员定义流程AccessContext 流程命名空间
func (*FlowController) FlowAccessContextList ¶
func (c *FlowController) FlowAccessContextList()
@Title get wf AccessContext... @Description post AccessContext.. @Param page query string true "The page of AccessContext" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowaccesscontextlist [get] 管理员定义流程AccessContext 流程命名空间
func (*FlowController) FlowAction ¶
func (c *FlowController) FlowAction()
@Title post wf docaction... @Description post workflowdocaction.. @Param name query string true "The name of docaction" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowaction [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowActionList ¶
func (c *FlowController) FlowActionList()
@Title get wf docaction... @Description get workflowdocaction.. @Param page query string true "The page of docaction" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowactionlist [get] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowDoc ¶
func (c *FlowController) FlowDoc()
@Title post wf document @Description post document @Param dtid query string true "The doctypeid of document" @Param acid query string true "The accesscontext of document" @Param gid query string true "The groupid of Group" @Param name query string true "The name of document" @Param data query string true "The data of document" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdoc [post]
func (*FlowController) FlowDocList ¶
func (c *FlowController) FlowDocList()
@Title get wf doclist @Description get workflow doclist @Param dtid query string true "The id of doctype" @Param page query string true "The page of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdoclist [get] 文件列表页,水平显示每个文件的状态
func (*FlowController) FlowDocumentDetail ¶
func (c *FlowController) FlowDocumentDetail()
@Title get wf document details @Description get documentdetail @Param dtid query string true "The id of doctype" @Param docid query string true "The id of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdocumentdetail [get] 2.点击一个具体文档——显示详情——显示actions
func (*FlowController) FlowDocumentList ¶
func (c *FlowController) FlowDocumentList()
@Title get wf document @Description get document @Param dtid query string true "The id of doctype" @Param acid query string true "The id of accesscontext" @Param gid query string false "The id of group" @Param dsid query string false "The id of docstate" @Param page query string true "The page of doc" @Param limit query string false "The limit page of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdocumentlist [get] 1.列表显示文档 2.点击一个具体文档——显示详情——显示actions
func (*FlowController) FlowEvent ¶
func (c *FlowController) FlowEvent()
@Title post wf event @Description get docevent @Param name query string true "The name of event" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdocevent [post] 添加events:
func (*FlowController) FlowEventList ¶
func (c *FlowController) FlowEventList()
@Title get wf eventlist @Description get doceventlist @Param page query string true "The page of event" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdoceventlist [get] 查询events:
func (*FlowController) FlowGroup ¶
func (c *FlowController) FlowGroup()
@Title post wf Group... @Description post Group.. @Param name query string true "The name of Group" @Param grouptype query string true "The type of Group" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgroup [post] 管理员定义流程Group 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowGroupList ¶
func (c *FlowController) FlowGroupList()
@Title get wf Group... @Description post Group.. @Param page query string true "The page of Group" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgrouplist [get] 管理员定义流程Group 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowGroupMailbox ¶
func (c *FlowController) FlowGroupMailbox()
@Title get group mailbox @Description get groupmailbox @Param gid query string true "The id of group" @Param page query string true "The page of mailbox" @Param limit query string false "The limit page of mailbox" @Param unread query string false "The unread of mailbox" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgroupmailbox [get] 1.列表显示用户邮件
func (*FlowController) FlowGroupRole ¶
func (c *FlowController) FlowGroupRole()
@Title post wf GroupRole... @Description post GroupRole.. @Param name query string true "The name of GroupRole" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgrouprole [post] 管理员定义流程GroupRole 来自accesscontext
func (*FlowController) FlowGroupRoleList ¶
func (c *FlowController) FlowGroupRoleList()
@Title get wf GroupRole... @Description get GroupRole.. @Param page query string true "The page of GroupRole" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgrouprolelist [get] 查询group的角色role-来自accesscontext
func (*FlowController) FlowGroupUsersList ¶
func (c *FlowController) FlowGroupUsersList()
@Title get wf GroupUsers... @Description post Group.. @Param name query string true "The name of GroupUser" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgroupuserslist [get] 查询Group下的所有Users
func (*FlowController) FlowNext ¶
func (c *FlowController) FlowNext()
@Title post wf next @Description post workflow next @Param dtid query string true "The id of doctype" @Param daid query string true "The id of action" @Param docid query string true "The id of document" @Param gid query string true "The id of group" @Param text query string false "The text of apply" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flownext [post] FlowDocAction列出了文档和动作,用户点击action,则这里进行修改docstate
func (*FlowController) FlowNode ¶
func (c *FlowController) FlowNode()
@Title post wf Node... @Description post Node.. @Param name query string true "The name of Node" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flownode [post] 管理员定义流程Node 流程node,输入doctype,docstate1,access,workflow,name和nodetype A `Node` each has to be defined for each document state of the workflow, except the final state. Please look at `_Workflows.AddNode`.
func (*FlowController) FlowNodeList ¶
func (c *FlowController) FlowNodeList()
@Title get wf Node... @Description post Node.. @Param page query string true "The page of Node" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flownodelist [get] 管理员定义流程Node
func (*FlowController) FlowPermission ¶
func (c *FlowController) FlowPermission()
@Title post wf Permission... @Description post Permission.. @Param name query string true "The name of Permission" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowpermission [post] 管理员定义流程Permission 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowRole ¶
func (c *FlowController) FlowRole()
@Title post wf Role... @Description post Role.. @Param name query string true "The name of Role" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowrole [post] 管理员定义流程Role 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowRoleList ¶
func (c *FlowController) FlowRoleList()
@Title get wf Role... @Description post Role.. @Param page query string true "The page of Role" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowrolelist [get] 查询所有role
func (*FlowController) FlowRolePermissionList ¶
func (c *FlowController) FlowRolePermissionList()
@Title get wf Permission... @Description post Permission.. @Param page query string true "The page of Permission" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowrolepermissionlist [get] 查询role和对应对应的permission
func (*FlowController) FlowState ¶
func (c *FlowController) FlowState()
@Title post wf docstate... @Description post workflowdocstate.. @Param name query string true "The name of docstate" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowstate [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowStateList ¶
func (c *FlowController) FlowStateList()
@Title post wf docstate... @Description post workflowdocstate.. @Param page query string false "The page of docstate" @Param limit query string false "The size of page" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowstatelist [get] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowTransition ¶
func (c *FlowController) FlowTransition()
@Title post wf transition... @Description post transition.. @Param name query string true "The name of transition" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtransition [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程流向transition,输入doctype、docstate1、docaction、docstate2
func (*FlowController) FlowTransitionList ¶
func (c *FlowController) FlowTransitionList()
@Title get wf transition... @Description post transition.. @Param page query string true "The page of transition" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtransitionlist [get] 展示doctype下from docstate可能的transion
func (*FlowController) FlowType ¶
func (c *FlowController) FlowType()
@Title post wf doctype... @Description post workflowdoctype.. @Param name query string true "The name of doctype" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtype [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowTypeDelete ¶
func (c *FlowController) FlowTypeDelete()
@Title post wf doctype... @Description post workflowdoctype.. @Param name query string true "The name of doctype" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtypedelete [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowTypeList ¶
func (c *FlowController) FlowTypeList()
@Title get wf doctypelist... @Description get workflowdoctype.. @Param page query string false "The page of doctype" @Param limit query string false "The size of page" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtypelist [get] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowTypeUpdate ¶
func (c *FlowController) FlowTypeUpdate()
@Title post wf doctype... @Description post workflowdoctype.. @Param name query string false "The name of doctype" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtypeupdate [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowUser ¶
func (c *FlowController) FlowUser()
@Title post wf user... @Description post user.. @Param firstname query string true "The firstname of user" @Param lastname query string true "The lastname of user" @Param email query string true "The email of user" @Param active query string true "The active of user" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowuser [post] 管理员定义流程user 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowUserGroup ¶
func (c *FlowController) FlowUserGroup()
@Title post wf GroupUser... @Description post Group.. @Param name query string true "The name of GroupUser" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowusergroup [post] 管理员定义流程GroupUser 将users加入group
func (*FlowController) FlowUserList ¶
func (c *FlowController) FlowUserList()
@Title get wf user... @Description post user.. @Param page query string true "The page of user" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowuserlist [get] 管理员定义流程user 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowUserMailbox ¶
func (c *FlowController) FlowUserMailbox()
@Title get user mailbox @Description get usermailbox @Param uid query string true "The id of user" @Param page query string true "The page of mailbox" @Param limit query string false "The limit page of mailbox" @Param unread query string false "The unread of mailbox" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowusermailbox [get] 1.列表显示用户邮件
func (*FlowController) FlowWorkflow ¶
func (c *FlowController) FlowWorkflow()
@Title post wf Workflow... @Description post Workflow.. @Param name query string true "The name of Workflow" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowworkflow [post] 管理员定义流程Workflow 输入doctype和初始action
func (*FlowController) FlowWorkflowList ¶
func (c *FlowController) FlowWorkflowList()
@Title post wf Workflow... @Description post Workflow.. @Param page query string true "The page of Workflow" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowworkflowlist [get] 管理员定义流程Workflow 输入doctype和初始action
func (*FlowController) Get ¶
func (c *FlowController) Get()
func (*FlowController) WorkFlow ¶
func (c *FlowController) WorkFlow()
@Title show wf page @Description show workflow page @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /workflow [get] 页面