Versions in this module Expand all Collapse all v0 v0.0.3 Mar 1, 2020 v0.0.2 Feb 23, 2020 Changes in this version + var Iprolemaps map[string]int + func AESDecrypt(cipherBytes, key, iv []byte) ([]byte, error) + func Authorizer(ctx *context.Context) (uname, role string, uid int64) + func Createip() + func DecodeWeAppUserInfo(encryptedData string, sessionKey string, iv string) (string, error) + func FileSize(file string) (int64, error) + func GetProjTitleNumber(id int64) (ProjectNumber, ProjectName, DesignStage, Section string, err error) + func GetUrlPath(id int64) (Url, DiskDirectory string, err error) + func Getiprole(ip string) (role int) + func ImageFilter(ctx *context.Context) + func PKCS7UnPadding(dst []byte, blockSize int) []byte + func Record(filenameWithSuffix string) (...) + 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 UploadImg(w http.ResponseWriter, r *http.Request) + type AchDepart struct + Id int64 + Level string + Secoffice []AchSecoffice + Selectable bool + Tags [1]int + Title string + type AchEmployee struct + Href string + Id int64 + Level string + Nickname string + Pid int64 + type AchSecoffice struct + Employee []AchEmployee + Href string + Id int64 + Level string + Pid int64 + Selectable bool + Tags [1]string + Title string + type ActInfos struct + Infos []infos + Nums int + type Actions struct + Actions []*flow.DocAction + DocTypeID flow.DocTypeID + type AdminController struct + 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) Ipsegment() + func (c *AdminController) MeritBasic() + func (c *AdminController) ModifyCatalog() + func (c *AdminController) ModifyLink() + 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 struct + func (c *AdminLogController) ErrLog() + func (c *AdminLogController) InfoLog() + type ArticleContent struct + Content string + Created time.Time + Id int64 + Link string + ProductId int64 + Subtext string + Title string + Updated time.Time + type ArticleController struct + func (c *ArticleController) AddArticle() + func (c *ArticleController) AddProdArticle() + func (c *ArticleController) AddWxArticle() + 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) GetWxArticle() + func (c *ArticleController) GetWxArticles() + func (c *ArticleController) GetWxArticless() + func (c *ArticleController) GetsynchArticles() + func (c *ArticleController) ModifyArticle() + func (c *ArticleController) ProvideArticles() + func (c *ArticleController) UpdateArticle() + func (c *ArticleController) UpdateWxEditorArticle() + type Assigsvalue struct + Effort int64 + Id string + ResourceId string + RoleId string + type AttachController struct + func (c *AttachController) AddAttachment() + func (c *AttachController) AddAttachment2() + 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) GetsynchAttachments() + func (c *AttachController) GetsynchPdfs() + func (c *AttachController) NewDwg() + func (c *AttachController) ProvideAttachments() + func (c *AttachController) ProvidePdfs() + func (c *AttachController) SaveDwgfile() + func (c *AttachController) UpdateAttachment() + type AttachmentLink struct + Created time.Time + Downloads int64 + FileSize int64 + Id int64 + Link string + Title string + Updated time.Time + type BbsController struct + func (c *BbsController) Bbs() + func (c *BbsController) BbsGetBbs() + func (c *BbsController) GetBbs() + type BbsDate struct + Day string + Month string + Year string + type Callback struct + Actions []action + Changesurl string + Forcesavetype int + History history1 + Key string + Lastsave time.Time + Notmodified bool + Status int + Url string + Users []string + type CatalogLinkCont struct + Approved string + Author string + Category string + Checked string + Checkedratio float64 + Complex float64 + Count float64 + Created time.Time + Date time.Time + Datestring string + DesignStage string + Designd string + Designdratio float64 + Drawn string + Drawnratio float64 + Examined string + Examinedratio float64 + Id int64 + Link []models.CatalogLink + Name string + Page string + ProjectName string + ProjectNumber string + Section string + State int + Tnumber string + Updated time.Time + Verified string + type CatalogLinkEditable struct + CatalogId int64 + Created time.Time + Editable bool + Id int64 + Updated time.Time + Url string + type CheckController struct + func (c *CheckController) ActInfo() + func (c *CheckController) Apply() + func (c *CheckController) Check() + func (c *CheckController) CheckGetCheck() + 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() + type CheckDate struct + Day string + Month string + Year string + type Comment struct + Avatar string + Content string + Id int64 + Isme bool + Publish_time string + Username string + type Conversionresponse struct + EndConvert bool + FileUrl string + Percent int + type Conversionsend struct + Async bool + Filetype string + Key string + Outputtype string + Thumbnail Nail + Title string + Url string + type Details struct + Dates []datess + type Detailsinfo struct + Details []details + F_CheckPhotoUrl []string + F_UserName string + type DiaryController struct + func (c *DiaryController) AddWxDiary() + func (c *DiaryController) DeleteWxDiary() + func (c *DiaryController) GetWxDiary() + func (c *DiaryController) GetWxdiaries() + func (c *DiaryController) UpdateWxDiary() + type DocNode struct + Heading string + Id int + Level int + ParentId int + type Doclist struct + Docs []*flow.Documentstruct + Page int64 + Total int + type DocumentDetail struct + Action []flow.DocAction + Document *flow.Document + History []*flow.DocEventsHistory + Product models.Product + Text string + type Documentlist struct + Docs []*flow.Document + Page int64 + Total int + type DocxLink struct + Created time.Time + Id int64 + Permission string + Suffix string + Title string + Updated time.Time + type EleProjTree struct + Children []*EleProjTree + Code string + Id int64 + Label string + Lazy bool + Tags [1]string + type Employee struct + Department string + Id int64 + Marks int + Name string + Numbers int + Secoffice string + type FileNode struct + Code string + FileNodes []*FileNode + Id int64 + Title string + type FileNode1 struct + Code string + FileNodes []*FileNode1 + Id int64 + LazyLoad bool + Tags [1]string + Title string + type FileNode2 struct + Id int64 + LazyLoad bool + Tags [1]string + Title string + type Fileinput struct + InitialPreview []string + InitialPreviewConfig []PreviewConfig + type FileinputController struct + func (c *FileinputController) BootstrapFileInput() + func (c *FileinputController) UploadWxEditorImg() + type FlowController struct + 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() + type FroalaController struct + func (c *FroalaController) ControllerFroala() + 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() + type Gantt struct + CanWrite bool + CanWriteOnParent bool + DeletedTaskIds []int64 + Resources []Resourcesvalue + Roles []Rolesvalue + SelectedRow int64 + Tasks []Task + Zoom string + type GetAll struct + Completed []models.Activity + Processing []models.Activity + type GroupUsers struct + Group *flow.Group + Id flow.GroupID + Users []*flow.User + type Img struct + Name string + Src string + type IndexController struct + func (c *IndexController) AddCarCalendar() + func (c *IndexController) AddMeetCalendar() + func (c *IndexController) Calendar() + func (c *IndexController) CarCalendar() + 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 LegislationController struct + func (c *LegislationController) Checklist() + func (c *LegislationController) FileInput() + func (c *LegislationController) Index() + type Legislationmore struct + Execute string + Id int64 + LibraryNumber string + LibraryTitle string + Number string + Title string + type List struct + Name string + type Listimage struct + Ctime string + Desc string + DiagDoc string + DiagTime string + Feature string + Id int64 + Images []string + MatchList string + Result string + UserNo string + Utime string + type LoginController struct + 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) WxHasSession() + func (c *LoginController) WxLogin() + type Logstruct struct + Action string + Datetime string + File string + Id int64 + Tag string + Url string + User string + type MainController struct + 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) Pdf() + func (c *MainController) Postdata() + func (c *MainController) Register() + func (c *MainController) Slide() + func (c *MainController) Test() + func (c *MainController) UpdateDatabase() + func (c *MainController) WxPdf() + func (c *MainController) WxStandardPdf() + type Nail struct + Aspect int + First bool + Height int + Width int + type Navbartruct struct + Id int64 + Title string + type OnlyController struct + 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) 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 struct + Code string + Created time.Time + Docxlink []DocxLink + End time.Time + Id int64 + Label string + Principal string + Title string + Uid int64 + Uname string + Updated time.Time + type Onlyoffice1 struct + Code string + Created time.Time + Ext string + Id int64 + Title string + Updated time.Time + type Pathstruct struct + ParentPath string + type PdfLink struct + ActIndex string + Created time.Time + Downloads int64 + FileSize int64 + Id int64 + Link string + Title string + Updated time.Time + type PreviewConfig struct + Caption string + DownloadUrl string + Key string + Size int64 + Url string + type ProdController struct + 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 struct + Articlecontent []ArticleContent + Attachmentlink []AttachmentLink + Code string + Content string + Created time.Time + DocState flow.DocState + Id int64 + Label string + Pdflink []PdfLink + Principal string + ProdDoc models.ProductDocument + ProjectId int64 + Relevancy []RelevancyProj + Title string + Uid int64 + Updated time.Time + Views int64 + type ProjController struct + 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) ProjectTimeline() + func (c *ProjController) ResizeCalendar() + func (c *ProjController) Timeline() + func (c *ProjController) UpdateCalendar() + func (c *ProjController) UpdateProject() + func (c *ProjController) UpdateProjectCate() + func (c *ProjController) UploadImage() + type ProjGantController struct + 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 struct + Code string + Created time.Time + Id int64 + Label string + Number int64 + Principal string + Title string + Updated time.Time + type RegistController struct + func (c *RegistController) WxRegist() + func (this *RegistController) CheckUname() + func (this *RegistController) Get() + func (this *RegistController) GetUname() + func (this *RegistController) GetUname1() + func (this *RegistController) Post() + func (this *RegistController) RegistErr() + type RelevancyProj struct + Id int64 + ProductId int64 + ProjectId int64 + Relevancy string + type ReplyController struct + func (c *ReplyController) AddWiki() + func (c *ReplyController) AddWxLike() + func (c *ReplyController) AddWxRelease() + func (c *ReplyController) DeleteWiki() + func (c *ReplyController) DeleteWxRelease() + type Resourcesvalue struct + Id string + Name string + type RoleController struct + func (c *RoleController) Delete() + func (c *RoleController) Get() + func (c *RoleController) GetRolePermission() + func (c *RoleController) Post() + func (c *RoleController) RolePermission() + func (c *RoleController) Test() + func (c *RoleController) Update() + func (c *RoleController) UserRole() + type RolePermission struct + Action map[string]struct{ ... } + RoleID flow.RoleID + type Rolepermission struct + Id int64 + Name string + Permission string + Rolenumber string + type Rolesvalue struct + Id string + Name string + type SearchController struct + func (c *SearchController) Get() + func (c *SearchController) SearchProduct() + func (c *SearchController) SearchProjProducts() + func (c *SearchController) SearchProject() + func (c *SearchController) SearchProjects() + func (c *SearchController) SearchWiki() + func (c *SearchController) SearchWxDrawings() + type Select1 struct + Title string + type StandardController struct + func (c *StandardController) DeleteStandard() + func (c *StandardController) DeleteValid() + 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) Standard_one_addbaidu() + func (c *StandardController) UpdateStandard() + func (c *StandardController) Valid() + type Standardmore struct + ActIndex string + CategoryName string + Content string + Created time.Time + Id int64 + LiNumber string + LibraryNumber string + LibraryTitle string + Link string + NumTitle string + Number string + Route string + Title string + Uname string + Updated time.Time + Views int64 + type Tableserver struct + Page int64 + Rows []Project1 + Total int64 + type Task struct + Assigs []Assigsvalue + CanWrite bool + Code string + Collapsed bool + Depends string + Description string + Duration int + End int64 + EndIsMilestone bool + HasChild bool + Id int64 + Level int + Name string + Progress int + Relevance int + Start int64 + StartIsMilestone bool + Status string + Type string + TypeId string + type TodoController struct + func (c *TodoController) Create() + func (c *TodoController) DeleteTodo() + func (c *TodoController) GetTodo() + func (c *TodoController) UpdateTodo() + type Tree struct + Id int64 + Nodes []Tree + type UeditorController struct + func (c *UeditorController) ControllerUE() + type UploadimageUE struct + type UploadimgFileinput struct + type UploadimgFroala struct + type User1 struct + Id string + Name string + type UserController struct + func (c *UserController) AddUser() + func (c *UserController) DeleteUser() + func (c *UserController) GetUserByUsername() + func (c *UserController) ImportUsers() + func (c *UserController) Index() + func (c *UserController) UpdateUser() + func (c *UserController) UpdateWxUser() + func (c *UserController) User() + func (c *UserController) Usermyself() + func (c *UserController) View() + func (this *UserController) Roleerr() + type Userrole struct + Id int64 + Level string + Rolename string + Rolenumber string + Status string + type Userselect struct + Ad string + Id int64 + Name string + type WikiController struct + 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 struct + Heading string + Id int + Level int + WordTrees []*WordTree + type WxArticle struct + Author string + Comment []Comment + CommentNum int + Content string + Created time.Time + Id int64 + ImgUrl string + ImgUrls []Img + IsArticleMe bool + LeassonType int + LikeNum int + Liked bool + ProductId int64 + Subtext string + Title string + Updated string + Views int64 + Word string