Documentation
¶
Overview ¶
成果里的附件操作
小程序日历公告
提供iprole和用户登录操作功能 成果操作
project只能是运行ip权限下操作,即只判断iprole,不提供远程操作
项目进度控制器,具体任务控制器另外做吧
Index ¶
- Variables
- 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
- 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) 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
- type ArticleContent
- type ArticleController
- 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
- type AttachController
- 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
- type BbsController
- type BbsDate
- type Callback
- type CatalogLinkCont
- type CatalogLinkEditable
- type CheckController
- 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
- type Comment
- type Conversionresponse
- type Conversionsend
- type Details
- type Detailsinfo
- type DiaryController
- type DocNode
- type DocumentDetail
- type DocxLink
- type EleProjTree
- type Employee
- type FileNode
- type FileNode1
- type FileNode2
- type FlowController
- func (c *FlowController) FlowAccessContext()
- func (c *FlowController) FlowAccessContextList()
- func (c *FlowController) FlowAction()
- func (c *FlowController) FlowActionList()
- func (c *FlowController) FlowDoc()
- func (c *FlowController) FlowDocList()
- func (c *FlowController) FlowDocumentDetail()
- func (c *FlowController) FlowDocumentList()
- func (c *FlowController) FlowEvent()
- func (c *FlowController) FlowEventList()
- func (c *FlowController) FlowGroup()
- func (c *FlowController) FlowGroupList()
- func (c *FlowController) FlowGroupMailbox()
- func (c *FlowController) FlowGroupRole()
- func (c *FlowController) FlowGroupRoleList()
- func (c *FlowController) FlowGroupUsersList()
- func (c *FlowController) FlowNext()
- func (c *FlowController) FlowNode()
- func (c *FlowController) FlowNodeList()
- func (c *FlowController) FlowPermission()
- func (c *FlowController) FlowRole()
- func (c *FlowController) FlowRoleList()
- func (c *FlowController) FlowRolePermissionList()
- func (c *FlowController) FlowState()
- func (c *FlowController) FlowStateList()
- func (c *FlowController) FlowTransition()
- func (c *FlowController) FlowTransitionList()
- func (c *FlowController) FlowType()
- func (c *FlowController) FlowTypeDelete()
- func (c *FlowController) FlowTypeList()
- func (c *FlowController) FlowTypeUpdate()
- func (c *FlowController) FlowUser()
- func (c *FlowController) FlowUserGroup()
- func (c *FlowController) FlowUserList()
- func (c *FlowController) FlowUserMailbox()
- func (c *FlowController) FlowWorkflow()
- func (c *FlowController) FlowWorkflowList()
- func (c *FlowController) Get()
- func (c *FlowController) WorkFlow()
- type FroalaController
- 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
- type GetAll
- type GroupUsers
- 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 LegislationController
- type Legislationmore
- type List
- type Listimage
- type LoginController
- type Logstruct
- type MainController
- 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
- 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) 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 PdfLink
- 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 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) 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
- 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 RegistController
- type RelevancyProj
- type ReplyController
- type Resourcesvalue
- type RoleController
- type RolePermission
- type Rolepermission
- type Rolesvalue
- type SearchController
- type Select1
- type StandardController
- 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
- type Tableserver
- type Task
- type TodoController
- type Tree
- type UeditorController
- type UploadimageUE
- type UploadimgFroala
- type User1
- type UserController
- func (c *UserController) AddUser()
- 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 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
Constants ¶
This section is empty.
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 DecodeWeAppUserInfo ¶
DecodeWeAppUserInfo 解密微信小程序用户信息
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 PKCS7UnPadding ¶
PKCS7UnPadding pkcs7填充方式
func Record ¶
func Record(filenameWithSuffix string) (Suffix, FileNumber, FileName, ProNumber, ProJiduan, ProLeixing, ProZhuanye string)
分离图号图名
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 ¶
Types ¶
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) MeritBasic ¶
func (c *AdminController) MeritBasic()
merit基本信息************************************* IP,用户名,姓名,密码
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 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 true "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) 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" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getlistarticles [get] 小程序取得所有文章列表,分页_首页用
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) 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 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" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxarticless/: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) 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) GetsynchAttachments ¶
func (c *AttachController) GetsynchAttachments()
取得同步成果下的附件列表
func (*AttachController) ProvideAttachments ¶
func (c *AttachController) ProvideAttachments()
提供给同步用的某个成果id下的附件(除去pdf)给table
func (*AttachController) UpdateAttachment ¶
func (c *AttachController) UpdateAttachment()
向一个成果id下追加附件
type AttachmentLink ¶
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 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 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 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 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 [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) 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 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 @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 @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]
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 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 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 page query string true "The page for diaries 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 /getwxdiaries [get] 小程序取得所有文章列表,分页_珠三角设代用
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 DocumentDetail ¶
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 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 FlowController ¶
type FlowController struct {
beego.Controller
}
Flowtest API
func (*FlowController) FlowAccessContext ¶
func (c *FlowController) FlowAccessContext()
@Title post wf AccessContext... @Description post AccessContext.. @Param name query string true "The name of AccessContext" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowaccesscontext [post] 管理员定义流程AccessContext 流程命名空间
func (*FlowController) FlowAccessContextList ¶
func (c *FlowController) FlowAccessContextList()
@Title get wf AccessContext... @Description post AccessContext.. @Param page query string true "The page of AccessContext" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowaccesscontextlist [get] 管理员定义流程AccessContext 流程命名空间
func (*FlowController) FlowAction ¶
func (c *FlowController) FlowAction()
@Title post wf docaction... @Description post workflowdocaction.. @Param name query string true "The name of docaction" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowaction [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowActionList ¶
func (c *FlowController) FlowActionList()
@Title get wf docaction... @Description get workflowdocaction.. @Param page query string true "The page of docaction" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowactionlist [get] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowDoc ¶
func (c *FlowController) FlowDoc()
@Title post wf document @Description post document @Param dtid query string true "The doctypeid of document" @Param acid query string true "The accesscontext of document" @Param gid query string true "The groupid of Group" @Param name query string true "The name of document" @Param data query string true "The data of document" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdoc [post] 添加一个带流程的文档
func (*FlowController) FlowDocList ¶
func (c *FlowController) FlowDocList()
@Title get wf doclist @Description get workflow doclist @Param dtid query string true "The id of doctype" @Param page query string true "The page of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdoclist [get] 文件列表页,水平显示每个文件的状态
func (*FlowController) FlowDocumentDetail ¶
func (c *FlowController) FlowDocumentDetail()
@Title get wf document details @Description get documentdetail @Param dtid query string true "The id of doctype" @Param docid query string true "The id of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdocumentdetail [get] 2.点击一个具体文档——显示详情——显示actions
func (*FlowController) FlowDocumentList ¶
func (c *FlowController) FlowDocumentList()
@Title get wf document @Description get document @Param dtid query string true "The id of doctype" @Param acid query string true "The id of accesscontext" @Param gid query string false "The id of group" @Param dsid query string false "The id of docstate" @Param page query string true "The page of doc" @Param limit query string false "The limit page of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdocumentlist [get] 1.列表显示文档 2.点击一个具体文档——显示详情——显示actions
func (*FlowController) FlowEvent ¶
func (c *FlowController) FlowEvent()
@Title post wf event @Description get docevent @Param name query string true "The name of event" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdocevent [post] 添加events:
func (*FlowController) FlowEventList ¶
func (c *FlowController) FlowEventList()
@Title get wf eventlist @Description get doceventlist @Param page query string true "The page of event" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdoceventlist [get] 查询events:
func (*FlowController) FlowGroup ¶
func (c *FlowController) FlowGroup()
@Title post wf Group... @Description post Group.. @Param name query string true "The name of Group" @Param grouptype query string true "The type of Group" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgroup [post] 管理员定义流程Group 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowGroupList ¶
func (c *FlowController) FlowGroupList()
@Title get wf Group... @Description post Group.. @Param page query string true "The page of Group" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgrouplist [get] 管理员定义流程Group 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowGroupMailbox ¶
func (c *FlowController) FlowGroupMailbox()
@Title get group mailbox @Description get groupmailbox @Param gid query string true "The id of group" @Param page query string true "The page of mailbox" @Param limit query string false "The limit page of mailbox" @Param unread query string false "The unread of mailbox" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgroupmailbox [get] 1.列表显示用户邮件
func (*FlowController) FlowGroupRole ¶
func (c *FlowController) FlowGroupRole()
@Title post wf GroupRole... @Description post GroupRole.. @Param name query string true "The name of GroupRole" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgrouprole [post] 管理员定义流程GroupRole 来自accesscontext
func (*FlowController) FlowGroupRoleList ¶
func (c *FlowController) FlowGroupRoleList()
@Title get wf GroupRole... @Description get GroupRole.. @Param page query string true "The page of GroupRole" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgrouprolelist [get] 查询group的角色role-来自accesscontext
func (*FlowController) FlowGroupUsersList ¶
func (c *FlowController) FlowGroupUsersList()
@Title get wf GroupUsers... @Description post Group.. @Param name query string true "The name of GroupUser" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgroupuserslist [get] 查询Group下的所有Users
func (*FlowController) FlowNext ¶
func (c *FlowController) FlowNext()
@Title post wf next @Description post workflow next @Param dtid query string true "The id of doctype" @Param daid query string true "The id of action" @Param docid query string true "The id of document" @Param gid query string true "The id of group" @Param text query string false "The text of apply" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flownext [post] FlowDocAction列出了文档和动作,用户点击action,则这里进行修改docstate
func (*FlowController) FlowNode ¶
func (c *FlowController) FlowNode()
@Title post wf Node... @Description post Node.. @Param name query string true "The name of Node" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flownode [post] 管理员定义流程Node 流程node,输入doctype,docstate1,access,workflow,name和nodetype A `Node` each has to be defined for each document state of the workflow, except the final state. Please look at `_Workflows.AddNode`.
func (*FlowController) FlowNodeList ¶
func (c *FlowController) FlowNodeList()
@Title get wf Node... @Description post Node.. @Param page query string true "The page of Node" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flownodelist [get] 管理员定义流程Node
func (*FlowController) FlowPermission ¶
func (c *FlowController) FlowPermission()
@Title post wf Permission... @Description post Permission.. @Param name query string true "The name of Permission" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowpermission [post] 管理员定义流程Permission 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowRole ¶
func (c *FlowController) FlowRole()
@Title post wf Role... @Description post Role.. @Param name query string true "The name of Role" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowrole [post] 管理员定义流程Role 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowRoleList ¶
func (c *FlowController) FlowRoleList()
@Title get wf Role... @Description post Role.. @Param page query string true "The page of Role" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowrolelist [get] 查询所有role
func (*FlowController) FlowRolePermissionList ¶
func (c *FlowController) FlowRolePermissionList()
@Title get wf Permission... @Description post Permission.. @Param page query string true "The page of Permission" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowrolepermissionlist [get] 查询role和对应对应的permission
func (*FlowController) FlowState ¶
func (c *FlowController) FlowState()
@Title post wf docstate... @Description post workflowdocstate.. @Param name query string true "The name of docstate" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowstate [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowStateList ¶
func (c *FlowController) FlowStateList()
@Title post wf docstate... @Description post workflowdocstate.. @Param page query string false "The page of docstate" @Param limit query string false "The size of page" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowstatelist [get] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowTransition ¶
func (c *FlowController) FlowTransition()
@Title post wf transition... @Description post transition.. @Param name query string true "The name of transition" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtransition [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程流向transition,输入doctype、docstate1、docaction、docstate2
func (*FlowController) FlowTransitionList ¶
func (c *FlowController) FlowTransitionList()
@Title get wf transition... @Description post transition.. @Param page query string true "The page of transition" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtransitionlist [get] 展示doctype下from docstate可能的transion
func (*FlowController) FlowType ¶
func (c *FlowController) FlowType()
@Title post wf doctype... @Description post workflowdoctype.. @Param name query string true "The name of doctype" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtype [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowTypeDelete ¶
func (c *FlowController) FlowTypeDelete()
@Title post wf doctype... @Description post workflowdoctype.. @Param name query string true "The name of doctype" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtypedelete [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowTypeList ¶
func (c *FlowController) FlowTypeList()
@Title get wf doctypelist... @Description get workflowdoctype.. @Param page query string false "The page of doctype" @Param limit query string false "The size of page" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtypelist [get] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowTypeUpdate ¶
func (c *FlowController) FlowTypeUpdate()
@Title post wf doctype... @Description post workflowdoctype.. @Param name query string false "The name of doctype" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtypeupdate [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowUser ¶
func (c *FlowController) FlowUser()
@Title post wf user... @Description post user.. @Param firstname query string true "The firstname of user" @Param lastname query string true "The lastname of user" @Param email query string true "The email of user" @Param active query string true "The active of user" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowuser [post] 管理员定义流程user 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowUserGroup ¶
func (c *FlowController) FlowUserGroup()
@Title post wf GroupUser... @Description post Group.. @Param name query string true "The name of GroupUser" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowusergroup [post] 管理员定义流程GroupUser 将users加入group
func (*FlowController) FlowUserList ¶
func (c *FlowController) FlowUserList()
@Title get wf user... @Description post user.. @Param page query string true "The page of user" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowuserlist [get] 管理员定义流程user 流程动作action、流程流向transition、流程事件event
func (*FlowController) FlowUserMailbox ¶
func (c *FlowController) FlowUserMailbox()
@Title get user mailbox @Description get usermailbox @Param uid query string true "The id of user" @Param page query string true "The page of mailbox" @Param limit query string false "The limit page of mailbox" @Param unread query string false "The unread of mailbox" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowusermailbox [get] 1.列表显示用户邮件
func (*FlowController) FlowWorkflow ¶
func (c *FlowController) FlowWorkflow()
@Title post wf Workflow... @Description post Workflow.. @Param name query string true "The name of Workflow" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowworkflow [post] 管理员定义流程Workflow 输入doctype和初始action
func (*FlowController) FlowWorkflowList ¶
func (c *FlowController) FlowWorkflowList()
@Title post wf Workflow... @Description post Workflow.. @Param page query string true "The page of Workflow" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowworkflowlist [get] 管理员定义流程Workflow 输入doctype和初始action
func (*FlowController) Get ¶
func (c *FlowController) Get()
func (*FlowController) WorkFlow ¶
func (c *FlowController) WorkFlow()
@Title show wf page @Description show workflow page @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /workflow [get] 页面
type FroalaController ¶
type FroalaController struct {
beego.Controller
}
CMSWX froala API
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 @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 query 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更通用
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 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 LegislationController ¶
type LegislationController struct {
beego.Controller
}
func (*LegislationController) Checklist ¶
func (c *LegislationController) Checklist()
搜索规范或者图集的名称或编号
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 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) 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] 微信小程序访问微信服务器获取用户信息
type MainController ¶
type MainController struct {
beego.Controller
}
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) Pdf ¶
func (c *MainController) Pdf()
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) WxPdf ¶
func (c *MainController) 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]
func (*MainController) WxStandardPdf ¶
func (c *MainController) 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 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) 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 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 ProjController ¶
type ProjController struct {
beego.Controller
}
func (*ProjController) Calendar ¶
func (c *ProjController) Calendar()
返回日历json数据 如果是管理员,则显示全部,非管理员,显示公开
func (*ProjController) DeleteProjectCate ¶
func (c *ProjController) DeleteProjectCate()
后台删除项目目录节点——这个用删除项目代替了。 删除多节点 删除多节点的子节点
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中的GetProducts
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 page 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/project/getprojects?limit=15&pageNo=1
func (*ProjController) UpdateProjectCate ¶
func (c *ProjController) UpdateProjectCate()
后台修改项目目录节点名称
func (*ProjController) UploadImage ¶
func (c *ProjController) UploadImage()
应该将日历改为froala,那么这个就可以淘汰了。
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 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) 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] 添加微信小程序珠三角设代阅览版注册
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 id query string true "The id of article" @Param content query string true "The content of release" @Param code query string false "The code of wx" @Param avatar query string false "The avatar of release" @Param username query string false "The username of release" @Param created 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) Get ¶
func (c *RoleController) Get()
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) 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 true "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
type StandardController ¶
type StandardController struct {
beego.Controller
}
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()
搜索规范或者图集的名称或编号 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) Standard_one_addbaidu ¶
func (c *StandardController) Standard_one_addbaidu()
type Standardmore ¶
type Standardmore struct { Id int64 Number string //`orm:"unique"` 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 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 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" @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 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) GetUserByUsername ¶
func (c *UserController) GetUserByUsername()
用户查看自己,修改密码等
func (*UserController) ImportUsers ¶
func (c *UserController) ImportUsers()
上传excel文件,导入到数据库 引用来自category的查看成果类型里的成果
func (*UserController) Index ¶
func (c *UserController) Index()
func (*UserController) Roleerr ¶
func (this *UserController) Roleerr()
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] 小程序修改用户密码
type Userselect ¶
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"` 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"` }
Source Files
¶
- admin.go
- adminlog.go
- article.go
- attachment.go
- bbs.go
- checkin.go
- default.go
- diary.go
- flow.go
- froala.go
- index.go
- legislation.go
- login.go
- onlyoffice.go
- product.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
- wiki.go