Documentation ¶
Overview ¶
成果里的附件操作
小程序日历公告
Business Trip ¶
Location Trip ¶
提供iprole和用户登录操作功能 成果操作
project只能是运行ip权限下操作,即只判断iprole,不提供远程操作
项目进度控制器,具体任务控制器另外做吧
Index ¶
- Constants
- Variables
- func AESDecrypt(cipherBytes, key, iv []byte) ([]byte, error)
- func Authorizer(ctx *context.Context) (uname, role string, uid int64)
- func CheckShare(ctx *context.Context, shareUuid string, code string, user *models.User) (*models.Share, error)
- func CheckprodRole(ctx *context.Context) (uname, role string, uid int64, isadmin, islogin bool)
- func CopyFile(dstName, srcName string) (written int64, err error)
- func CreateIndex(mapping string) error
- func Createip()
- func Createitem(indexName string, item *Document) error
- func DecodeWeAppUserInfo(encryptedData string, sessionKey string, iv string) (string, error)
- func Delete()
- func DeleteByQuery()
- func DeleteEmptyDir(dirPath string) bool
- func FileMTime(file string) (int64, error)
- func FilePutContent(file string, content string) (int, error)
- func FileSize(file string) (int64, error)
- func Get()
- func GetProjTitleNumber(id int64) (ProjectNumber, ProjectName, DesignStage, Section string, err error)
- func GetRandomSalt() []byte
- func GetRandomString(length int) []byte
- func GetUrlPath(id int64) (Url, DiskDirectory string, err error)
- func Getiprole(ip string) (role int)
- func ImageFilter(ctx *context.Context)
- func Index()
- func MD5(text string) string
- func MathcadName(filenameWithSuffix string) (Suffix, FileNumber, FileName, Version string)
- func PKCS7UnPadding(dst []byte, blockSize int) []byte
- func Record(filenameWithSuffix string) (...)
- func RemoveContents(dir string) error
- func Search()
- func SendMessage()
- func SplitStandardFileNumber(filenumber string) (Category, Categoryname, Number string)
- func SplitStandardName(filenameWithSuffix string) (Category, Categoryname, FileNumber, Year, FileName, Suffix string)
- func SubString(str string, begin, length int) (substr string)
- func SubStrings(filenameWithSuffix string) (substr1, substr2 string)
- func UnicodeIndex(str, substr string) int
- func UpdateByQuery()
- func UploadImg(w http.ResponseWriter, r *http.Request)
- type AccountController
- func (c *AccountController) Captcha()
- func (c *AccountController) FindPassword()
- func (c *AccountController) LoggedIn(isPost bool) interface{}
- func (c *AccountController) Login()
- func (c *AccountController) Logout()
- func (c *AccountController) Prepare()
- func (c *AccountController) Register()
- func (c *AccountController) ValidEmail()
- type AchDepart
- type AchEmployee
- type AchSecoffice
- type ActInfos
- type Actions
- type AdminController
- func (c *AdminController) AddCalendar()
- func (c *AdminController) AddCarousel()
- func (c *AdminController) AddCategory()
- func (c *AdminController) AddDepartment()
- func (c *AdminController) AddIpsegment()
- func (c *AdminController) AddsynchIp()
- func (c *AdminController) Admin()
- func (c *AdminController) Calendar()
- func (c *AdminController) Carousel()
- func (c *AdminController) CatalogAttachment()
- func (c *AdminController) Category()
- func (c *AdminController) CategoryTitle()
- func (c *AdminController) DeleteCalendar()
- func (c *AdminController) DeleteCarousel()
- func (c *AdminController) DeleteCategory()
- func (c *AdminController) DeleteDepartment()
- func (c *AdminController) DeleteIpsegment()
- func (c *AdminController) DeleteMeritlist()
- func (c *AdminController) DeletesynchIp()
- func (c *AdminController) Department()
- func (c *AdminController) DepartmentTitle()
- func (c *AdminController) DownMeritlist()
- func (c *AdminController) DropCalendar()
- func (c *AdminController) Get()
- func (c *AdminController) GetPostMerit()
- func (c *AdminController) GetWxProjectConfig()
- func (c *AdminController) ImportJson()
- func (c *AdminController) InitJson()
- func (c *AdminController) Ipsegment()
- func (c *AdminController) Jsoneditor()
- func (c *AdminController) MeritBasic()
- func (c *AdminController) ModifyCatalog()
- func (c *AdminController) ModifyLink()
- func (c *AdminController) PutWxProjectConfig()
- func (c *AdminController) ResizeCalendar()
- func (c *AdminController) SearchCalendar()
- func (c *AdminController) SendMeritlist()
- func (c *AdminController) SynchIp()
- func (c *AdminController) Testdown()
- func (c *AdminController) UpdateCalendar()
- func (c *AdminController) UpdateCategory()
- func (c *AdminController) UpdateDepartment()
- func (c *AdminController) UpdateIpsegment()
- func (c *AdminController) UpdateMeritBasic()
- func (c *AdminController) UpdatesynchIp()
- type AdminLogController
- type ApplyRechargeTable
- type ArticleContent
- type ArticleController
- func (c *ArticleController) AddArticle()
- func (c *ArticleController) AddProdArticle()
- func (c *ArticleController) AddWxArticle()
- func (c *ArticleController) AddWxArticleFlow()
- func (c *ArticleController) AddWxArticles()
- func (c *ArticleController) AddWxEditorArticle()
- func (c *ArticleController) DeleteArticle()
- func (c *ArticleController) DeleteWxArticle()
- func (c *ArticleController) GetArticle()
- func (c *ArticleController) GetArticles()
- func (c *ArticleController) GetListArticles()
- func (c *ArticleController) GetUserArticle()
- func (c *ArticleController) GetWxArticle()
- func (c *ArticleController) GetWxArticleFlow()
- func (c *ArticleController) GetWxArticleType()
- func (c *ArticleController) GetWxArticles()
- func (c *ArticleController) GetWxArticless()
- func (c *ArticleController) GetWxUserArticles()
- func (c *ArticleController) GetsynchArticles()
- func (c *ArticleController) ModifyArticle()
- func (c *ArticleController) ProvideArticles()
- func (c *ArticleController) UpdateArticle()
- func (c *ArticleController) UpdateWxEditorArticle()
- type Assigsvalue
- type AttachController
- func (c *AttachController) AddAttachment()
- func (c *AttachController) AddAttachment2()
- func (c *AttachController) AddWxAttachment()
- func (c *AttachController) Attachment()
- func (c *AttachController) DeleteAttachment()
- func (c *AttachController) DownloadAttachment()
- func (c *AttachController) GetAllAttachments()
- func (c *AttachController) GetAttachments()
- func (c *AttachController) GetCarousel()
- func (c *AttachController) GetPdfs()
- func (c *AttachController) GetWxPdf()
- func (c *AttachController) GetsynchAttachments()
- func (c *AttachController) GetsynchPdfs()
- func (c *AttachController) NewDwg()
- func (c *AttachController) Pdf()
- func (c *AttachController) ProvideAttachments()
- func (c *AttachController) ProvidePdfs()
- func (c *AttachController) SaveDwgfile()
- func (c *AttachController) UpdateAttachment()
- func (c *AttachController) WxPdf()
- type AttachmentLink
- type Author
- type BaseController
- type BbsController
- type BbsDate
- type BlogController
- func (c *BlogController) Download()
- func (c *BlogController) Index()
- func (c *BlogController) List()
- func (c *BlogController) ManageDelete()
- func (c *BlogController) ManageEdit()
- func (c *BlogController) ManageList()
- func (c *BlogController) ManageSetting()
- func (c *BlogController) Prepare()
- func (c *BlogController) RemoveAttachment()
- func (c *BlogController) Upload()
- type BookController
- func (c *BookController) Copy()
- func (c *BookController) Create()
- func (c *BookController) Dashboard()
- func (c *BookController) Delete()
- func (c *BookController) Import()
- func (c *BookController) Index()
- func (c *BookController) IsPermission() (*models.BookResult, error)
- func (c *BookController) ItemsetsSearch()
- func (c *BookController) PrivatelyOwned()
- func (c *BookController) Release()
- func (c *BookController) SaveBook()
- func (c *BookController) SaveSort()
- func (c *BookController) Setting()
- func (c *BookController) Team()
- func (c *BookController) TeamAdd()
- func (c *BookController) TeamDelete()
- func (c *BookController) TeamSearch()
- func (c *BookController) Transfer()
- func (c *BookController) UploadCover()
- func (c *BookController) Users()
- type BookMemberController
- type BusinessCheckDate
- type BusinessController
- func (c *BusinessController) AddBusiness()
- func (c *BusinessController) BusinessCheck()
- func (c *BusinessController) BusinessMonthCheck()
- func (c *BusinessController) BusinessMonthCheckSum()
- func (c *BusinessController) GetBusinessCheck()
- func (c *BusinessController) GetBysiness()
- func (c *BusinessController) GetBysinessById()
- func (c *BusinessController) UpdateBusiness()
- type Callback
- type CartController
- type CartResult
- type CatalogLinkCont
- type CatalogLinkEditable
- type ChatController
- type ChatMessage
- type CheckController
- func (c *CheckController) ActInfo()
- func (c *CheckController) Apply()
- func (c *CheckController) Check()
- func (c *CheckController) CheckGetCheck()
- func (c *CheckController) CheckSignature()
- func (c *CheckController) Compare()
- func (c *CheckController) Create()
- func (c *CheckController) Date()
- func (c *CheckController) Details()
- func (c *CheckController) Getall()
- func (c *CheckController) HaveApply()
- func (c *CheckController) Like()
- func (c *CheckController) MonthCheck()
- func (c *CheckController) MonthCheckSum()
- func (c *CheckController) Person()
- func (c *CheckController) SendMessage()
- func (c *CheckController) SubscribeMessage()
- type CheckDate
- type Comment
- type CommentController
- type Conversionresponse
- type Conversionsend
- type CookieRemember
- type Details
- type Detailsinfo
- type DiaryContent
- type DiaryController
- func (c *DiaryController) AddWxDiary()
- func (c *DiaryController) DeleteWxDiary()
- func (c *DiaryController) Get()
- func (c *DiaryController) GetWxDiary()
- func (c *DiaryController) GetWxDiary2()
- func (c *DiaryController) GetWxdiaries()
- func (c *DiaryController) GetWxdiaries2()
- func (c *DiaryController) HtmlToDoc()
- func (c *DiaryController) UpdateWxDiary()
- type DocNode
- type Doclist
- type Document
- type DocumentController
- func (c *DocumentController) Compare()
- func (c *DocumentController) Content()
- func (c *DocumentController) Create()
- func (c *DocumentController) Delete()
- func (c *DocumentController) DeleteHistory()
- func (c *DocumentController) DownloadAttachment()
- func (c *DocumentController) Edit()
- func (c *DocumentController) Export()
- func (c *DocumentController) History()
- func (c *DocumentController) Index()
- func (c *DocumentController) QrCode()
- func (c *DocumentController) Read()
- func (c *DocumentController) RemoveAttachment()
- func (c *DocumentController) RestoreHistory()
- func (c *DocumentController) Search()
- func (c *DocumentController) Upload()
- type DocumentDetail
- type Documentlist
- type DocxLink
- type ElasticController
- type EleProjTree
- type Employee
- type ErrorController
- type Fetcher
- type FileNode
- type FileNode1
- type FileNode2
- type Fileinput
- type FileinputController
- type FinanceContent
- type FinanceController
- func (c *FinanceController) AddWxFinance()
- func (c *FinanceController) DeleteWxFinance()
- func (c *FinanceController) Get()
- func (c *FinanceController) GetWxFinance()
- func (c *FinanceController) GetWxFinance2()
- func (c *FinanceController) GetWxFinanceList()
- func (c *FinanceController) GetWxfinance2()
- func (c *FinanceController) HtmlToDoc()
- func (c *FinanceController) UpdateWxFinance()
- type FlowController
- func (c *FlowController) FlowAccessContext()
- func (c *FlowController) FlowAccessContextList()
- func (c *FlowController) FlowAccessContextUpdate()
- func (c *FlowController) FlowAction()
- func (c *FlowController) FlowActionDelete()
- func (c *FlowController) FlowActionList()
- func (c *FlowController) FlowActionUpdate()
- func (c *FlowController) FlowDoc()
- func (c *FlowController) FlowDocList()
- func (c *FlowController) FlowDocumentDetail()
- func (c *FlowController) FlowDocumentList()
- func (c *FlowController) FlowDocumentList2()
- 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) FlowStateDelete()
- func (c *FlowController) FlowStateList()
- func (c *FlowController) FlowStateUpdate()
- func (c *FlowController) FlowTransition()
- func (c *FlowController) FlowTransitionDelete()
- func (c *FlowController) FlowTransitionList()
- func (c *FlowController) FlowTransitionUpdate()
- 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) FlowUserMailbox2()
- func (c *FlowController) FlowWorkflow()
- func (c *FlowController) FlowWorkflowList()
- func (c *FlowController) Get()
- func (c *FlowController) LiuCheng()
- func (c *FlowController) WorkFlow()
- func (c *FlowController) WxFlowDoc()
- func (c *FlowController) WxFlowNext()
- func (c *FlowController) WxFlowUserMailbox2()
- type FlvController
- type FroalaController
- func (c *FroalaController) ControllerFroala()
- func (c *FroalaController) UploadAppreciationPhoto()
- func (c *FroalaController) UploadImg()
- func (c *FroalaController) UploadVideo()
- func (c *FroalaController) UploadWikiImg()
- func (c *FroalaController) UploadWxAvatar()
- func (c *FroalaController) UploadWxEditorImg()
- func (c *FroalaController) UploadWxImg()
- func (c *FroalaController) UploadWxImgs()
- func (c *FroalaController) UploadWxVideo()
- func (c *FroalaController) UploadWxVideoCover()
- type Gantt
- type GetAll
- type GroupUsers
- type Hit
- type HomeController
- type Img
- type IndexController
- func (c *IndexController) AddCarCalendar()
- func (c *IndexController) AddMeetCalendar()
- func (c *IndexController) Calendar()
- func (c *IndexController) CarCalendar()
- func (c *IndexController) Cms()
- func (c *IndexController) DeleteCarCalendar()
- func (c *IndexController) DeleteMeetCalendar()
- func (c *IndexController) DropCarCalendar()
- func (c *IndexController) DropMeetCalendar()
- func (c *IndexController) GetAttendanceCalendar()
- func (c *IndexController) GetCarCalendar()
- func (c *IndexController) GetIndex()
- func (c *IndexController) GetOrderCalendar()
- func (c *IndexController) GetUser()
- func (c *IndexController) MeetCalendar()
- func (c *IndexController) MeetingroomCalendar()
- func (c *IndexController) Product()
- func (c *IndexController) ResizeCarCalendar()
- func (c *IndexController) ResizeMeetCalendar()
- func (c *IndexController) SearchCalendar()
- func (c *IndexController) UpdateCarCalendar()
- func (c *IndexController) UpdateMeetCalendar()
- type ItemsetsController
- type LabelController
- type LegislationController
- type Legislationmore
- type List
- type Listimage
- type LocationController
- type LoginController
- func (c *LoginController) Islogin()
- func (c *LoginController) Login()
- func (c *LoginController) LoginPost()
- func (c *LoginController) Loginerr()
- func (c *LoginController) Logout()
- func (c *LoginController) Post()
- func (c *LoginController) SsoLogin()
- func (c *LoginController) SsoLoginPost()
- func (c *LoginController) WxHasSession()
- func (c *LoginController) WxLogin()
- type Logstruct
- type MainController
- func (c *MainController) Autodesk()
- func (c *MainController) Get()
- func (c *MainController) Getecmsapi()
- func (c *MainController) Getecmsdoc()
- func (c *MainController) Gethydrowsdoc()
- func (c *MainController) Getmeritmsapi()
- func (c *MainController) Getmeritmsdoc()
- func (c *MainController) IsSubmitAgain(token string) bool
- func (c *MainController) ModifyDatabase()
- func (c *MainController) PhotoSwipe()
- func (c *MainController) Postdata()
- func (c *MainController) Register()
- func (c *MainController) Slide()
- func (c *MainController) Test()
- func (c *MainController) UpdateDatabase()
- func (c *MainController) UserManage()
- type ManagerController
- func (c *ManagerController) AttachDelete()
- func (c *ManagerController) AttachDetailed()
- func (c *ManagerController) AttachList()
- func (c *ManagerController) Books()
- func (c *ManagerController) ChangeMemberRole()
- func (c *ManagerController) Comments()
- func (c *ManagerController) Config()
- func (c *ManagerController) CreateMember()
- func (c *ManagerController) CreateToken()
- func (c *ManagerController) DeleteBook()
- func (c *ManagerController) DeleteComment()
- func (c *ManagerController) DeleteMember()
- func (c *ManagerController) EditBook()
- func (c *ManagerController) EditMember()
- func (c *ManagerController) Index()
- func (c *ManagerController) Itemsets()
- func (c *ManagerController) ItemsetsDelete()
- func (c *ManagerController) ItemsetsEdit()
- func (c *ManagerController) LabelDelete()
- func (c *ManagerController) LabelList()
- func (c *ManagerController) Prepare()
- func (c *ManagerController) PrivatelyOwned()
- func (c *ManagerController) Setting()
- func (c *ManagerController) Team()
- func (c *ManagerController) TeamBookAdd()
- func (c *ManagerController) TeamBookDelete()
- func (c *ManagerController) TeamBookList()
- func (c *ManagerController) TeamChangeMemberRole()
- func (c *ManagerController) TeamCreate()
- func (c *ManagerController) TeamDelete()
- func (c *ManagerController) TeamEdit()
- func (c *ManagerController) TeamMemberAdd()
- func (c *ManagerController) TeamMemberDelete()
- func (c *ManagerController) TeamMemberList()
- func (c *ManagerController) TeamSearchBook()
- func (c *ManagerController) TeamSearchMember()
- func (c *ManagerController) Transfer()
- func (c *ManagerController) UpdateMemberStatus()
- func (c *ManagerController) Users()
- type MathPayTable
- type MindocBaseController
- func (c *MindocBaseController) BaseUrl() string
- func (c *MindocBaseController) CheckErrorResult(code int, err error)
- func (c *MindocBaseController) CheckJsonError(code int, err error)
- func (c *MindocBaseController) ExecuteViewPathTemplate(tplName string, data interface{}) (string, error)
- func (c *MindocBaseController) JsonResult(errCode int, errMsg string, data ...interface{})
- func (c *MindocBaseController) Prepare()
- func (c *MindocBaseController) SetMember(member models.Member)
- func (c *MindocBaseController) ShowErrorPage(errCode int, errMsg string)
- type MindocSearchController
- type Nail
- type Navbartruct
- type OnlyController
- func (c *OnlyController) AddOnlyAttachment()
- func (c *OnlyController) Addpermission()
- func (c *OnlyController) Conversion()
- func (c *OnlyController) DeleteDoc()
- func (c *OnlyController) Download()
- func (c *OnlyController) DownloadDoc()
- func (c *OnlyController) DownloadOnlyDoc()
- func (c *OnlyController) Get()
- func (c *OnlyController) GetData()
- func (c *OnlyController) GetTree()
- func (c *OnlyController) Getpermission()
- func (c *OnlyController) OfficeView()
- func (c *OnlyController) OfficeViewCallback()
- func (c *OnlyController) OnlyOffice()
- func (c *OnlyController) UpdateDoc()
- func (c *OnlyController) UrltoCallback()
- type OnlyLink
- type Onlyoffice1
- type Pathstruct
- type PayController
- func (c *PayController) AddApplyRecharge()
- func (c *PayController) AddUserPays()
- func (c *PayController) AddUserRecharge()
- func (c *PayController) AddWxUserPays()
- func (c *PayController) ApplyRecharge()
- func (c *PayController) GetApplyRecharge()
- func (c *PayController) GetApplyRechargeData()
- func (c *PayController) GetPay()
- func (c *PayController) GetUserGetAppreciations()
- func (c *PayController) GetUserMoney()
- func (c *PayController) GetUserPay()
- func (c *PayController) GetUserPayAppreciations()
- func (c *PayController) GetUserPaylist()
- func (c *PayController) GetWxPay()
- func (c *PayController) GetWxUserGetAppreciations()
- func (c *PayController) GetWxUserMoney()
- func (c *PayController) GetWxUserPayAppreciations()
- func (c *PayController) GetWxUserPays()
- type PdfCpuController
- type PdfLink
- type PreviewConfig
- type ProdController
- func (c *ProdController) AddProduct()
- func (c *ProdController) DeleteProduct()
- func (c *ProdController) GetProducts()
- func (c *ProdController) GetProjProd()
- func (c *ProdController) GetProjProducts()
- func (c *ProdController) GetsynchProducts()
- func (c *ProdController) ProvidesynchProducts()
- func (c *ProdController) UpdateProduct()
- type ProductLink
- type ProfController
- type ProjController
- func (c *ProjController) AddCalendar()
- func (c *ProjController) AddProjTemplet()
- func (c *ProjController) AddProject()
- func (c *ProjController) AddProjectCate()
- func (c *ProjController) Calendar()
- func (c *ProjController) DeleteCalendar()
- func (c *ProjController) DeleteProject()
- func (c *ProjController) DeleteProjectCate()
- func (c *ProjController) DropCalendar()
- func (c *ProjController) Get()
- func (c *ProjController) GetCalendar()
- func (c *ProjController) GetProjCate()
- func (c *ProjController) GetProjNav()
- func (c *ProjController) GetProjProd()
- func (c *ProjController) GetProjProducts()
- func (c *ProjController) GetProject()
- func (c *ProjController) GetProjectCate()
- func (c *ProjController) GetProjectTree()
- func (c *ProjController) GetProjects()
- func (c *ProjController) GetWxProjects()
- func (c *ProjController) ProjectTimeline()
- func (c *ProjController) ProjectUserRole()
- func (c *ProjController) QuickAddWxProjTemplet()
- func (c *ProjController) ResizeCalendar()
- func (c *ProjController) Timeline()
- func (c *ProjController) UpdateCalendar()
- func (c *ProjController) UpdateProject()
- func (c *ProjController) UpdateProjectCate()
- func (c *ProjController) UploadImage()
- func (c *ProjController) UserProjectPermission()
- func (c *ProjController) UserpProjectEditorTree()
- type ProjGantController
- func (c *ProjGantController) AddProjGant()
- func (c *ProjGantController) CloseProjGant()
- func (c *ProjGantController) DeleteProjGant()
- func (c *ProjGantController) Get()
- func (c *ProjGantController) GetProjGant()
- func (c *ProjGantController) GetProjectGant()
- func (c *ProjGantController) ImportProjGant()
- func (c *ProjGantController) UpdateProjGant()
- type Project1
- type RangeHeader
- type RegistController
- func (this *RegistController) CheckUname()
- func (this *RegistController) Get()
- func (this *RegistController) GetUname()
- func (this *RegistController) GetUname1()
- func (this *RegistController) Post()
- func (this *RegistController) RegistErr()
- func (c *RegistController) WxRegion()
- func (c *RegistController) WxRegist()
- type RelevancyProj
- type ReplyController
- type Resourcesvalue
- type RoleController
- type RolePermission
- type Rolepermission
- type Rolesvalue
- type SearchController
- func (c *SearchController) Get()
- func (c *SearchController) GetWxPdfList()
- func (c *SearchController) SearchProduct()
- func (c *SearchController) SearchProjProducts()
- func (c *SearchController) SearchProject()
- func (c *SearchController) SearchProjects()
- func (c *SearchController) SearchWiki()
- func (c *SearchController) SearchWxDrawings()
- func (c *SearchController) SearchWxProducts()
- type SearchResults
- type Select1
- type ServiceValidateController
- type SettingController
- type ShareController
- type Signature
- type StandardController
- func (c *StandardController) DeleteStandard()
- func (c *StandardController) DeleteValid()
- func (c *StandardController) DownloadStandard()
- func (c *StandardController) GetStandard()
- func (c *StandardController) ImportExcel()
- func (c *StandardController) ImportLibrary()
- func (c *StandardController) Index()
- func (c *StandardController) Search()
- func (c *StandardController) SearchWxStandards()
- func (c *StandardController) StandardPdf()
- func (c *StandardController) Standard_one_addbaidu()
- func (c *StandardController) UpdateStandard()
- func (c *StandardController) Upload()
- func (c *StandardController) UploadStandard()
- func (c *StandardController) Valid()
- func (c *StandardController) WxStandardPdf()
- type StandardTableserver
- type Standardmore
- type SuccessController
- type Tableserver
- type Task
- type TemplateController
- type TodoController
- type Tree
- type UeditorController
- type UploadimageUE
- type UploadimgFroala
- type User1
- type UserController
- func (c *UserController) AddUser()
- func (c *UserController) AddWxUser()
- func (c *UserController) DeleteUser()
- func (c *UserController) GetUserByUsername()
- func (c *UserController) ImportUsers()
- func (c *UserController) Index()
- func (this *UserController) Roleerr()
- func (c *UserController) UpdateUser()
- func (c *UserController) UpdateWxUser()
- func (c *UserController) User()
- func (c *UserController) Usermyself()
- func (c *UserController) View()
- type Userrole
- type Userselect
- type VideoController
- type WebResult
- type WikiController
- func (c *WikiController) Add()
- func (c *WikiController) AddPic()
- func (c *WikiController) AddWiki()
- func (c *WikiController) Delete()
- func (c *WikiController) DeleteAttachment()
- func (c *WikiController) Get()
- func (c *WikiController) Modify()
- func (c *WikiController) Post()
- func (c *WikiController) View()
- func (c *WikiController) Viewbyuname()
- func (c *WikiController) Wiki_many_addbaidu()
- type WordTree
- type WxArticle
- type WxArticleFlowDetail
- type WxFinance
- type WxProduct
Constants ¶
const ( //single file. SHARE_TYPE_FILE = "FILE" //directory SHARE_TYPE_DIRECTORY = "DIRECTORY" //mix things SHARE_TYPE_MIX = "MIX" )
CMSSHARE PRODUCT API
type ShareController struct { beego.Controller }
const ( VIDEO_DIR = "./videos/" MAX_UPLOAD_SIZE = 50 * 1024 * 1024 // 50MB )
const ( RangeSize int64 = 1024 * 1024 ThreadAmount int = 32 )
RangeSize sets the default range size to 1MB
const (
SHARE_MAX_NUM = 100
)
Variables ¶
var (
Iprolemaps map[string]int
)
1 init函数是用于程序执行前做包的初始化的函数,比如初始化包里的变量等 2 每个包可以拥有多个init函数 3 包的每个源文件也可以拥有多个init函数 4 同一个包中多个init函数的执行顺序go语言没有明确的定义(说明) 5 不同包的init函数按照包导入的依赖关系决定该初始化函数的执行顺序 6 init函数不能被其他函数调用,而是在main函数执行之前,自动被调用 读取iprole.txt文件,作为全局变量Iprolemaps,供调用访问者ip的权限用
Functions ¶
func CheckShare ¶
func CheckShare(ctx *context.Context, shareUuid string, code string, user *models.User) (*models.Share, error)
check whether shareUuid and shareCode matches. check whether user can access.
func CheckprodRole ¶
func CreateIndex ¶
CreateIndex creates a new index with mapping. func (c *ElasticController) CreateIndex(mapping string) error {
func Createitem ¶
Create indexes a new document into store. 这里插入数据
func DecodeWeAppUserInfo ¶
DecodeWeAppUserInfo 解密微信小程序用户信息
func DeleteByQuery ¶
func DeleteByQuery()
func DeleteEmptyDir ¶
try to delete empty dir. true: delete an empty dir, false: delete nothing.
func FilePutContent ¶
put string to file
func GetProjTitleNumber ¶
func GetProjTitleNumber(id int64) (ProjectNumber, ProjectName, DesignStage, Section string, err error)
根据id返回项目编号,项目名称,项目阶段,项目专业
func GetUrlPath ¶
根据侧栏id返回附件url和文件夹路径
func ImageFilter ¶
下载附件——这个仅是测试 func (c *AttachController) ImageFilter() {
func MathcadName ¶
取得usertemple名称,日期和版本
func PKCS7UnPadding ¶
PKCS7UnPadding pkcs7填充方式
func Record ¶
func Record(filenameWithSuffix string) (Suffix, FileNumber, FileName, ProNumber, ProJiduan, ProLeixing, ProZhuanye string)
分离图号图名
func SendMessage ¶
func SendMessage()
func SplitStandardFileNumber ¶
分离上面结果中FileNumber的分类GB和编号50268 用于搜索
func SplitStandardName ¶
func SplitStandardName(filenameWithSuffix string) (Category, Categoryname, FileNumber, Year, FileName, Suffix string)
分离规范名称为分类,编号,年代和名称,用于规范上传
func SubStrings ¶
下面这个没什么用了吧,用record代替 对于01水电院企业标准.pdf如何办呢,所以最简单是取得第一个汉字的位置即可
func UnicodeIndex ¶
func UpdateByQuery ¶
func UpdateByQuery()
Types ¶
type AccountController ¶
type AccountController struct {
MindocBaseController
}
AccountController 用户登录与注册
func (*AccountController) LoggedIn ¶
func (c *AccountController) LoggedIn(isPost bool) interface{}
登录成功后的操作,如重定向到原始请求页面
func (*AccountController) Prepare ¶
func (c *AccountController) Prepare()
type AchDepart ¶
type AchDepart struct { Id int64 `json:"Id"` //`form:"-"` // Pid int64 `form:"-"` Title string `json:"text"` //这个后面json仅仅对于encode解析有用 Secoffice []AchSecoffice `json:"nodes"` // Employee []AchEmployee `json:"nodes"`不能有2个nodes啊,如果部门下有人,只能用secoffice代替员工 Level string `json:"Level"` Tags [1]int `json:"tags"` //显示员工数量 Selectable bool `json:"selectable"` }
type AchEmployee ¶
type AchSecoffice ¶
type AchSecoffice struct { Id int64 `json:"Id"` //`form:"-"` Pid int64 `form:"-"` Title string `json:"text"` Tags [1]string `json:"tags"` //显示员工数量,如果定义为数值[1]int,则无论如何都显示0,所以要做成字符 Employee []AchEmployee `json:"nodes"` Level string `json:"Level"` Href string `json:"href"` Selectable bool `json:"selectable"` //这个不能要,虽然没赋值。否则点击node,没反应,即默认false?? }
type AdminController ¶
type AdminController struct {
beego.Controller
}
CMSADMIN API
func (*AdminController) AddCalendar ¶
func (c *AdminController) AddCalendar()
********************日历开始************** 添加日历
func (*AdminController) AddCategory ¶
func (c *AdminController) AddCategory()
@Title Post Category by pid title code grade @Description Get Category list by title info @Success 200 {object} models.AddAdminCategory @Param pid query string false "parentid of category" @Param title query string false "title of category" @Param code query string false "code of category" @Param grade query string false "grade of category" @router /category/addcategory [post] 添加
func (*AdminController) Admin ¶
func (c *AdminController) Admin()
func (*AdminController) Calendar ¶
func (c *AdminController) Calendar()
返回日历json数据 如果是管理员,则显示全部,非管理员,显示公开
func (*AdminController) Category ¶
func (c *AdminController) Category()
@Title Get Category list @Description Get Category list by some info @Success 200 {object} models.GetAdminCategory @Param id path string false "category id" @router /category/:id [get] 根据数字id或空查询分类,如果有pid,则查询下级,如果pid为空,则查询类别
func (*AdminController) CategoryTitle ¶
func (c *AdminController) CategoryTitle()
@Title Get Category by title @Description Get Category list by title info @Success 200 {object} models.GetAdminCategory @Param title query string false "title of search" @router /categorytitle [get] 根据名称title查询分级表
func (*AdminController) DeleteDepartment ¶
func (c *AdminController) DeleteDepartment()
删除,如果有下级,一起删除
func (*AdminController) Department ¶
func (c *AdminController) Department()
******后台部门结构******** 根据数字id或空查询分类,如果有pid,则查询下级,如果pid为空,则查询类别
func (*AdminController) DepartmentTitle ¶
func (c *AdminController) DepartmentTitle()
根据名称title查询分级表
func (*AdminController) DownMeritlist ¶
func (c *AdminController) DownMeritlist()
回退meritlist已提交给未提交
func (*AdminController) Get ¶
func (c *AdminController) Get()
@Title getAdminBlock @Description get admin page @Success 200 {object} success @Failure 400 Invalid page @Failure 404 page not found @router / [get]
func (*AdminController) GetPostMerit ¶
func (c *AdminController) GetPostMerit()
取得成果给table 成果清单 未提交status=0和已提交status=1
func (*AdminController) GetWxProjectConfig ¶
func (c *AdminController) GetWxProjectConfig()
@Title get wx projectconfig by projectid @Description get wx projectconfig by projectid @Param projectid query string true "The id of project" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /getwxprojectconfig [get] 给jsoneditor返回json数据
func (*AdminController) InitJson ¶
func (c *AdminController) InitJson()
根据conf目录下的json.json文件初始化价值结构
func (*AdminController) Jsoneditor ¶
func (c *AdminController) Jsoneditor()
@Title get wx projectconfig by projectid @Description get wx projectconfig by projectid @Param projectid query string true "The id of project" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /jsoneditor [get] 给jsoneditor返回json数据
func (*AdminController) MeritBasic ¶
func (c *AdminController) MeritBasic()
merit基本信息************************************* IP,用户名,姓名,密码
func (*AdminController) PutWxProjectConfig ¶
func (c *AdminController) PutWxProjectConfig()
@Title update wx projectconfig by projectid @Description put wx projectconfig by projectid @Param projectid query string true "The id of project" @Param projectconfig query string true "The json of projectconfig" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /putwxprojectconfig [post] 更新json文件
func (*AdminController) SearchCalendar ¶
func (c *AdminController) SearchCalendar()
func (*AdminController) SendMeritlist ¶
func (c *AdminController) SendMeritlist()
提交meritlist给merit,这个是关键代码
func (*AdminController) SynchIp ¶
func (c *AdminController) SynchIp()
******编辑项目同步ip********** 根据项目id查询ip
func (*AdminController) Testdown ¶
func (c *AdminController) Testdown()
type AdminLogController ¶
type AdminLogController struct {
beego.Controller
}
CMSADMIN API
func (*AdminLogController) ErrLog ¶
func (c *AdminLogController) ErrLog()
@Title getAdminBlock @Description get log list @Success 200 {object} success @Failure 400 Invalid page @Failure 404 page not found @router /errlog [get]
func (*AdminLogController) InfoLog ¶
func (c *AdminLogController) InfoLog()
@Title getAdminBlock @Description get log list @Success 200 {object} success @Failure 400 Invalid page @Failure 404 page not found @router /infolog [get]
type ApplyRechargeTable ¶
type ApplyRechargeTable struct { Rows []models.Recharge `json:"rows"` Page int `json:"page"` Total int `json:"total"` //string或int64都行! }
后端分页的用户申请充值数据结构
type ArticleContent ¶
type ArticleController ¶
type ArticleController struct {
beego.Controller
}
CMSWX article API
func (*ArticleController) AddProdArticle ¶
func (c *ArticleController) AddProdArticle()
向成果id下添加文章——这个没用,上面那个已经包含了
func (*ArticleController) AddWxArticle ¶
func (c *ArticleController) AddWxArticle()
@Title post wx artile by catalogId @Description post article by catalogid @Param title query string true "The title of article" @Param content query string true "The content of article" @Param skey query string false "The skey of user" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /addwxarticle [post] 作废!向设代日记id下添加微信小程序文章_珠三角设代plus用_ 这个是文字图片分开方式,用下面这个
func (*ArticleController) AddWxArticleFlow ¶
func (c *ArticleController) AddWxArticleFlow()
@Title post wx artile by catalogId @Description post article by catalogid @Param id path string true "The id of project" @Param title query string true "The title of article" @Param content query string true "The content of article" @Param content query string true "The content of article" @Param dtid query string true "The id of doctype" @Param acid query string true "The id of accesscontext" @Param gid query string true "The id of group" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /addwxarticleflow/:id [post] 添加微信文章并执初始化一个流程
func (*ArticleController) AddWxArticles ¶
func (c *ArticleController) AddWxArticles()
@Title post wx artile by catalogId @Description post article by catalogid @Param id query string true "The id of project" @Param title query string true "The title of article" @Param content query string true "The content of article" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /addwxarticles/:id [post] 向设代日记id下添加微信小程序文章——通用:包括青少儿书画用
func (*ArticleController) AddWxEditorArticle ¶
func (c *ArticleController) AddWxEditorArticle()
@Title post wx artile by catalogId @Description post article by catalogid @Param title query string true "The title of article" @Param content query string true "The content of article" @Param skey query string false "The skey of user" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /addwxeditorarticle [post] 向设代日记id下添加微信小程序文章_珠三角设代plus用_editor方式 作废
func (*ArticleController) DeleteArticle ¶
func (c *ArticleController) DeleteArticle()
根据文章id删除文章_没删除文章中的图片
func (*ArticleController) DeleteWxArticle ¶
func (c *ArticleController) DeleteWxArticle()
@Title post wx artile by articleId @Description post article by catalogid @Param id query string true "The id of article" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /deletewxarticle [post] 根据文章id删除文章_没删除文章中的图片
func (*ArticleController) GetArticles ¶
func (c *ArticleController) GetArticles()
取得某个成果id下的文章给table
func (*ArticleController) GetListArticles ¶
func (c *ArticleController) GetListArticles()
@Title get wx artiles list @Description get articles by page @Param page query string true "The page for articles list" @Param limit query string true "The limit of page for articles list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getlistarticles [get] 小程序取得所有文章列表,分页_首页用 这个应该要作废,用在哪里?
func (*ArticleController) GetUserArticle ¶
func (c *ArticleController) GetUserArticle()
@Title get wx userarticles count @Description get userarticles by projid @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articles not found @router /getuserarticle [get] 小程序取得我的文章列表,分页_plus_通用_含文章状态
func (*ArticleController) GetWxArticle ¶
func (c *ArticleController) GetWxArticle()
@Title get wx artile by articleId @Description get article by articleid @Param id path string true "The id of article" @Param skey path string true "The skey of user" @Success 200 {object} models.GetArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /getwxarticle/:id [get] 根据id查看一篇微信文章
func (*ArticleController) GetWxArticleFlow ¶
func (c *ArticleController) GetWxArticleFlow()
@Title get wx artile by articleId @Description get article by articleid @Param id path string true "The id of article" @Param skey path string true "The skey of user" @Param dtid query string true "The id of doctype" @Param docid query string true "The id of doc" @Param acid query string true "The id of accesscontext" @Success 200 {object} models.GetArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /getwxarticleflow/:id [get] 根据id查看一篇微信文章,带action的权限判断
func (*ArticleController) GetWxArticleType ¶
func (c *ArticleController) GetWxArticleType()
@Title get wx artiles list @Description get articles by page @Param page query string true "The page for articles list" @Param limit query string true "The limit of page for articles list" @Param dsid query string true "The id of docstate" @Param dtid query string true "The id of doctype" @Param acid query string true "The id of accesscontext" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxarticletype [get] 小程序根据flow文档的doctype获取登录者的文档_待提交的文档列表
func (*ArticleController) GetWxArticles ¶
func (c *ArticleController) GetWxArticles()
@Title get wx artiles list @Description get articles by page @Param page query string true "The page for articles list" @Param limit query string true "The limit of page for articles list" @Param skey query string true "The skey for user" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxarticles [get] 小程序取得所有文章列表,分页_珠三角设代用 作废
func (*ArticleController) GetWxArticless ¶
func (c *ArticleController) GetWxArticless()
@Title get wx artiles list @Description get articles by page @Param id path string true "The id of project" @Param page query string true "The page for articles list" @Param limit query string true "The limit of page for articles list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxarticless/:id [get] 小程序取得我的文章列表,分页_plus_通用_含文章状态
func (*ArticleController) GetWxUserArticles ¶
func (c *ArticleController) GetWxUserArticles()
@Title get wx userarticles count @Description get userarticles by projid @Param id path string true "The id of project" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articles not found @router /getwxuserarticles/:id [get] 小程序取得我的文章列表,分页_plus_通用_含文章状态
func (*ArticleController) GetsynchArticles ¶
func (c *ArticleController) GetsynchArticles()
取得同步文章列表
func (*ArticleController) UpdateWxEditorArticle ¶
func (c *ArticleController) UpdateWxEditorArticle()
@Title post wx artile by articleid @Description post article by articleid @Param id query string true "The id of article" @Param title query string true "The title of article" @Param content query string true "The content of article" @Param skey query string false "The skey of user" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /updatewxeditorarticle [post] 编辑设代日记id下微信小程序文章_珠三角设代plus用_editor方式
type Assigsvalue ¶
type AttachController ¶
type AttachController struct {
beego.Controller
}
func (*AttachController) AddAttachment ¶
func (c *AttachController) AddAttachment()
向某个侧栏id下添加成果——用于第一种批量添加一对一模式
func (*AttachController) AddAttachment2 ¶
func (c *AttachController) AddAttachment2()
向某个侧栏id下添加成果——用于第二种添加,多附件模式
func (*AttachController) AddWxAttachment ¶
func (c *AttachController) AddWxAttachment()
@Title post wx attachment by projectid @Description post attachment by projectid @Param pid query string true "The projectid of attachment" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 project not found @router /addwxattachment [post] wx向某个侧栏id下添加成果——用于第一种批量添加一对一模式
func (*AttachController) Attachment ¶
func (c *AttachController) Attachment()
目前有文章中的图片、成果中文档的预览、onlyoffice中的文档协作、pdf中的附件路径等均采用绝对路径型式 文章中的附件呢? default中的pdf页面中的{{.pdflink}},绝对路径
type Session struct { Session int }
attachment/路径/附件名称
func (*AttachController) DeleteAttachment ¶
func (c *AttachController) DeleteAttachment()
删除附件——这个用于针对删除一个附件
func (*AttachController) DownloadAttachment ¶
func (c *AttachController) DownloadAttachment()
根据权限查看附件/downloadattachment?id=
func (*AttachController) GetAllAttachments ¶
func (c *AttachController) GetAllAttachments()
取得某个成果id下的所有附件(包含pdf和文章)给table 用于编辑,这个要改,不要显示文章? 自从文章采用link后,是否可以一同删除?
func (*AttachController) GetAttachments ¶
func (c *AttachController) GetAttachments()
取得某个成果id下的附件(除去pdf)给table
func (*AttachController) GetPdfs ¶
func (c *AttachController) GetPdfs()
@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 /project/product/pdf/:id [get] 2.点击一个具体文档——显示详情——显示actions 取得某个成果id下的附件中的pdf给table
func (*AttachController) GetWxPdf ¶
func (c *AttachController) GetWxPdf()
@Title dowload wx pdf @Description get wx pdf by id @Param id path string true "The id of pdf" @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /getwxpdf/:id [get] 查阅防腐资料,不用权限判断
func (*AttachController) GetsynchAttachments ¶
func (c *AttachController) GetsynchAttachments()
取得同步成果下的附件列表
func (*AttachController) ProvideAttachments ¶
func (c *AttachController) ProvideAttachments()
提供给同步用的某个成果id下的附件(除去pdf)给table
func (*AttachController) UpdateAttachment ¶
func (c *AttachController) UpdateAttachment()
向一个成果id下追加附件
func (*AttachController) WxPdf ¶
func (c *AttachController) WxPdf()
@Title dowload wx pdf @Description get wx pdf by id @Param id path string true "The id of pdf" @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /wxpdf/:id [get] 有权限判断,必须取得文件所在路径,才能用casbin判断
type AttachmentLink ¶
type BaseController ¶
type BaseController struct {
beego.Controller
}
CMSToken API
func (*BaseController) ParseToken ¶
func (base *BaseController) ParseToken() (t *jwt.Token, err error)
ParseToken parse JWT token in http header.
type BbsController ¶
type BbsController struct {
beego.Controller
}
CMSBBS API
func (*BbsController) Bbs ¶
func (c *BbsController) Bbs()
@Title post bbs @Description post bbs @Param userId query string true "The userId for bbs" @Param desc query string true "The description for bbs" @Param year query string true "The year for bbs" @Param month query string true "The month for bbs" @Param day query string true "The day for bbs" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 bbs not found @router /bbs [post] 新增公告写入数据库
func (*BbsController) BbsGetBbs ¶
func (c *BbsController) BbsGetBbs()
@Title get checkin bbs @Description get bbs @Param year query string true "The year for bbs" @Param month query string true "The month for bbs" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /bbsgetbbs [get] 取得当月的打卡记录
func (*BbsController) GetBbs ¶
func (c *BbsController) GetBbs()
@Title get bbs @Description get bbs @Param year query string true "The year for bbs" @Param month query string true "The month for bbs" @Param day query string true "The day for bbs" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 bbs not found @router /getbbs [get] 取得选定日期的记录
type BlogController ¶
type BlogController struct {
MindocBaseController
}
func (*BlogController) Prepare ¶
func (c *BlogController) Prepare()
type BookController ¶
type BookController struct {
MindocBaseController
}
func (*BookController) Index ¶
func (c *BookController) Index()
func (*BookController) IsPermission ¶
func (c *BookController) IsPermission() (*models.BookResult, error)
func (*BookController) Team ¶
func (c *BookController) Team()
func (*BookController) TeamAdd ¶
func (c *BookController) TeamAdd()
type BookMemberController ¶
type BookMemberController struct {
MindocBaseController
}
func (*BookMemberController) AddMember ¶
func (c *BookMemberController) AddMember()
AddMember 参加参与用户.
func (*BookMemberController) ChangeRole ¶
func (c *BookMemberController) ChangeRole()
变更指定用户在指定项目中的权限
func (*BookMemberController) IsPermission ¶
func (c *BookMemberController) IsPermission() (*models.BookResult, error)
type BusinessCheckDate ¶
type BusinessController ¶
type BusinessController struct {
beego.Controller
}
func (*BusinessController) AddBusiness ¶
func (c *BusinessController) AddBusiness()
@Title post business by projectid @Description post business by projectid @Param content query string true "The content of release" @Param location query string true "The location of business" @Param lat query string false "The lat of location" @Param lng query string false "The lng of location" @Param startDate query string false "The startDate of business" @Param endDate query string false "The endDate of business" @Param projecttitle query string false "The projecttitle of business" @Param drivername query string false "The drivername of business" @Param subsidy query string false "The subsidy of business" @Param carfare query string false "The carfare of business" @Param hotelfee query string false "The hotelfee of business" @Param users query string false "The users of business" @Param articleshow query string false "The larticleshow of business" @Param id path string true "The projectid of project" @Param title query string false "The title of article" @Param articlecontent query string false "The content of article" @Success 200 {object} models.CreateBusiness @Failure 400 Invalid page supplied @Failure 404 pas not found @router /addbusiness/:id [post] 添加一个活动
func (*BusinessController) BusinessCheck ¶
func (c *BusinessController) BusinessCheck()
@Title post checkin person @Description post person @Param userid query string true "The userid for person" @Param businessid query string true "The businessid for Business" @Param lat query string true "The businessid of check" @Param lng query string true "The businessid of check" @Param photoUrl query string true "The photoUrl of check" @Param year query string true "The businessid of check" @Param month query string true "The businessid of check" @Param day query string true "The businessid of check" @Param location query string true "The location of check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /businesscheck [post] 打卡记录写入数据库
func (*BusinessController) BusinessMonthCheck ¶
func (c *BusinessController) BusinessMonthCheck()
@Title get businessmothcheckin @Description get businessmonthcheck @Param id path string true "The projectid of business" @Param page query string false "The page of check" @Param limit query string false "The size of check" @Param year query string true "The year of check" @Param month query string true "The month of check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /businessmonthcheck/:id [get] 月度考勤统计
func (*BusinessController) BusinessMonthCheckSum ¶
func (c *BusinessController) BusinessMonthCheckSum()
********************统计************** @Title get businessmothcheckin @Description get businessmonthcheck @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /businessmonthchecksum [get]
func (*BusinessController) GetBusinessCheck ¶
func (c *BusinessController) GetBusinessCheck()
@Title get checkin check @Description get check @Param userid query string true "The userid of check" @Param businessid query string true "The businessid of check" @Param year query string true "The year of check" @Param month query string true "The month of check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getbusinesscheck [get] 取得当月的打卡记录
func (*BusinessController) GetBysiness ¶
func (c *BusinessController) GetBysiness()
@Title get business by userid @Description get business by userid @Param id path string true "The projectid of business" @Success 200 {object} models.GetBusinessPage @Failure 400 Invalid page supplied @Failure 404 business not found @router /getbusiness/:id [get] 根据项目id和用户id列出有关的business 不应该过滤项目id!!
func (*BusinessController) GetBysinessById ¶
func (c *BusinessController) GetBysinessById()
@Title get business by businessid @Description get business by businessid @Param id path string true "The id of business" @Success 200 {object} models.GetBusinessPage @Failure 400 Invalid page supplied @Failure 404 business not found @router /getbusinessbyid/:id [get] 根据businessid查出business
func (*BusinessController) UpdateBusiness ¶
func (c *BusinessController) UpdateBusiness()
@Title post update business by businessid @Description post update business by businessid @Param content query string true "The content of release" @Param location query string true "The location of business" @Param lat query string false "The lat of location" @Param lng query string false "The lng of location" @Param startDate query string false "The startDate of business" @Param endDate query string false "The endDate of business" @Param projecttitle query string false "The projecttitle of business" @Param drivername query string false "The drivername of business" @Param subsidy query string false "The subsidy of business" @Param carfare query string false "The carfare of business" @Param hotelfee query string false "The hotelfee of business" @Param users query string false "The users of business" @Param articleshow query string false "The larticleshow of business" @Param id path string true "The id of business" @Param title query string false "The title of article" @Param articlecontent query string false "The content of article" @Success 200 {object} models.UpdateBusiness @Failure 400 Invalid page supplied @Failure 404 pas not found @router /updatebusiness/:id [post] 用户修改business
type Callback ¶
type Callback struct { Key string `json:"key"` Status int `json:"status"` Url string `json:"url"` Changesurl string `json:"changesurl"` History history1 `json:"history"` Users []string `json:"users"` Actions []action `json:"actions"` Lastsave time.Time `json:"lastsave"` Notmodified bool `json:"notmodified"` Forcesavetype int `json:"forcesavetype"` }
type CartController ¶
type CartController struct {
beego.Controller
}
func (*CartController) CreateProductCart ¶
func (c *CartController) CreateProductCart()
@Title post create a new cart @Description post create a new cart @Param ids query string true "The ids of product" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /createproductcart [post]
func (*CartController) DeleteUserCart ¶
func (c *CartController) DeleteUserCart()
@Title post delete usercart @Description post delete a usercart @Param ids query string true "The ids of usercats" @Success 200 {object} models.DeleteUserCart @Failure 400 Invalid page supplied @Failure 404 articl not found @router /deleteusercart [post]
func (*CartController) GetApplyCart ¶
func (c *CartController) GetApplyCart()
@Title get usercartlist @Description get usercartlist @Param status query string true "The status for usercart list" @Param searchText query string false "The searchText of usercart" @Param pageNo query string true "The page for usercart list" @Param limit query string true "The limit of page for usercart list" @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /getapplycart [get] 根据用户id获得借阅记录,如果是admin角色,则查询全部
func (*CartController) GetApprovalCart ¶
func (c *CartController) GetApprovalCart()
@Title get usercartlist @Description get usercartlist @Param status query string true "The status for usercart list" @Param searchText query string false "The searchText of usercart" @Param pageNo query string true "The page for usercart list" @Param limit query string true "The limit of page for usercart list" @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /getapprovalcart [get] 根据用户id获得借阅记录,如果是admin角色,则查询全部
func (*CartController) GetCart ¶
func (c *CartController) GetCart()
@Title get usercarttpl @Description get usercarttpl @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /getcart [get]
func (*CartController) UpdateApprovalCart ¶
func (c *CartController) UpdateApprovalCart()
@Title post update carts @Description post update carts @Param ids query string true "The ids of approvalcats" @Success 200 {object} models.Update @Failure 400 Invalid page supplied @Failure 404 cart not found @router /updateapprovalcart [post]
type CartResult ¶
type CatalogLinkCont ¶
type CatalogLinkCont struct { Id int64 `json:"id"` ProjectNumber string //项目编号 ProjectName string //项目名称 DesignStage string //阶段 Section string //专业 Tnumber string //成果编号 Name string //成果名称 Category string //成果类型 Page string //成果计量单位 Count float64 //成果数量 Drawn string //编制、绘制 Designd string //设计 Checked string //校核 Examined string //审查 Verified string //核定 Approved string //批准 Complex float64 //难度系数 Drawnratio float64 //编制、绘制占比系数 Designdratio float64 //设计系数 Checkedratio float64 //校核系数 Examinedratio float64 //审查系数 Datestring string //保存字符型日期 Date time.Time `orm:"null;auto_now_add;type(datetime)"` Created time.Time `orm:"auto_now_add;type(datetime)"` Updated time.Time `orm:"auto_now_add;type(datetime)"` Author string //上传者 State int Link []models.CatalogLink }
Catalog添加附件链接和设计说明、校审意见
type CatalogLinkEditable ¶
type CatalogLinkEditable struct { Id int64 CatalogId int64 Url string `orm:"sie(500)"` Editable bool Created time.Time `orm:"auto_now_add;type(datetime)"` Updated time.Time `orm:"auto_now_add;type(datetime)"` }
附件链接表
type ChatController ¶
type ChatController struct {
beego.Controller
}
func (*ChatController) Avatar ¶
func (c *ChatController) Avatar()
@Title get avatar @Description get avatar @Param text path string true "The text" @Success 200 {object} models.Avatar @Failure 400 Invalid page supplied @Failure 404 Page not found @router /avatar/:text [get] 用户头像,用流stream的方式
func (*ChatController) Chat ¶
func (c *ChatController) Chat()
@Title get chat @Description get chat @Success 200 {object} models.UserTemple @Failure 400 Invalid page supplied @Failure 404 Page not found @router /chat [get] 聊天室页面
func (*ChatController) HandleConnections ¶
func (c *ChatController) HandleConnections()
@Title get wschat @Description get wschat @Success 200 {object} models.GetChat @Failure 400 Invalid page supplied @Failure 404 Page not found @router /wschat [get] 用户连接后建立websocket长连接
type ChatMessage ¶
type ChatMessage struct { Email string `json:"email"` Username string `json:"username"` Message string `json:"message"` }
Define our message object
type CheckController ¶
type CheckController struct {
beego.Controller
}
CMSCHECKIN API
func (*CheckController) ActInfo ¶
func (c *CheckController) ActInfo()
@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/actInfo [post]
func (*CheckController) Apply ¶
func (c *CheckController) Apply()
@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/apply [post] 报名某个活动
func (*CheckController) Check ¶
func (c *CheckController) Check()
@Title post checkin person @Description post person @Param userId query string true "The userId for person" @Param activityId query string true "The activityId of activity" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /check [post] 打卡记录写入数据库
func (*CheckController) CheckGetCheck ¶
func (c *CheckController) CheckGetCheck()
@Title get checkin check @Description get check @Param userId query string true "The userId for check" @Param activityId query string true "The activityid for check" @Param year query string true "The year for check" @Param month query string true "The month for check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /checkgetcheck [get] 取得当月的打卡记录
func (*CheckController) CheckSignature ¶
func (c *CheckController) CheckSignature()
@Title get Signature @Description get Signature @Param signature query string true "The signature of wx" @Param timestamp query string true "The timestamp of wx" @Param nonce query string true "The nonce for wx" @Param echostr query string true "The echostr for wx" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /checksignature [get] 检验signature v1/checkin/checksignature
func (*CheckController) Compare ¶
func (c *CheckController) Compare()
@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /check/compare [post]
func (*CheckController) Create ¶
func (c *CheckController) Create()
@Title post checkin activity @Description post person @Param CreaterId query string true "The CreaterId for activity" @Param projectid query string true "The projectid of activity" @Param Caption query string true "The Caption for activity" @Param Desc query string true "The Desc for activity" @Param Location query string true "The Location for activity" @Param Lat query string true "The Lat for activity" @Param Lng query string true "The Lng for activity" @Param SatrtDate query string true "The SatrtDate for activity" @Param EndDate query string true "The EndDate for activity" @Param IfFace query string true "The IfFace for activity" @Param IfPhoto query string true "The IfPhoto for activity" @Param IfLocation query string true "The IfLocation for activity" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/create [post] 新增打卡活动
func (*CheckController) Date ¶
func (c *CheckController) Date()
@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /details/date [post]
func (*CheckController) Details ¶
func (c *CheckController) Details()
@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /check/details [post] 活动详情
func (*CheckController) Getall ¶
func (c *CheckController) Getall()
@Title post checkin person @Description post person @Param projectid query string true "The projectid of activity" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/getall [post] 取出所有活动
func (*CheckController) HaveApply ¶
func (c *CheckController) HaveApply()
@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/haveApply [post]
func (*CheckController) Like ¶
func (c *CheckController) Like()
@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/like [post] 搜索
func (*CheckController) MonthCheck ¶
func (c *CheckController) MonthCheck()
@Title get mothcheckin @Description get monthcheck @Param page query string false "The page of check" @Param limit query string false "The size of check" @Param activityId query string true "The activityid for check" @Param year query string true "The year for check" @Param month query string true "The month for check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /monthcheck [get] 月度考勤统计
func (*CheckController) MonthCheckSum ¶
func (c *CheckController) MonthCheckSum()
getDateById: function getDateById(activity_id,callback) { var sql = 'SELECT DISTINCT F_CheckDate FROM v_check_detail WHERE F_ActivityId = ?'; var params = [activity_id]; db.connection.query(sql,params,function (err,res) { if(err){ console.log(err); return; } console.log(res); callback(res); }) },
getCheckByDate: function getCheckByDate(check_date,callback) { var sql = 'SELECT * FROM v_check_detail WHERE F_CheckDate = ?' var params = [check_date]; db.connection.query(sql,params,function (err,res) { if(err){ console.log(err); return; } console.log(res); callback(res); }) },
********************统计************** @Title get mothcheckin @Description get monthcheck @Param projectid query string true "The projectid of check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /monthchecksum [get]
func (*CheckController) Person ¶
func (c *CheckController) Person()
@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /person [post]
func (*CheckController) SendMessage ¶
func (c *CheckController) SendMessage()
@Title post Message @Description post Message @Param app_version query string true "The app_version of wx" @Param template_id query string true "The template_id of Message" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /sendmessage [post] 检验signature v1/checkin/sendmessage 点击发送订阅消息
func (*CheckController) SubscribeMessage ¶
func (c *CheckController) SubscribeMessage()
@Title post subscribemessage @Description post subscribemessage @Param tmplIds query string true "The tmplIds of wx" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /subscribemessage [post] 检验signature v1/checkin/subscribemessage 存储用户订阅subscribemessage
type CommentController ¶
type CommentController struct {
MindocBaseController
}
func (*CommentController) Create ¶
func (c *CommentController) Create()
func (*CommentController) Index ¶
func (c *CommentController) Index()
func (*CommentController) Lists ¶
func (c *CommentController) Lists()
type Conversionresponse ¶
type Conversionsend ¶
type Conversionsend struct { Async bool `json:"async"` Filetype string `json:"filetype"` Key string `json:"key"` Outputtype string `json:"async"` Thumbnail Nail `json:"thumbnail"` Title string `json:"title"` Url string `json:"url"` }
文档格式转换
type Detailsinfo ¶
type DiaryContent ¶
type DiaryController ¶
type DiaryController struct {
beego.Controller
}
CMSWXDIARY API
func (*DiaryController) AddWxDiary ¶
func (c *DiaryController) AddWxDiary()
@Title post wx diary by catalogId @Description post diary by projectid @Param projectid query string true "The projectid of diary" @Param title query string true "The title of diary" @Param diarydate query string true "The diarydate of diary" @Param diaryactivity query string true "The diaryactivity of diary" @Param diaryweather query string true "The diaryweather of diary" @Param content query string true "The content of diary" @Param skey query string true "The skey of user" @Success 200 {object} models.AddDiary @Failure 400 Invalid page supplied @Failure 404 Diary not found @router /addwxdiary [post] 向设代日记id下添加微信小程序文章_珠三角设代plus用_
func (*DiaryController) DeleteWxDiary ¶
func (c *DiaryController) DeleteWxDiary()
@Title post wx diary by diaryId @Description post diary by catalogid @Param id query string true "The id of diary" @Success 200 {object} models.Adddiary @Failure 400 Invalid page supplied @Failure 404 articl not found @router /deletewxdiary [post] 根据id删除_没删除文章中的图片
func (*DiaryController) GetWxDiary ¶
func (c *DiaryController) GetWxDiary()
@Title get wx diary by diaryId @Description get diary by diaryid @Param id path string true "The id of diary" @Param skey path string true "The skey of user" @Success 200 {object} models.GetDiary @Failure 400 Invalid page supplied @Failure 404 articl not found @router /getwxdiary/:id [get] 根据id查看一篇微信文章
func (*DiaryController) GetWxdiaries ¶
func (c *DiaryController) GetWxdiaries()
@Title get wx diaries list @Description get diaries by page @Param projectid query string true "The projectid of diary" @Param page query string true "The page for diaries list" @Param limit query string true "The limit of page for diaries list" @Param skey query string false "The skey for diary" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxdiaries [get] 小程序取得日志列表,分页_珠三角设代用
func (*DiaryController) GetWxdiaries2 ¶
func (c *DiaryController) GetWxdiaries2()
@Title get wx diaries list @Description get diaries by page @Param id path string true "The id of diaries" @Param page query string true "The page for diaries list" @Param limit query string true "The limit of page for diaries list" @Param skey query string false "The skey for diary" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxdiaries2/:id [get] 网页页面取得日志列表,返回page rows total
func (*DiaryController) HtmlToDoc ¶
func (c *DiaryController) HtmlToDoc()
@Title get wx diaries to doc @Description get diaries to doc @Param projectid query string true "The projectid of diary" @Param page query string true "The page for diaries list" @Param limit query string true "The limit of page for diaries list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxdiaries [get] 将日志导出到word
func (*DiaryController) UpdateWxDiary ¶
func (c *DiaryController) UpdateWxDiary()
@Title post wx diary by diaryid @Description post diary by diaryid @Param id query string true "The id of diary" @Param title query string true "The title of diary" @Param content query string true "The content of diary" @Success 200 {object} models.AddDiary @Failure 400 Invalid page supplied @Failure 404 articl not found @router /updatewxdiary [post] 编辑设代日记id下微信小程序文章_珠三角设代plus用_editor方式
type DocNode ¶
type DocNode struct { Id int `json:"id"` Heading string `json:"text"` Level int `json:"level"` //分级 ParentId int }
文档结构数据
type Doclist ¶
type Doclist struct { Docs []*flow.Documentstruct `json:"docs"` Page int64 `json:"page"` Total int `json:"total"` //string或int64都行! }
后端分页的数据结构
type Document ¶
type Document struct { ID string `json:"id"` ImageURL string `json:"image_url"` Published string `json:"published"` Title string `json:"title"` Body string `json:"body"` Alt string `json:"alt"` Transcript string `json:"transcript"` Link string `json:"link,omitempty"` News string `json:"news,omitempty"` }
Document wraps an xkcd.com comic.
type DocumentController ¶
type DocumentController struct {
MindocBaseController
}
DocumentController struct
func (*DocumentController) Compare ¶
func (c *DocumentController) Compare()
func (*DocumentController) DeleteHistory ¶
func (c *DocumentController) DeleteHistory()
func (*DocumentController) DownloadAttachment ¶
func (c *DocumentController) DownloadAttachment()
下载附件
func (*DocumentController) RestoreHistory ¶
func (c *DocumentController) RestoreHistory()
通过文档历史恢复文档
type DocumentDetail ¶
type Documentlist ¶
type Documentlist struct { Docs []*flow.Document `json:"docs"` Page int64 `json:"page"` Total int `json:"total"` //string或int64都行! }
后端分页的数据结构
type ElasticController ¶
type ElasticController struct {
beego.Controller
}
CMSELASTIC API
func (*ElasticController) Exists ¶
func (c *ElasticController) Exists(id string) (bool, error)
Exists returns true when a document with id already exists in the store.
func (*ElasticController) Get ¶
func (c *ElasticController) Get()
@Title get elasticsearch web @Description get elasticsearch web @Success 200 {object} models.GetElastic @Failure 400 Invalid page supplied @Failure 404 Elastic not found @router /get [get] 进入搜索主页面
func (*ElasticController) Search ¶
func (c *ElasticController) Search()
@Title get search @Description get earch @Param q query string false "The query=" @Param a formData string false "The after..." @Success 200 {object} models.GetSearch @Failure 400 Invalid page supplied @Failure 404 Search not found @router /search [get] 上传文档——tika解析——构造document——存入es Search returns results matching a query, paginated by after.
func (*ElasticController) Tika ¶
func (c *ElasticController) Tika()
@Title post tika @Description post tika @Success 200 {object} models.PostTika @Failure 400 Invalid page supplied @Failure 404 Tika not found @router /tika [post] 上传文档——tika解析——构造document——存入es
func (*ElasticController) Upload ¶
func (c *ElasticController) Upload()
@Title post bootstrapfileinput @Description post file by BootstrapFileInput @Param id path string true "The id of project" @Param prodlabel query string false "The prodlabel" @Param prodprincipal query string false "The prodprincipal" @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 page not found @router /upload/:id [post] 上传
func (*ElasticController) UploadElastic ¶
func (c *ElasticController) UploadElastic()
@Title upload file to tika&elastic html @Description get upload file to tika&elastic html @Param id path string true "The id of project" @Success 200 {object} models.Elastic @Failure 400 Invalid page supplied @Failure 404 Page not found @router /uploadelastic/:id [get] 进入上传主页面
type EleProjTree ¶
type EleProjTree struct { Id int64 `json:"id"` Label string `json:"label"` Code string `json:"code"` //分级目录代码 Tags [1]string `json:"tags"` //显示员工数量,如果定义为数值[1]int,则无论如何都显示0,所以要做成字符 Lazy bool `json:"lazy"` Children []*EleProjTree `json:"children"` }
vue.js-project树状目录数据——带成果数量
type ErrorController ¶
type ErrorController struct {
MindocBaseController
}
func (*ErrorController) Error403 ¶
func (c *ErrorController) Error403()
func (*ErrorController) Error404 ¶
func (c *ErrorController) Error404()
func (*ErrorController) Error500 ¶
func (c *ErrorController) Error500()
type Fetcher ¶
type Fetcher struct { URL string Pieces []RangeHeader }
Fetcher downloads file from URL.
type FileNode ¶
type FileNode struct { Id int64 `json:"id"` Title string `json:"text"` Code string `json:"code"` //分级目录代码 FileNodes []*FileNode `json:"nodes"` }
树状目录数据
type FileNode1 ¶
type FileNode1 struct { Id int64 `json:"id"` Title string `json:"text"` Code string `json:"code"` //分级目录代码 Tags [1]string `json:"tags"` //显示员工数量,如果定义为数值[1]int,则无论如何都显示0,所以要做成字符 LazyLoad bool `json:"lazyLoad"` FileNodes []*FileNode1 `json:"nodes"` }
树状目录数据——带成果数量
type FileNode2 ¶
type FileNode2 struct { Id int64 `json:"id"` Title string `json:"text"` // Code string `json:"code"` //分级目录代码 Tags [1]string `json:"tags"` //显示员工数量,如果定义为数值[1]int,则无论如何都显示0,所以要做成字符 LazyLoad bool `json:"lazyLoad"` }
树状目录数据——带成果数量和懒加载
type Fileinput ¶
type Fileinput struct { InitialPreview []string `json:"initialPreview"` InitialPreviewConfig []PreviewConfig `json:"initialPreviewConfig"` }
type FileinputController ¶
type FileinputController struct {
beego.Controller
}
CMSWX froala API
func (*FileinputController) BootstrapFileInput ¶
func (c *FileinputController) BootstrapFileInput()
@Title post bootstrapfileinput @Description post file by BootstrapFileInput @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /bootstrapfileinput [post] 上传excel文件,格式:第一行,序号-名称-编号,都打上格子
type FinanceContent ¶
type FinanceController ¶
type FinanceController struct {
beego.Controller
}
CMSWXDIARY API
func (*FinanceController) AddWxFinance ¶
func (c *FinanceController) AddWxFinance()
@Title post wx finance by catalogId @Description post finance by projectid @Param id path string true "The projectid of finance" @Param amount query string true "The amount of finance" @Param radio query string true "The radio of finance" @Param radio2 query string true "The radio2 of finance" @Param financedate query string true "The financedate of finance" @Param financeactivity query string true "The financeactivity of finance" @Param content query string true "The content of finance" @Param skey query string false "The skey of user" @Success 200 {object} models.AddFinance @Failure 400 Invalid page supplied @Failure 404 Finance not found @router /addwxfinance/:id [post] 向设代日记id下添加微信小程序文章_珠三角设代plus用_
func (*FinanceController) DeleteWxFinance ¶
func (c *FinanceController) DeleteWxFinance()
@Title post wx finance by financeId @Description post finance by catalogid @Param id query string true "The id of finance" @Success 200 {object} models.Addfinance @Failure 400 Invalid page supplied @Failure 404 articl not found @router /deletewxfinance [post] 根据id删除_没删除文章中的图片
func (*FinanceController) GetWxFinance ¶
func (c *FinanceController) GetWxFinance()
@Title get wx finance by financeId @Description get finance by financeid @Param id path string true "The id of finance" @Param skey path string true "The skey of user" @Success 200 {object} models.GetFinance @Failure 400 Invalid page supplied @Failure 404 articl not found @router /getwxfinance/:id [get] 根据id查看一篇微信文章
func (*FinanceController) GetWxFinanceList ¶
func (c *FinanceController) GetWxFinanceList()
@Title get wx finance list @Description get finance by page @Param id path string true "The projectid of finance" @Param page query string true "The page for finance list" @Param limit query string true "The limit of page for finance list" @Param skey query string false "The skey for finance" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxfinancelist/:id [get] 小程序取得日志列表,分页,通用
func (*FinanceController) GetWxfinance2 ¶
func (c *FinanceController) GetWxfinance2()
@Title get wx finance list @Description get finance by page @Param id path string true "The projectid of finance" @Param page query string true "The page for finance list" @Param limit query string true "The limit of page for finance list" @Param skey query string false "The skey for finance" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxfinance2/:id [get] 网页页面取得日志列表,返回page rows total
func (*FinanceController) UpdateWxFinance ¶
func (c *FinanceController) UpdateWxFinance()
@Title post wx finance by financeid @Description post finance by financeid @Param id query string true "The id of finance" @Param amount query string true "The amount of finance" @Param radio query string true "The radio of finance" @Param radio2 query string true "The radio2 of finance" @Param financedate query string true "The financedate of finance" @Param content query string true "The content of finance" @Success 200 {object} models.AddFinance @Failure 400 Invalid page supplied @Failure 404 articl not found @router /updatewxfinance [post] 编辑设代日记id下微信小程序文章_珠三角设代plus用_editor方式
type FlowController ¶
type FlowController struct {
beego.Controller
}
VueFlow 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) FlowAccessContextUpdate ¶
func (c *FlowController) FlowAccessContextUpdate()
@Title post wf docaccesscontext... @Description post workflowdocaccesscontext.. @Param name query string false "The name of docaccesscontext" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowaccesscontextupdate [post] 管理员定义流程类型docstate、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
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) FlowActionDelete ¶
func (c *FlowController) FlowActionDelete()
@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 /flowactiondelete [post] 管理员定义流程类型docstate、流程状态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) FlowActionUpdate ¶
func (c *FlowController) FlowActionUpdate()
@Title post wf docaction... @Description post workflowdocaction.. @Param name query string false "The name of docaction" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowactionupdate [post] 管理员定义流程类型docstate、流程状态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 false "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.管理员列表显示文档,根据用户等参数来过滤,这个是正确使用方式
func (*FlowController) FlowDocumentList2 ¶
func (c *FlowController) FlowDocumentList2()
@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 /flowdocumentlist2 [get] 1.列表显示文档,根据用户等参数来过滤,这个是正确使用方式
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" @Param dtid query string true "The doctypeid of Node" @Param dsid query string true "The docstateid of Node" @Param acid query string true "The accesssid of Node" @Param nodetype query string true "The nodetype 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) FlowStateDelete ¶
func (c *FlowController) FlowStateDelete()
@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 /flowstatedelete [post] 管理员定义流程类型docstate、流程状态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) FlowStateUpdate ¶
func (c *FlowController) FlowStateUpdate()
@Title post wf docstate... @Description post workflowdocstate.. @Param name query string false "The name of docstate" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowstateupdate [post] 管理员定义流程类型docstate、流程状态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) FlowTransitionDelete ¶
func (c *FlowController) FlowTransitionDelete()
@Title post wf doctransition... @Description post workflowdoctransition.. @Param name query string true "The name of doctransition" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtransitiondelete [post] 管理员定义流程类型docstate、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
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) FlowTransitionUpdate ¶
func (c *FlowController) FlowTransitionUpdate()
@Title post wf doctransition... @Description post workflowdoctransition.. @Param name query string false "The name of doctransition" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtransitionupdate [post] 管理员定义流程类型docstate、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
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) FlowUserMailbox2 ¶
func (c *FlowController) FlowUserMailbox2()
@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 /flowusermailbox2 [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" @Param dtid query string true "The doctypeid of Workflow" @Param dsid query string true "The docstate 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) LiuCheng ¶
func (c *FlowController) LiuCheng()
@Title get flowchart text @Description get flowchart text @Param docstate query string true "The state of document" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /liucheng [get] 2.点击一个具体文档——显示详情——显示flowchart
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] 页面
func (*FlowController) WxFlowDoc ¶
func (c *FlowController) WxFlowDoc()
@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 id query string true "The id of document" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /wxflowdoc [post] 小程序上添加一个带流程的文档——这个作废,在article里添加一个文章直接作为初始流程
func (*FlowController) WxFlowNext ¶
func (c *FlowController) WxFlowNext()
@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 articleid query string true "The id of article" @Param gid query string true "The id of group" @Param messageid query string true "The messageid of doc" @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 /wxflownext [post] 小程序端next
func (*FlowController) WxFlowUserMailbox2 ¶
func (c *FlowController) WxFlowUserMailbox2()
@Title get user mailbox @Description get usermailbox @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 /wxflowusermailbox2 [get] 小程序列表显示用户个人邮件——待处理 用户点击邮件,进入文章详细,携带messageid——wxflownext里对邮件进行已读处理
type FlvController ¶
type FlvController struct {
beego.Controller
}
CMSFLV API
func (*FlvController) Get ¶
func (c *FlvController) Get()
@Title getFlv @Description get admin page @Success 200 {object} success @Failure 400 Invalid page @Failure 404 page not found @router / [get]
func (*FlvController) GetFlvList ¶
func (c *FlvController) GetFlvList()
@Title getFlv @Description get admin page @Success 200 {object} success @Failure 400 Invalid page @Failure 404 page not found @router /flvlist [get]
type FroalaController ¶
type FroalaController struct {
beego.Controller
}
CMSWX froala API
func (*FroalaController) UploadAppreciationPhoto ¶
func (c *FroalaController) UploadAppreciationPhoto()
@Title post wx user avatar @Description post user avatar @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /uploadappreciationphoto [post] 小程序wx添加用户赞赏码上传
func (*FroalaController) UploadWxAvatar ¶
func (c *FroalaController) UploadWxAvatar()
@Title post wx user avatar @Description post user avatar @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /uploadwxavatar [post] 微信wx添加用户头像上传
func (*FroalaController) UploadWxEditorImg ¶
func (c *FroalaController) UploadWxEditorImg()
@Title post wx artile img by catalogId @Description post article img by catalogid @Param projectid query string true "The projectid of wxeditor" @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /uploadwxeditorimg [post] 微信wx添加文章里的图片上传_小程序富文本里的上传图片
func (*FroalaController) UploadWxImg ¶
func (c *FroalaController) UploadWxImg()
@Title post wx artile img by catalogId @Description post article img by catalogid @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /uploadwximg [post] 微信wx添加文章里的图片上传_独立上传图片模式
func (*FroalaController) UploadWxImgs ¶
func (c *FroalaController) UploadWxImgs()
@Title post wx artile img by catalogId @Description post article img by catalogid @Param id path string true "The id of project" @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /uploadwximgs/:id [post] 微信wx添加文章里的图片上传——这个鲁班宝,但这个id更通用
func (*FroalaController) UploadWxVideo ¶
func (c *FroalaController) UploadWxVideo()
@Title post wx video by catalogId @Description post video by catalogid @Param id path string true "The id of project" @Param desc query string true "The descript of video" @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 article not found @router /uploadwxvideo/:id [post] 微信wx添加视频
func (*FroalaController) UploadWxVideoCover ¶
func (c *FroalaController) UploadWxVideoCover()
@Title post wx videoCover by videoid @Description post videoCover by videoid @Param id query string true "The id of video" @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 article not found @router /uploadwxvideocover/:id [post] 微信wx添加视频
type Gantt ¶
type Gantt struct { Tasks []Task `json:"tasks"` Resources []Resourcesvalue `json:"resources"` Roles []Rolesvalue `json:"roles"` SelectedRow int64 `json:"selectedRow"` DeletedTaskIds []int64 `json:"deletedTaskIds"` CanWrite bool `json:"canWrite"` CanWriteOnParent bool `json:"canWriteOnParent"` Zoom string `json:"zoom"` //"w3" }
type Hit ¶
type Hit struct { //Document URL string `json:"url"` Sort []interface{} `json:"sort"` Highlights *struct { Title []string `json:"title"` Body []string `json:"body"` Alt []string `json:"alt"` Transcript []string `json:"transcript"` } `json:"highlights,omitempty"` ID string `json:"id"` ImageURL string `json:"image_url"` Title string `json:"title"` Body string `json:"body"` Published string `json:"published"` Author Author `json:"author"` }
Hit wraps the document returned in search response.
type HomeController ¶
type HomeController struct {
MindocBaseController
}
func (*HomeController) Index ¶
func (c *HomeController) Index()
func (*HomeController) Prepare ¶
func (c *HomeController) Prepare()
type IndexController ¶
type IndexController struct {
beego.Controller
}
func (*IndexController) Calendar ¶
func (c *IndexController) Calendar()
func (*IndexController) CarCalendar ¶
func (c *IndexController) CarCalendar()
返回日历json数据 如果是管理员,则显示全部,非管理员,显示公开
func (*IndexController) Cms ¶
func (c *IndexController) Cms()
func (*IndexController) DeleteCarCalendar ¶
func (c *IndexController) DeleteCarCalendar()
删除,如果有下级,一起删除
func (*IndexController) DeleteMeetCalendar ¶
func (c *IndexController) DeleteMeetCalendar()
删除,如果有下级,一起删除
func (*IndexController) GetAttendanceCalendar ¶
func (c *IndexController) GetAttendanceCalendar()
*****考勤 显示页面
func (*IndexController) GetOrderCalendar ¶
func (c *IndexController) GetOrderCalendar()
*****订餐 显示页面
func (*IndexController) MeetCalendar ¶
func (c *IndexController) MeetCalendar()
返回日历json数据 如果是管理员,则显示全部,非管理员,显示公开
func (*IndexController) MeetingroomCalendar ¶
func (c *IndexController) MeetingroomCalendar()
*****会议室 显示页面
func (*IndexController) SearchCalendar ¶
func (c *IndexController) SearchCalendar()
type ItemsetsController ¶
type ItemsetsController struct {
MindocBaseController
}
func (*ItemsetsController) Index ¶
func (c *ItemsetsController) Index()
func (*ItemsetsController) List ¶
func (c *ItemsetsController) List()
func (*ItemsetsController) Prepare ¶
func (c *ItemsetsController) Prepare()
type LabelController ¶
type LabelController struct {
MindocBaseController
}
func (*LabelController) List ¶
func (c *LabelController) List()
func (*LabelController) Prepare ¶
func (c *LabelController) Prepare()
type LegislationController ¶
type LegislationController struct {
beego.Controller
}
func (*LegislationController) Checklist ¶
func (c *LegislationController) Checklist()
搜索规范或者图集的名称或编号
func (*LegislationController) FileInput ¶
func (c *LegislationController) FileInput()
上传文档供解析-替换(增加)标准号
func (*LegislationController) Index ¶
func (c *LegislationController) Index()
type Legislationmore ¶
type Listimage ¶
type Listimage struct { Id int64 `json:"id"` UserNo string `json:"userNo"` DiagTime string `json:"diagTime"` DiagDoc string `json:"diagDoc"` Feature string `json:"feature"` MatchList string `json:"matchList"` Result string `json:"result"` Desc string `json:"desc"` Images []string `json:"images"` Ctime string `json:"ctime"` Utime string `json:"utime"` }
type LocationController ¶
type LocationController struct {
beego.Controller
}
func (*LocationController) AddLocationNavigate ¶
func (c *LocationController) AddLocationNavigate()
@Title post locationnavigate by locationid @Description post locationnavigate by locationid @Param title query string true "The title of location" @Param label query string true "The label of locationnavigate" @Param location query string true "The location of location" @Param address query string false "The address of location" @Param lat query string false "The lat of location" @Param lng query string false "The lng of location" @Param id path string true "The locationid of location" @Success 200 {object} models.CreateLocation @Failure 400 Invalid page supplied @Failure 404 pas not found @router /addlocationnavigate/:id [post] 添加一个定位
func (*LocationController) AddLocationPart ¶
func (c *LocationController) AddLocationPart()
@Title post location by projectid @Description post location by projectid @Param title query string true "The title of locationpart" @Param describe query string true "The describe of locationpart" @Param sort query string true "The sort of locationpart" @Param userid query string true "The userid of location" @Param id path string true "The projectid of project" @Success 200 {object} models.CreateLocation @Failure 400 Invalid page supplied @Failure 404 pas not found @router /addlocationpart/:id [post] 添加一个定位组
func (*LocationController) GetLocation ¶
func (c *LocationController) GetLocation()
@Title get location by userid @Description get location by userid @Param id path string true "The projectid of location" @Success 200 {object} models.GetLocationPage @Failure 400 Invalid page supplied @Failure 404 location not found @router /getlocation/:id [get] 根据项目id列出有关的location
func (*LocationController) GetLocationById ¶
func (c *LocationController) GetLocationById()
@Title get location by locationid @Description get location by locationid @Param id path string true "The id of location" @Success 200 {object} models.GetLocationPage @Failure 400 Invalid page supplied @Failure 404 location not found @router /getlocationbyid/:id [get] 根据locationid查出location
type LoginController ¶
type LoginController struct {
beego.Controller
}
CMSWX login API
func (*LoginController) Islogin ¶
func (c *LoginController) Islogin()
@Title get user login... @Description get login.. @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /islogin [get] login弹框输入用户名和密码后登陆提交
func (*LoginController) LoginPost ¶
func (c *LoginController) LoginPost()
@Title post user login... @Description post login.. @Param uname query string true "The name of user" @Param pwd query string true "The password of user" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /loginpost [post] login弹框输入用户名和密码后登陆提交//微信用户注册登录用register
func (*LoginController) SsoLogin ¶
func (c *LoginController) SsoLogin()
*********SSO单点登录JWT token @Title get sso login @Description get sso logintpl @Param service query string false "The service of login" @Success 200 {object} success @Failure 400 Invalid page supplied @Failure 404 articl not found @router /ssologin [get]
func (*LoginController) SsoLoginPost ¶
func (c *LoginController) SsoLoginPost()
@Title post sso login @Description post sso login data @Param login_name query string true "The name of user" @Param password query string true "The password of user" @Param service query string false "The service of location.href" @Success 200 {object} success @Failure 400 Invalid page supplied @Failure 404 articl not found @router /ssologinpost [post]
func (*LoginController) WxHasSession ¶
func (c *LoginController) WxHasSession()
@Title get wx haslogin @Description get wx usersession @Success 200 {object} success @Failure 400 Invalid page supplied @Failure 404 articl not found @router /wxhassession [get] 微信小程序根据小程序自身存储的session,检查ecms里的openid session是否有效
func (*LoginController) WxLogin ¶
func (c *LoginController) WxLogin()
@Title post wx login @Description post wx login @Param id path string true "The id of wx" @Param code path string true "The jscode of wxuser" @Success 200 {object} success @Failure 400 Invalid page supplied @Failure 404 articl not found @router /wxlogin/:id [get] 微信小程序根据openid自动匹配用户名后登录。访问微信服务器获取用户信息 如果 用户不存在,则提供openid给注册界面——wxregion
type MainController ¶
type MainController struct {
beego.Controller
}
func (*MainController) Autodesk ¶
func (c *MainController) Autodesk()
func (*MainController) Get ¶
func (c *MainController) Get()
func (*MainController) Gethydrowsdoc ¶
func (c *MainController) Gethydrowsdoc()
func (*MainController) Getmeritmsapi ¶
func (c *MainController) Getmeritmsapi()
func (*MainController) Getmeritmsdoc ¶
func (c *MainController) Getmeritmsdoc()
func (*MainController) IsSubmitAgain ¶
func (c *MainController) IsSubmitAgain(token string) bool
func (*MainController) PhotoSwipe ¶
func (c *MainController) PhotoSwipe()
@Title get photoswipe @Description get photoswipe @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /photoswipe [get]
func (*MainController) Postdata ¶
func (c *MainController) Postdata()
func (*MainController) Register ¶
func (c *MainController) Register()
func (*MainController) Slide ¶
func (c *MainController) Slide()
func (*MainController) Test ¶
func (c *MainController) Test()
func (*MainController) UserManage ¶
func (c *MainController) UserManage()
@Title get usermanage @Description get usermanage @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /usermanage [get]
type ManagerController ¶
type ManagerController struct {
MindocBaseController
}
func (*ManagerController) Comments ¶
func (c *ManagerController) Comments()
func (*ManagerController) Config ¶
func (c *ManagerController) Config()
func (*ManagerController) CreateToken ¶
func (c *ManagerController) CreateToken()
CreateToken 创建访问来令牌.
func (*ManagerController) DeleteComment ¶
func (c *ManagerController) DeleteComment()
DeleteComment 标记评论为已删除
func (*ManagerController) DeleteMember ¶
func (c *ManagerController) DeleteMember()
删除一个用户,并将该用户的所有信息转移到超级管理员上.
func (*ManagerController) Index ¶
func (c *ManagerController) Index()
func (*ManagerController) Prepare ¶
func (c *ManagerController) Prepare()
func (*ManagerController) Team ¶
func (c *ManagerController) Team()
func (*ManagerController) TeamChangeMemberRole ¶
func (c *ManagerController) TeamChangeMemberRole()
func (*ManagerController) TeamCreate ¶
func (c *ManagerController) TeamCreate()
func (*ManagerController) TeamDelete ¶
func (c *ManagerController) TeamDelete()
func (*ManagerController) TeamEdit ¶
func (c *ManagerController) TeamEdit()
func (*ManagerController) TeamMemberAdd ¶
func (c *ManagerController) TeamMemberAdd()
func (*ManagerController) TeamMemberDelete ¶
func (c *ManagerController) TeamMemberDelete()
func (*ManagerController) TeamMemberList ¶
func (c *ManagerController) TeamMemberList()
func (*ManagerController) UpdateMemberStatus ¶
func (c *ManagerController) UpdateMemberStatus()
更新用户状态.
type MathPayTable ¶
type MathPayTable struct { Rows []*models.PayMath `json:"rows"` Page int64 `json:"page"` Total int64 `json:"total"` //string或int64都行! }
后端分页的模板列表数据结构
type MindocBaseController ¶
type MindocBaseController struct { beego.Controller Member *models.Member Option map[string]string EnableAnonymous bool EnableDocumentHistory bool }
func (*MindocBaseController) BaseUrl ¶
func (c *MindocBaseController) BaseUrl() string
func (*MindocBaseController) CheckErrorResult ¶
func (c *MindocBaseController) CheckErrorResult(code int, err error)
func (*MindocBaseController) CheckJsonError ¶
func (c *MindocBaseController) CheckJsonError(code int, err error)
如果错误不为空,则响应错误信息到浏览器.
func (*MindocBaseController) ExecuteViewPathTemplate ¶
func (c *MindocBaseController) ExecuteViewPathTemplate(tplName string, data interface{}) (string, error)
ExecuteViewPathTemplate 执行指定的模板并返回执行结果.
func (*MindocBaseController) JsonResult ¶
func (c *MindocBaseController) JsonResult(errCode int, errMsg string, data ...interface{})
JsonResult 响应 json 结果
func (*MindocBaseController) SetMember ¶
func (c *MindocBaseController) SetMember(member models.Member)
SetMember 获取或设置当前登录用户信息,如果 MemberId 小于 0 则标识删除 Session
func (*MindocBaseController) ShowErrorPage ¶
func (c *MindocBaseController) ShowErrorPage(errCode int, errMsg string)
显示错误信息页面.
type MindocSearchController ¶
type MindocSearchController struct {
MindocBaseController
}
type OnlyController ¶
type OnlyController struct {
beego.Controller
}
func (*OnlyController) AddOnlyAttachment ¶
func (c *OnlyController) AddOnlyAttachment()
批量添加一对一模式 要避免同名覆盖的严重bug!!!!
func (*OnlyController) Addpermission ¶
func (c *OnlyController) Addpermission()
onlyoffice权限管理 添加用户和角色的权限 先删除这个文档id下所有permission,再添加新的。
func (*OnlyController) Conversion ¶
func (c *OnlyController) Conversion()
@Title post conversion doc @Description post doc to onlyoffice conversion @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /conversion [post]
func (*OnlyController) DeleteDoc ¶
func (c *OnlyController) DeleteDoc()
删除成果,包含成果里的附件。删除附件用attachment中的
func (*OnlyController) DownloadOnlyDoc ¶
func (c *OnlyController) DownloadOnlyDoc()
@Title post download onlydoc @Description post download onlydoc by id @Param id query string true "The id of onlydoc" @Param url query string true "The url of onlyofficeserver" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /downloadonlydoc [post] 文档管理页面下载最新的文档——先检查是否有人打开文档
func (*OnlyController) Getpermission ¶
func (c *OnlyController) Getpermission()
查询一个文档,哪些用户和角色拥有什么样的权限 用casbin的内置方法,不应该用查询数据库方法
func (*OnlyController) OfficeViewCallback ¶
func (c *OnlyController) OfficeViewCallback()
cms中返回值 没改历史版本问题
func (*OnlyController) UrltoCallback ¶
func (c *OnlyController) UrltoCallback()
协作页面的保存和回调 关闭浏览器标签后获取最新文档保存到文件夹
type Onlyoffice1 ¶
type Pathstruct ¶
type Pathstruct struct {
ParentPath string
}
type PayController ¶
type PayController struct {
beego.Controller
}
func (*PayController) AddApplyRecharge ¶
func (c *PayController) AddApplyRecharge()
@Title post user recharge @Description get user recharge @Param id path string true "The id of user" @Param amount query string true "The amount of money" @Success 200 {object} models.Recharge @Failure 400 Invalid page supplied @Failure 404 recharge not found @router /addapplyrecharge/:id [post] 用户添加充值申请方法-发送数据
func (*PayController) AddUserPays ¶
func (c *PayController) AddUserPays()
@Title post userpay by mathtempleid @Description post userpay by mathtempid @Param usertempleid query string true "The id of mathtemple" @Param amount query string true "The amout of pays" @Success 200 {object} models.Pay @Failure 400 Invalid page supplied @Failure 404 pas not found @router /adduserpays [post] 添加用户id打赏一个mathtemple记录
func (*PayController) AddUserRecharge ¶
func (c *PayController) AddUserRecharge()
@Title post users recharge @Description get users recharge @Param id path string true "The id of recharge" @Param amount query string true "The amount of money" @Success 200 {object} models.Recharge @Failure 400 Invalid page supplied @Failure 404 recharge not found @router /adduserrecharge/:id [post] 管理员同意后发送充值数据-修改数值
func (*PayController) AddWxUserPays ¶
func (c *PayController) AddWxUserPays()
@Title post wx userpay by articleid @Description post userpay by articleid @Param articleid query string true "The id of article" @Param amount query string true "The amout of pays" @Success 200 {object} models.AddUserPays @Failure 400 Invalid page supplied @Failure 404 pas not found @router /addwxuserpays [post] 用户id打赏一个文章id
func (*PayController) ApplyRecharge ¶
func (c *PayController) ApplyRecharge()
@Title get user recharge @Description get user recharge @Success 200 {object} models.Recharge @Failure 400 Invalid page supplied @Failure 404 recharge not found @router /applyrecharge [get] 用户申请充值页面
func (*PayController) GetApplyRecharge ¶
func (c *PayController) GetApplyRecharge()
@Title get user recharge @Description get user recharge @Success 200 {object} models.Recharge @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getapplyrecharge [get] 管理员查看所有用户的充值申请页面
func (*PayController) GetApplyRechargeData ¶
func (c *PayController) GetApplyRechargeData()
@Title get user rechargedata @Description get user rechargedata @Param page query string false "The page of recharges" @Param limit query string false "The size of recharges" @Success 200 {object} models.Recharge @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getapplyrechargedata [get] 管理员查看所有用户的充值申请数据
func (*PayController) GetPay ¶
func (c *PayController) GetPay()
@Title get pay list @Description get pay by page @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getpay [get] 根据userid获得花费和收入记录——作废
func (*PayController) GetUserGetAppreciations ¶
func (c *PayController) GetUserGetAppreciations()
@Title get userappreciations list @Description get userappreciation by page @Param page query string true "The page for myappreciation list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getusergetappreciations [get] 根据用户id获得所有赞赏记录
func (*PayController) GetUserMoney ¶
func (c *PayController) GetUserMoney()
@Title get user money @Description get user money @Success 200 {object} models.GetUserMoney @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getusermoney [get] 根据用户id获得账户余额
func (*PayController) GetUserPay ¶
func (c *PayController) GetUserPay()
@Title get pay list @Description get pay by page @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getuserpay [get] 显示用户收支记录
func (*PayController) GetUserPayAppreciations ¶
func (c *PayController) GetUserPayAppreciations()
@Title get userappreciations list @Description get userappreciation by page @Param page query string true "The page for myappreciation list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getuserpayappreciations [get] 根据用户id查询所有花费记录,即查询用户支出记录
func (*PayController) GetUserPaylist ¶
func (c *PayController) GetUserPaylist()
@Title get userpays list @Description get userpay by page @Param page query string true "The page for mymoney list" @Param page query string false "The page of projproducts" @Param limit query string false "The size of page" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getuserpaylist [get] 根据用户id获得所有收支记录
func (*PayController) GetWxPay ¶
func (c *PayController) GetWxPay()
@Title get wx pay list @Description get pay by page @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxpay [get] 根据pay id获得一条记录
func (*PayController) GetWxUserGetAppreciations ¶
func (c *PayController) GetWxUserGetAppreciations()
@Title get wx userappreciations list @Description get userappreciation by page @Param page query string true "The page for myappreciation list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxusergetappreciations [get] 根据用户id获得所有赞赏记录
func (*PayController) GetWxUserMoney ¶
func (c *PayController) GetWxUserMoney()
@Title get wx user money @Description get user money @Success 200 {object} models.GetUserMoney @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxusermoney [get] 根据用户id获得账户余额
func (*PayController) GetWxUserPayAppreciations ¶
func (c *PayController) GetWxUserPayAppreciations()
@Title get wx userappreciations list @Description get userappreciation by page @Param page query string true "The page for myappreciation list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxuserpayappreciations [get] 根据用户id查询所有花费记录,即查询用户支出记录
func (*PayController) GetWxUserPays ¶
func (c *PayController) GetWxUserPays()
@Title get wx userpays list @Description get userpay by page @Param page query string true "The page for mymoney list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxuserpays [get] 根据用户id获得所有收支记录
type PdfCpuController ¶
type PdfCpuController struct {
beego.Controller
}
CMSADMIN API
func (*PdfCpuController) AddWatermarks ¶
func (c *PdfCpuController) AddWatermarks()
@Title post signature to pdf @Description post signature to pdf @Param id path string true "The id of pdf" @Param pageNumber query string false "The pageNumber of pdf" @Param numPages query string true "The numPages of pdf" @Param offsetdx query string false "The offsetdx of signature" @Param offsetdy query string false "The offsetdy of signature" @Param scale query string false "The scale of signature" @Param image query string true "The base64 image of signature" @Success 200 {object} models.AddSignature @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /addwatermarks/:id [post]
func (*PdfCpuController) OnlyPdf ¶
func (c *PdfCpuController) OnlyPdf()
@Title get only pdf @Description get only pdf @Param id path string true "The id of pdf" @Success 200 {object} models.GetOnlyPdf @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /onlypdf/:id [get]
func (*PdfCpuController) Test ¶
func (c *PdfCpuController) Test()
@Title get test @Description get test @Param id path string true "The id of test" @Success 200 {object} models.Gettest @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /test/:id [get]
type PreviewConfig ¶
type ProdController ¶
type ProdController struct {
beego.Controller
}
func (*ProdController) AddProduct ¶
func (c *ProdController) AddProduct()
向某个侧栏id下添加成果——这个没用,用attachment里的addattachment
func (*ProdController) DeleteProduct ¶
func (c *ProdController) DeleteProduct()
删除成果,包含成果里的附件。删除附件用attachment中的
func (*ProdController) GetProducts ¶
func (c *ProdController) GetProducts()
@Title get projproducts... @Description get projproducts.. @Param id path string true "The id of projproducts" @Param searchText query string false "The searchText of projproducts" @Param page query string false "The page of projproducts" @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 /project/products/:id [get] 取得某个侧栏id下的成果给table 这里增加项目同步ip的获得成果,设置连接超时。 专门做一个接口provideproducts,由
func (*ProdController) GetProjProd ¶
func (c *ProdController) GetProjProd()
根据项目侧栏id查看这个id下的成果页面,table中的数据填充用GetProducts 任何一级目录下都可以放成果
func (*ProdController) ProvidesynchProducts ¶
func (c *ProdController) ProvidesynchProducts()
对外提供成果数据接口
type ProductLink ¶
type ProductLink struct { Id int64 Code string Title string Label string Relevancy []RelevancyProj Uid int64 Principal string ProjectId int64 Content string Created time.Time Updated time.Time Views int64 Pdflink []PdfLink Attachmentlink []AttachmentLink Articlecontent []ArticleContent DocState flow.DocState ProdDoc models.ProductDocument }
type ProfController ¶
type ProfController struct {
beego.Controller
}
func (*ProfController) Get ¶
func (this *ProfController) Get()
type ProjController ¶
type ProjController struct {
beego.Controller
}
func (*ProjController) Calendar ¶
func (c *ProjController) Calendar()
返回日历json数据 如果是管理员,则显示全部,非管理员,显示公开
func (*ProjController) DeleteProject ¶
func (c *ProjController) DeleteProject()
根据id删除proj 后台删除目录,代替DeleteProjectCate
func (*ProjController) DeleteProjectCate ¶
func (c *ProjController) DeleteProjectCate()
后台删除项目目录节点——这个用删除项目代替了。 删除多节点 删除多节点的子节点 作废了,用DeleteProject代替了!!!!
func (*ProjController) GetCalendar ¶
func (c *ProjController) GetCalendar()
func (*ProjController) GetProjCate ¶
func (c *ProjController) GetProjCate()
根据id懒加载项目下级目录——上面那个是显示第一级和第二级目录
func (*ProjController) GetProjProd ¶
func (c *ProjController) GetProjProd()
根据项目侧栏id查看这个id下的成果,不含子目录中的成果 任何一级目录下都可以放成果 这个作废——以product中的GetProjProd()
func (*ProjController) GetProjProducts ¶
func (c *ProjController) GetProjProducts()
点击项目名称,根据id查看项目下所有成果 这个只是页面。表格内的数据填充用product controllers里的getprojproducts方法
func (*ProjController) GetProject ¶
func (c *ProjController) GetProject()
分页提供给项目列表页的table中json数据 根据id查看项目,查出项目当前级和下一级目录 点击第二级后,用下面的懒加载目录
func (*ProjController) GetProjectCate ¶
func (c *ProjController) GetProjectCate()
后台根据id查出项目目录,以便进行编辑
func (*ProjController) GetProjectTree ¶
func (c *ProjController) GetProjectTree()
@Title get cms projecttree... @Description get projecttree.. @Param id path string true "The id of projecttree" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /getprojecttree/:id [get] 根据id查看项目,查出项目当前级和下一级目录 点击第二级后,用下面的懒加载目录
func (*ProjController) GetProjects ¶
func (c *ProjController) GetProjects()
@Title get cms projectlist... @Description get projectlist.. @Param projectid query string false "The id of project" @Param pageNo query string false "The page of projectlist" @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 /getprojects [get] 分页提供给项目列表页的table中json数据 http://127.0.0.1/v1/project/getprojects?limit=15&pageNo=1 微信小程序里要改id等为小写 根据用户角色权限获取项目列表
func (*ProjController) GetWxProjects ¶
func (c *ProjController) GetWxProjects()
@Title get wx projectlist... @Description get projectlist.. @Param projectid query string false "The id of project" @Param pageNo query string false "The page of projectlist" @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 /getwxprojects [get] 取出所有项目列表,table中json数据 http://127.0.0.1/v1/project/getwxprojects 根据用户角色权限获取项目列表
func (*ProjController) ProjectUserRole ¶
func (c *ProjController) ProjectUserRole()
@Title get project user permission @Description get project user permission @Param pid query string true "The id of project" @Success 200 {object} models.GetProjectPage @Failure 400 Invalid page supplied @Failure 404 project not found @router /projectuserrole [get] 判断登录用户是管理员还是isme
func (*ProjController) QuickAddWxProjTemplet ¶
func (c *ProjController) QuickAddWxProjTemplet()
@Title post wx quickaddproject... @Description post quickaddproject.. @Param projectcode query string true "The projectcode of project" @Param projecttitle query string true "The projecttitle of project" @Param tempprojid query string true "The tempprojid of project" @Param istemppermission query string false "The permission of project" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /quickaddwxproject [post] 根据项目模板添加项目
func (*ProjController) UpdateProject ¶
func (c *ProjController) UpdateProject()
管理员或本人修改项目名称、负责人等, 没有修改硬盘目录,需要手动修改!!
func (*ProjController) UpdateProjectCate ¶
func (c *ProjController) UpdateProjectCate()
后台修改项目目录节点名称
func (*ProjController) UploadImage ¶
func (c *ProjController) UploadImage()
应该将日历改为froala,那么这个就可以淘汰了。
func (*ProjController) UserProjectPermission ¶
func (c *ProjController) UserProjectPermission()
@Title get user project editor tree @Description get user project editor tree @Param pid query string true "The id of project" @Success 200 {object} models.GetProjectPage @Failure 400 Invalid page supplied @Failure 404 project not found @router /userprojectpermission [get] 用户跳转到自己编辑项目目录页面
func (*ProjController) UserpProjectEditorTree ¶
func (c *ProjController) UserpProjectEditorTree()
@Title get user project editor tree @Description get user project editor tree @Param pid query string true "The id of project" @Success 200 {object} models.GetProjectPage @Failure 400 Invalid page supplied @Failure 404 project not found @router /userprojecteditortree [get] 用户跳转到自己编辑项目目录页面
type ProjGantController ¶
type ProjGantController struct {
beego.Controller
}
func (*ProjGantController) DeleteProjGant ¶
func (c *ProjGantController) DeleteProjGant()
根据id删除proj 后台删除目录,
func (*ProjGantController) GetProjGant ¶
func (c *ProjGantController) GetProjGant()
根据项目侧栏id查看这个id下的成果,不含子目录中的成果 任何一级目录下都可以放成果 这个作废——以product中的GetProducts
func (*ProjGantController) GetProjectGant ¶
func (c *ProjGantController) GetProjectGant()
根据id查看项目,查出项目目录
func (*ProjGantController) ImportProjGant ¶
func (c *ProjGantController) ImportProjGant()
导入甘特数据 上传excel文件,导入到数据库
func (*ProjGantController) UpdateProjGant ¶
func (c *ProjGantController) UpdateProjGant()
修改项目名称、负责人等,
type RangeHeader ¶
RangeHeader defines the part of file to download.
func (*RangeHeader) String ¶
func (h *RangeHeader) String() string
type RegistController ¶
type RegistController struct {
beego.Controller
}
func (*RegistController) CheckUname ¶
func (this *RegistController) CheckUname()
func (*RegistController) Get ¶
func (this *RegistController) Get()
func (*RegistController) GetUname1 ¶
func (this *RegistController) GetUname1()
get方法,用于x-editable的select2方法
func (*RegistController) RegistErr ¶
func (this *RegistController) RegistErr()
func (*RegistController) WxRegion ¶
func (c *RegistController) WxRegion()
@Title post wx region @Description post wx region @Param uname query string true "The username of user" @Param password query string true "The password of account" @Param code query string true "The code of wx" @Param app_version query string true "The app_version of wx" @Success 200 {object} models.SaveUser @Failure 400 Invalid page supplied @Failure 404 user not found @router /wxregion [post] 将用户名和密码存入数据表,openid也存入数据表
func (*RegistController) WxRegist ¶
func (c *RegistController) WxRegist()
@Title post wx regist @Description post wx regist @Param uname query string true "The username of ueser" @Param password query string true "The password of account" @Param code query string true "The code of wx" @Param app_version query string true "The app_version of wx" @Success 200 {object} models.SaveUser @Failure 400 Invalid page supplied @Failure 404 user not found @router /wxregist [post] 微信小程序根据用户输入的用户名和密码后,将openid存到用户名对应的数据表中, 方便下次自动根据openid匹配用户后自动登录wxlogin 这个不是真正的注册。另见WxRegion()
type RelevancyProj ¶
type ReplyController ¶
type ReplyController struct {
beego.Controller
}
func (*ReplyController) AddWxLike ¶
func (c *ReplyController) AddWxLike()
@Title post wx like by articleId @Description post like by articleId @Param id query string true "The id of article" @Success 200 {object} models.AddTopicLike @Failure 400 Invalid page supplied @Failure 404 article not found @router /addwxlike/:id [post] 添加文章点赞
func (*ReplyController) AddWxRelease ¶
func (c *ReplyController) AddWxRelease()
@Title post wx release by articleId @Description post release by articleId @Param content query string true "The content of release" @Param app_version query string false "the app_version of wx" @Param avatar query string false "The avatar of release" @Param username query string false "The username of release" @Param publish_time query string false "The time of release" @Success 200 {object} models.AddTopicReply @Failure 400 Invalid page supplied @Failure 404 article not found @router /addwxrelease/:id [post] 添加文章评论
func (*ReplyController) DeleteWxRelease ¶
func (c *ReplyController) DeleteWxRelease()
@Title delete wx release by releaseid @Description delete release by releaseid @Param id query string true "The id of release" @Success 200 {object} models.DeleteTopicReply @Failure 400 Invalid page supplied @Failure 404 article not found @router /deletewxrelease/:id [post] 删除文章评论
type Resourcesvalue ¶
type RoleController ¶
type RoleController struct {
beego.Controller
}
func (*RoleController) Delete ¶
func (c *RoleController) Delete()
swagger:operation POST /v1/auth/role/delete RoleController RoleController
删除角色信息
删除某个指定域中的角色信息
--- produces: - application/json - application/xml - text/xml - text/html parameters:
- name: domain_id in: query description: domain code number required: true type: string format:
responses:
'200': description: success
func (*RoleController) GetRolePermission ¶
func (c *RoleController) GetRolePermission()
查询角色所具有的权限对应的项目目录
func (*RoleController) RolePermission ¶
func (c *RoleController) RolePermission()
给角色赋项目目录的权限 先删除角色对于这个项目的所有权限
func (*RoleController) Test ¶
func (c *RoleController) Test()
func (*RoleController) Update ¶
func (c *RoleController) Update()
swagger:operation PUT /v1/auth/role/put RoleController RoleController
更新角色信息
更新某个域中的角色信息,角色编码不能更新
--- produces: - application/json - application/xml - text/xml - text/html parameters:
- name: domain_id in: query description: domain code number required: true type: string format:
responses:
'200': description: success
func (*RoleController) UserRole ¶
func (c *RoleController) UserRole()
AddPolicy(sec string, ptype string, rule []string) 添加用户角色 先删除用户所有角色
type RolePermission ¶
type Rolepermission ¶
type Rolepermission struct { Id int64 Name string `json:"name"` Rolenumber string Permission string `json:"role"` }
权限表提交的table中json数据解析成struct
type Rolesvalue ¶
type SearchController ¶
type SearchController struct {
beego.Controller
}
func (*SearchController) GetWxPdfList ¶
func (c *SearchController) GetWxPdfList()
@Title get wx pdf list @Description get pdf by page @Param keyword query string false "The keyword of pdf" @Param projectid query string false "The projectid of pdf" @Param searchpage query string true "The page for pdf list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /getwxpdflist [get] 小程序取得某个项目目录下的所有pdf,分页 结合搜索来用
func (*SearchController) SearchProjProducts ¶
func (c *SearchController) SearchProjProducts()
在某个项目里搜索成果:全文搜索,article全文,编号,名称,关键字,作者……
func (*SearchController) SearchWxDrawings ¶
func (c *SearchController) SearchWxDrawings()
@Title get wx drawings list @Description get drawings by page @Param keyword query string false "The keyword of drawings" @Param projectid query string false "The projectid of drawings" @Param searchpage query string true "The page for drawings list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 drawings not found @router /searchwxdrawings [get] 小程序取得所有图纸列表,分页_plus
func (*SearchController) SearchWxProducts ¶
func (c *SearchController) SearchWxProducts()
@Title get wx drawings list @Description get drawings by page @Param keyword query string false "The keyword of drawings" @Param projectid query string false "The projectid of drawings" @Param searchpage query string true "The page for drawings list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 drawings not found @router /searchwxproducts [get] 小程序取得所有图纸列表,分页_plus
type SearchResults ¶
SearchResults wraps the Elasticsearch search response.
type ServiceValidateController ¶
type ServiceValidateController struct {
beego.Controller
}
func (*ServiceValidateController) Get ¶
func (c *ServiceValidateController) Get()
type SettingController ¶
type SettingController struct {
MindocBaseController
}
func (*SettingController) Index ¶
func (c *SettingController) Index()
func (*SettingController) Password ¶
func (c *SettingController) Password()
type ShareController ¶
type ShareController struct { beego.Controller }
func (*ShareController) Browse ¶
func (c *ShareController) Browse()
@Title get a share @Description get a share @Param shareUuid query string true "The shareUuid of share" @Param code query string false "The code of share" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /browse [get]
func (*ShareController) Create ¶
func (c *ShareController) Create()
@Title post create a new share @Description post create a new share @Param matterUuids query string true "The matterUuids of share" @Param expireInfinity query bool true "The xpireInfinity of share" @Param expireTime query string true "The expireTime of share" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /create [post]
func (*ShareController) Detail ¶
func (c *ShareController) Detail()
@Title get a share @Description get a share @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /detail/:id [get]
func (*ShareController) Download ¶
func (c *ShareController) Download()
@Title download a share @Description download a share @Param shareUuid query string true "The shareUuid of share" @Param code query string false "The code of share" @Param id query string true "The id of attachment" @Success 200 {object} models.Attachment @Failure 400 Invalid page supplied @Failure 404 articl not found @router /download [post]
func (*ShareController) DownloadZip ¶
func (c *ShareController) DownloadZip()
@Title download a share @Description download a share @Param shareUuid query string true "The shareUuid of share" @Param code query string false "The code of share" @Success 200 {object} models.Attachment @Failure 400 Invalid page supplied @Failure 404 articl not found @router /downloadzip [post]
type StandardController ¶
type StandardController struct {
beego.Controller
}
func (*StandardController) DownloadStandard ¶
func (c *StandardController) DownloadStandard()
@Title dowload standardpdf @Description get standardpdf by id @Param id path string true "The id of standardpdf" @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /downloadstandard/:id [get] 文件流方式下载pdf规范
func (*StandardController) ImportExcel ¶
func (c *StandardController) ImportExcel()
上传excel文件,导入到规范数据库,用于批量导入规范文件
func (*StandardController) ImportLibrary ¶
func (c *StandardController) ImportLibrary()
上传excel文件,导入到有效版本数据库
func (*StandardController) Index ¶
func (c *StandardController) Index()
func (*StandardController) Search ¶
func (c *StandardController) Search()
@Title get standardlist @Description get standardlist @Param searchText query string false "The searchText of standard" @Param pageNo query string true "The page for standard list" @Param limit query string true "The limit of page for standard list" @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /search [get] 根据用户输入的关键字,查询规范 搜索规范或者图集的名称或编号 20170704:linumber没有用。因为用category+编号+年份比较好
func (*StandardController) SearchWxStandards ¶
func (c *StandardController) SearchWxStandards()
@Title get wx standards list @Description get standards by page @Param keyword query string true "The keyword of standards" @Param searchpage query string true "The page for drawings list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 standards not found @router /searchwxstandards [get] 小程序取得规范列表,分页_plus
func (*StandardController) StandardPdf ¶
func (c *StandardController) StandardPdf()
@Title get standardpdf @Description get standardpdf @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /standardpdf [get] 手机端使用的下载方式
func (*StandardController) Standard_one_addbaidu ¶
func (c *StandardController) Standard_one_addbaidu()
func (*StandardController) Upload ¶
func (c *StandardController) Upload()
@Title post bootstrapfileinput @Description post file by BootstrapFileInput @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 page not found @router /standard/upload [post] 上传
func (*StandardController) UploadStandard ¶
func (c *StandardController) UploadStandard()
@Title upload file to standard html @Description get upload file to standard html @Success 200 {object} models.Elastic @Failure 400 Invalid page supplied @Failure 404 Page not found @router /uploadstandard [get] 进入上传主页面
func (*StandardController) WxStandardPdf ¶
func (c *StandardController) WxStandardPdf()
@Title dowload wx standardpdf @Description get wx standardpdf by id @Param id path string true "The id of standardpdf" @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /wxstandardpdf/:id [get] 小程序查询规范
type StandardTableserver ¶
type StandardTableserver struct { Rows []Standardmore `json:"rows"` Page int `json:"page"` Total int64 `json:"total"` //string或int64都行! }
后端分页的数据结构
type Standardmore ¶
type Standardmore struct { Id int64 Number string Title string NumTitle string Uname string //换成用户名 CategoryName string //换成规范类别GB、DL…… Content string `orm:"sie(5000)"` Route string Link string ActIndex string Created time.Time `orm:"index","auto_now_add;type(datetime)"` Updated time.Time `orm:"index","auto_now;type(datetime)"` Views int64 `orm:"index"` LibraryNumber string //规范有效版本库中的编号 LibraryTitle string LiNumber string //完整编号 }
type SuccessController ¶
type SuccessController struct {
beego.Controller
}
func (*SuccessController) Get ¶
func (c *SuccessController) Get()
type Tableserver ¶
type Tableserver struct { Rows []Project1 `json:"rows"` Page int64 `json:"page"` Total int64 `json:"total"` //string或int64都行! }
后端分页的数据结构
type Task ¶
type Task struct { Id int64 `json:"id"` Status string `json:"status"` Level int `json:"level"` Code string `json:"code"` Name string `json:"name"` StartIsMilestone bool `json:"startIsMilestone"` Start int64 `json:"start"` EndIsMilestone bool `json:"endIsMilestone"` End int64 `json:"end"` Duration int `json:"duration"` Progress int `json:"progress"` Depends string `json:"depends"` HasChild bool `json:"hasChild"` Description string `json:"description"` Relevance int `json:"relevance"` Type string `json:"type"` TypeId string `json:"typeId"` CanWrite bool `json:"canWrite"` Collapsed bool `json:"collapsed"` Assigs []Assigsvalue `json:"assigs"` }
type TemplateController ¶
type TemplateController struct { MindocBaseController BookId int }
type TodoController ¶
type TodoController struct {
beego.Controller
}
CMSTODO API
func (*TodoController) Create ¶
func (c *TodoController) Create()
@Title post todo @Description post todo @Param name query string true "The name for todo" @Param projectid query string true "The projectid of todo" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /create [post]
func (*TodoController) DeleteTodo ¶
func (c *TodoController) DeleteTodo()
@Title delete todolist @Description delete tolist @Param todoid query string false "The id of todo" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /deletetodo [post] 删除待办
func (*TodoController) GetTodo ¶
func (c *TodoController) GetTodo()
@Title get todolist @Description get tolist @Param projectid query string true "The projectid of todo" @Param page query string false "The page of todo" @Param limit query string false "The size of todo" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /gettodo [get] 取出所有未完成待办
func (*TodoController) UpdateTodo ¶
func (c *TodoController) UpdateTodo()
@Title update todolist @Description update tolist @Param todoid query string false "The id of todo" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /updatetodo [post] 更新待办状态
type UeditorController ¶
type UeditorController struct {
beego.Controller
}
func (*UeditorController) ControllerUE ¶
func (c *UeditorController) ControllerUE()
type UploadimageUE ¶
type UploadimageUE struct {
// contains filtered or unexported fields
}
type UploadimgFroala ¶
type UploadimgFroala struct {
// contains filtered or unexported fields
}
type UserController ¶
type UserController struct {
beego.Controller
}
func (*UserController) AddUser ¶
func (c *UserController) AddUser()
@Title add user @Description add user @Param username query string false "The name of user" @Param nickname query string false "The nickname of user" @Param password query string false "The password of user" @Param email query string false "The email of user" @Param department query string false "The department of user" @Param secoffice query string false "The secoffice of user" @Param ip query string false "The ip of user" @Param port query string false "The port of user" @Param status query string false "The status of user" @Param role query string false "The role of user" @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /adduser [post] 添加用户
func (*UserController) AddWxUser ¶
func (c *UserController) AddWxUser()
@Title post wx user @Description post user @Param uname query string true "The username of user" @Param nickname query string true "The nickname of user" @Param password query string true "The Password of user" @Param email query string false "The email of user" @Param department query string false "The department of user" @Param secoffice query string false "The secoffice of user" @Success 200 {object} models.AddUser @Failure 400 Invalid page supplied @Failure 404 user not found @router /addwxuser [post] 小程序添加用户
func (*UserController) DeleteUser ¶
func (c *UserController) DeleteUser()
@Title delete user @Description delete user @Param ids query string false "The ids of user" @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /deleteuser [post] 删除用户
func (*UserController) GetUserByUsername ¶
func (c *UserController) GetUserByUsername()
@Title get user @Description get user @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /getuserbyusername [get] 用户查看自己,修改密码等
func (*UserController) ImportUsers ¶
func (c *UserController) ImportUsers()
@Title import users @Description import users @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /importusers [post] 上传excel文件,导入到数据库 引用来自category的查看成果类型里的成果
func (*UserController) Index ¶
func (c *UserController) Index()
func (*UserController) Roleerr ¶
func (this *UserController) Roleerr()
func (*UserController) UpdateUser ¶
func (c *UserController) UpdateUser()
@Title update user @Description add user @Param pk query string false "The pk of user" @Param name query string false "The name of user" @Param value query string false "The value of user" @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /updateuser [post] 在线修改保存某个字段
func (*UserController) UpdateWxUser ¶
func (c *UserController) UpdateWxUser()
@Title post wx userpassword by uid @Description post user password by uid @Param uid query string true "The id of user" @Param oldpass query string true "The oldPassword of user" @Param newpass query string true "The newpassword of user" @Param id path string true "The id of wx" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /updatewxuser [post] 小程序修改用户密码
func (*UserController) User ¶
func (c *UserController) User()
@Title get user @Description get user by userid @Param id path string false "The id of user" @Param role query string false "The role of user" @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /user/:id [get] 如果不带id则取到所有用户 如果带id,则取一个用户
func (*UserController) Usermyself ¶
func (c *UserController) Usermyself()
@Title get usermyself @Description get usermyself @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /usermyself [get] 用户个人数据,填充table,以便编辑
type Userselect ¶
type VideoController ¶
type VideoController struct {
beego.Controller
}
CMSVideo API
func (*VideoController) GetUserVideo ¶
func (c *VideoController) GetUserVideo()
@Title get uservideolist @Description get uservideolist @Param id path string true "The id of project" @Param searchText query string false "The searchText of uservideo" @Param pageNo query string true "The page for uservideo list" @Param limit query string true "The limit of page for uservideo list" @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /getuservideo/:id [get] 根据用户id获得借阅记录,如果是admin角色,则查询全部
type WikiController ¶
type WikiController struct {
beego.Controller
}
func (*WikiController) Add ¶
func (c *WikiController) Add()
func (*WikiController) DeleteAttachment ¶
func (c *WikiController) DeleteAttachment()
删除文章中的附件,保持页面不跳转怎么办?
func (*WikiController) Get ¶
func (c *WikiController) Get()
func (*WikiController) Post ¶
func (c *WikiController) Post()
func (*WikiController) View ¶
func (c *WikiController) View()
func (*WikiController) Wiki_many_addbaidu ¶
func (c *WikiController) Wiki_many_addbaidu()
type WordTree ¶
type WordTree struct { Id int `json:"id"` Heading string `json:"text"` Level int `json:"level"` //分级目录,这里其实没什么用了 WordTrees []*WordTree `json:"nodes"` }
树状目录数据——如何定位到word的位置呢
type WxArticle ¶
type WxArticle struct { Id int64 `json:"id",form:"-"` Title string `json:"title"` Subtext string `json:"subtext",orm:"sie(20)"` Author string `json:"author"` // UserId in64 `json:"userid"` AppreciationUrl string `json:"appreciationurl"` //作者赞赏码 IsArticleMe bool `json:"isArticleMe"` ImgUrl string `json:"imgUrl"` ImgUrls []Img `json:"imgUrls"` Content string `json:"html",orm:"sie(5000)"` LeassonType int `json:"leassonType"` ProductId int64 `orm:"null"` Views int64 `orm:"default(0)"` Created time.Time `orm:"auto_now_add;type(datetime)"` Updated string `json:"time",orm:"auto_now_add;type(datetime)"` Word string `json:"word",orm:"sie(5000)"` LikeNum int `json:"likeNum"` Liked bool `json:"liked"` Comment []Comment `json:"comment"` CommentNum int `json:"commentNum"` DocState flow.DocState DocNotification flow.Notification ProdDoc models.ProductDocument }
type WxArticleFlowDetail ¶
type WxArticleFlowDetail struct { Id int64 `json:"id",form:"-"` Title string `json:"title"` Subtext string `json:"subtext",orm:"sie(20)"` Author string `json:"author"` // UserId in64 `json:"userid"` AppreciationUrl string `json:"appreciationurl"` //作者赞赏码 IsArticleMe bool `json:"isArticleMe"` ImgUrl string `json:"imgUrl"` ImgUrls []Img `json:"imgUrls"` Content string `json:"html",orm:"sie(5000)"` LeassonType int `json:"leassonType"` ProductId int64 `orm:"null"` Views int64 `orm:"default(0)"` Created time.Time `orm:"auto_now_add;type(datetime)"` Updated string `json:"time",orm:"auto_now_add;type(datetime)"` Word string `json:"word",orm:"sie(5000)"` LikeNum int `json:"likeNum"` Liked bool `json:"liked"` Comment []Comment `json:"comment"` CommentNum int `json:"commentNum"` Document *flow.Document Action []flow.DocAction History []*flow.DocEventsHistory Text string //这里增加一个映射product Product models.Product }
微信小程序里质量流程的单个具体文章
type WxFinance ¶
type WxFinance struct { Id int64 `json:"id",form:"-"` // Title string `orm:"sie(20)"` Financedate string `orm:"sie(20)"` Content string `json:"html",orm:"sie(5000)"` ProjectId int64 `orm:"null"` UserId int64 `orm:"null"` Amount int `json:"amount"` Consider bool `json:"consider"` IsArticleMe bool `json:"isArticleMe"` Views int64 `orm:"default(0)"` Created time.Time `orm:"auto_now_add;type(datetime)"` Updated time.Time `orm:"auto_now_add;type(datetime)"` }
Source Files ¶
- AccountController.go
- BaseController.go
- BlogController.go
- BookController.go
- BookMemberController.go
- DocumentController.go
- ErrorController.go
- HomeController.go
- ItemsetsController.go
- LabelController.go
- ManagerController.go
- PdfCpu.go
- SearchController.go
- SettingController.go
- TemplateController.go
- admin.go
- adminlog.go
- article.go
- attachment.go
- base.go
- bbs.go
- blue_share_controller.go
- bootstrapfileinput.go
- business_trip.go
- cart.go
- chat.go
- checkin.go
- comment.go
- defs.go
- diary.go
- elasticsearch.go
- error.go
- finance.go
- flow.go
- flv.go
- froala.go
- index.go
- legislation.go
- location.go
- login.go
- main.go
- onlyoffice.go
- pay.go
- product.go
- prof.go
- project.go
- projgant.go
- record.go
- regist.go
- reply.go
- roleControllers.go
- roleResourceController.go
- search.go
- security.go
- standard.go
- todo.go
- ueditor.go
- user.go
- userRolesController.go
- video.go
- wiki.go
Directories ¶
Path | Synopsis |
---|---|
tool
|
|
来自blueeye
|
来自blueeye |
wkhtmltopdf
Package wkhtmltopdf contains wrappers around the wkhtmltopdf commandline tool
|
Package wkhtmltopdf contains wrappers around the wkhtmltopdf commandline tool |