controllers

package
v1.0.1-0...-540a35a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 83 Imported by: 0

Documentation

Overview

成果里的附件操作

小程序日历公告

Business Trip

Location Trip

提供iprole和用户登录操作功能 成果操作

project只能是运行ip权限下操作,即只判断iprole,不提供远程操作

项目进度控制器,具体任务控制器另外做吧

Index

Constants

View Source
const (
	//single file.
	SHARE_TYPE_FILE = "FILE"
	//directory
	SHARE_TYPE_DIRECTORY = "DIRECTORY"
	//mix things
	SHARE_TYPE_MIX = "MIX"
)

CMSSHARE PRODUCT API

type ShareController struct {
	beego.Controller
}
View Source
const (
	VIDEO_DIR       = "./videos/"
	MAX_UPLOAD_SIZE = 50 * 1024 * 1024 // 50MB
)
View Source
const (
	RangeSize    int64 = 1024 * 1024
	ThreadAmount int   = 32
)

RangeSize sets the default range size to 1MB

View Source
const (
	SHARE_MAX_NUM = 100
)

Variables

View Source
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 AESDecrypt

func AESDecrypt(cipherBytes, key, iv []byte) ([]byte, error)

AESDecrypt AES解密

func Authorizer

func Authorizer(ctx *context.Context) (uname, role string, uid int64)

func CheckShare

func CheckShare(ctx *context.Context, shareUuid string, code string, user *models.User) (*models.Share, error)

check whether shareUuid and shareCode matches. check whether user can access.

func CheckprodRole

func CheckprodRole(ctx *context.Context) (uname, role string, uid int64, isadmin, islogin bool)

func CopyFile

func CopyFile(dstName, srcName string) (written int64, err error)

Copyfile

func CreateIndex

func CreateIndex(mapping string) error

CreateIndex creates a new index with mapping. func (c *ElasticController) CreateIndex(mapping string) error {

func Createip

func Createip()

func Createitem

func Createitem(indexName string, item *Document) error

Create indexes a new document into store. 这里插入数据

func DecodeWeAppUserInfo

func DecodeWeAppUserInfo(encryptedData string, sessionKey string, iv string) (string, error)

DecodeWeAppUserInfo 解密微信小程序用户信息

func Delete

func Delete()

func DeleteByQuery

func DeleteByQuery()

func DeleteEmptyDir

func DeleteEmptyDir(dirPath string) bool

try to delete empty dir. true: delete an empty dir, false: delete nothing.

func FileMTime

func FileMTime(file string) (int64, error)

get file modified time

func FilePutContent

func FilePutContent(file string, content string) (int, error)

put string to file

func FileSize

func FileSize(file string) (int64, error)

返回文件大小

func Get

func Get()

func GetProjTitleNumber

func GetProjTitleNumber(id int64) (ProjectNumber, ProjectName, DesignStage, Section string, err error)

根据id返回项目编号,项目名称,项目阶段,项目专业

func GetRandomSalt

func GetRandomSalt() []byte

return len=8 salt

func GetRandomString

func GetRandomString(length int) []byte

生成随机字符串

func GetUrlPath

func GetUrlPath(id int64) (Url, DiskDirectory string, err error)

根据侧栏id返回附件url和文件夹路径

func Getiprole

func Getiprole(ip string) (role int)

取得访问者的权限

func ImageFilter

func ImageFilter(ctx *context.Context)

下载附件——这个仅是测试 func (c *AttachController) ImageFilter() {

func Index

func Index()

func MD5

func MD5(text string) string

生成32位MD5

func MathcadName

func MathcadName(filenameWithSuffix string) (Suffix, FileNumber, FileName, Version string)

取得usertemple名称,日期和版本

func PKCS7UnPadding

func PKCS7UnPadding(dst []byte, blockSize int) []byte

PKCS7UnPadding pkcs7填充方式

func Record

func Record(filenameWithSuffix string) (Suffix, FileNumber, FileName, ProNumber, ProJiduan, ProLeixing, ProZhuanye string)

分离图号图名

func RemoveContents

func RemoveContents(dir string) error

删除文件夹下所有文件

func Search()

func SendMessage

func SendMessage()

func SplitStandardFileNumber

func SplitStandardFileNumber(filenumber string) (Category, Categoryname, Number string)

分离上面结果中FileNumber的分类GB和编号50268 用于搜索

func SplitStandardName

func SplitStandardName(filenameWithSuffix string) (Category, Categoryname, FileNumber, Year, FileName, Suffix string)

分离规范名称为分类,编号,年代和名称,用于规范上传

func SubString

func SubString(str string, begin, length int) (substr string)

如果不够length,返回全部长度范围

func SubStrings

func SubStrings(filenameWithSuffix string) (substr1, substr2 string)

下面这个没什么用了吧,用record代替 对于01水电院企业标准.pdf如何办呢,所以最简单是取得第一个汉字的位置即可

func UnicodeIndex

func UnicodeIndex(str, substr string) int

func UpdateByQuery

func UpdateByQuery()

func UploadImg

func UploadImg(w http.ResponseWriter, r *http.Request)

这个没用

Types

type AccountController

type AccountController struct {
	MindocBaseController
}

AccountController 用户登录与注册

func (*AccountController) Captcha

func (c *AccountController) Captcha()

验证码

func (*AccountController) FindPassword

func (c *AccountController) FindPassword()

找回密码

func (*AccountController) LoggedIn

func (c *AccountController) LoggedIn(isPost bool) interface{}

登录成功后的操作,如重定向到原始请求页面

func (*AccountController) Login

func (c *AccountController) Login()

Login 用户登录

func (*AccountController) Logout

func (c *AccountController) Logout()

Logout 退出登录

func (*AccountController) Prepare

func (c *AccountController) Prepare()

func (*AccountController) Register

func (c *AccountController) Register()

用户注册

func (*AccountController) ValidEmail

func (c *AccountController) ValidEmail()

校验邮件并修改密码

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 AchEmployee struct {
	Id       int64  `json:"Id"` //`form:"-"`
	Pid      int64  `form:"-"`
	Nickname string `json:"text"` //这个是侧栏显示的内容
	Level    string `json:"Level"`
	Href     string `json:"href"`
}

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 ActInfos

type ActInfos struct {
	Nums  int     `json:"nums"`
	Infos []infos `json:"infos"`
}

type Actions

type Actions struct {
	DocTypeID flow.DocTypeID
	Actions   []*flow.DocAction
}

type AdminController

type AdminController struct {
	beego.Controller
}

CMSADMIN API

func (*AdminController) AddCalendar

func (c *AdminController) AddCalendar()

********************日历开始************** 添加日历

func (*AdminController) AddCarousel

func (c *AdminController) AddCarousel()

批量上传首页轮播图片

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) AddDepartment

func (c *AdminController) AddDepartment()

添加

func (*AdminController) AddIpsegment

func (c *AdminController) AddIpsegment()

添加ip地址段

func (*AdminController) AddsynchIp

func (c *AdminController) AddsynchIp()

添加

func (*AdminController) Admin

func (c *AdminController) Admin()

func (*AdminController) Calendar

func (c *AdminController) Calendar()

返回日历json数据 如果是管理员,则显示全部,非管理员,显示公开

func (*AdminController) Carousel

func (c *AdminController) Carousel()

查询所有轮播图片

func (*AdminController) CatalogAttachment

func (c *AdminController) CatalogAttachment()

列表显示成果附件

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) DeleteCalendar

func (c *AdminController) DeleteCalendar()

删除,如果有下级,一起删除

func (*AdminController) DeleteCarousel

func (c *AdminController) DeleteCarousel()

删除选中的轮播图片

func (*AdminController) DeleteCategory

func (c *AdminController) DeleteCategory()

删除,如果有下级,一起删除

func (*AdminController) DeleteDepartment

func (c *AdminController) DeleteDepartment()

删除,如果有下级,一起删除

func (*AdminController) DeleteIpsegment

func (c *AdminController) DeleteIpsegment()

删除ip

func (*AdminController) DeleteMeritlist

func (c *AdminController) DeleteMeritlist()

删除meritlist

func (*AdminController) DeletesynchIp

func (c *AdminController) DeletesynchIp()

删除

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) DropCalendar

func (c *AdminController) DropCalendar()

拖曳

func (*AdminController) Get

func (c *AdminController) Get()

@Title getAdminBlock @Description get admin page @Success 200 {object} success @Failure 400 Invalid page @Failure 404 page not found @router / [get]

func (*AdminController) GetPostMerit

func (c *AdminController) GetPostMerit()

取得成果给table 成果清单 未提交status=0和已提交status=1

func (*AdminController) GetWxProjectConfig

func (c *AdminController) GetWxProjectConfig()

@Title get wx projectconfig by projectid @Description get wx projectconfig by projectid @Param projectid query string true "The id of project" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /getwxprojectconfig [get] 给jsoneditor返回json数据

func (*AdminController) ImportJson

func (c *AdminController) ImportJson()

导入json数据

func (*AdminController) InitJson

func (c *AdminController) InitJson()

根据conf目录下的json.json文件初始化价值结构

func (*AdminController) Ipsegment

func (c *AdminController) Ipsegment()

查询IP地址段

func (*AdminController) Jsoneditor

func (c *AdminController) Jsoneditor()

@Title get wx projectconfig by projectid @Description get wx projectconfig by projectid @Param projectid query string true "The id of project" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /jsoneditor [get] 给jsoneditor返回json数据

func (*AdminController) MeritBasic

func (c *AdminController) MeritBasic()

merit基本信息************************************* IP,用户名,姓名,密码

func (*AdminController) ModifyCatalog

func (c *AdminController) ModifyCatalog()

在线修改保存某个字段

func (c *AdminController) ModifyLink()

修改link

func (*AdminController) PutWxProjectConfig

func (c *AdminController) PutWxProjectConfig()

@Title update wx projectconfig by projectid @Description put wx projectconfig by projectid @Param projectid query string true "The id of project" @Param projectconfig query string true "The json of projectconfig" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /putwxprojectconfig [post] 更新json文件

func (*AdminController) ResizeCalendar

func (c *AdminController) ResizeCalendar()

resize

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()

func (*AdminController) UpdateCalendar

func (c *AdminController) UpdateCalendar()

修改

func (*AdminController) UpdateCategory

func (c *AdminController) UpdateCategory()

修改

func (*AdminController) UpdateDepartment

func (c *AdminController) UpdateDepartment()

修改

func (*AdminController) UpdateIpsegment

func (c *AdminController) UpdateIpsegment()

修改ip地址段

func (*AdminController) UpdateMeritBasic

func (c *AdminController) UpdateMeritBasic()

在线修改保存某个字段

func (*AdminController) UpdatesynchIp

func (c *AdminController) UpdatesynchIp()

修改

type AdminLogController

type AdminLogController struct {
	beego.Controller
}

CMSADMIN API

func (*AdminLogController) ErrLog

func (c *AdminLogController) ErrLog()

@Title getAdminBlock @Description get log list @Success 200 {object} success @Failure 400 Invalid page @Failure 404 page not found @router /errlog [get]

func (*AdminLogController) InfoLog

func (c *AdminLogController) InfoLog()

@Title getAdminBlock @Description get log list @Success 200 {object} success @Failure 400 Invalid page @Failure 404 page not found @router /infolog [get]

type ApplyRechargeTable

type ApplyRechargeTable struct {
	Rows  []models.Recharge `json:"rows"`
	Page  int               `json:"page"`
	Total int               `json:"total"` //string或int64都行!
}

后端分页的用户申请充值数据结构

type ArticleContent

type ArticleContent struct {
	Id        int64
	Title     string
	Subtext   string
	ProductId int64
	Content   string
	Link      string
	// Views   int64
	Created time.Time
	Updated time.Time
}

type ArticleController

type ArticleController struct {
	beego.Controller
}

CMSWX article API

func (*ArticleController) AddArticle

func (c *ArticleController) AddArticle()

向某个侧栏id下添加文章

func (*ArticleController) AddProdArticle

func (c *ArticleController) AddProdArticle()

向成果id下添加文章——这个没用,上面那个已经包含了

func (*ArticleController) AddWxArticle

func (c *ArticleController) AddWxArticle()

@Title post wx artile by catalogId @Description post article by catalogid @Param title query string true "The title of article" @Param content query string true "The content of article" @Param skey query string false "The skey of user" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /addwxarticle [post] 作废!向设代日记id下添加微信小程序文章_珠三角设代plus用_ 这个是文字图片分开方式,用下面这个

func (*ArticleController) AddWxArticleFlow

func (c *ArticleController) AddWxArticleFlow()

@Title post wx artile by catalogId @Description post article by catalogid @Param id path string true "The id of project" @Param title query string true "The title of article" @Param content query string true "The content of article" @Param content query string true "The content of article" @Param dtid query string true "The id of doctype" @Param acid query string true "The id of accesscontext" @Param gid query string true "The id of group" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /addwxarticleflow/:id [post] 添加微信文章并执初始化一个流程

func (*ArticleController) AddWxArticles

func (c *ArticleController) AddWxArticles()

@Title post wx artile by catalogId @Description post article by catalogid @Param id query string true "The id of project" @Param title query string true "The title of article" @Param content query string true "The content of article" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /addwxarticles/:id [post] 向设代日记id下添加微信小程序文章——通用:包括青少儿书画用

func (*ArticleController) AddWxEditorArticle

func (c *ArticleController) AddWxEditorArticle()

@Title post wx artile by catalogId @Description post article by catalogid @Param title query string true "The title of article" @Param content query string true "The content of article" @Param skey query string false "The skey of user" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /addwxeditorarticle [post] 向设代日记id下添加微信小程序文章_珠三角设代plus用_editor方式 作废

func (*ArticleController) DeleteArticle

func (c *ArticleController) DeleteArticle()

根据文章id删除文章_没删除文章中的图片

func (*ArticleController) DeleteWxArticle

func (c *ArticleController) DeleteWxArticle()

@Title post wx artile by articleId @Description post article by catalogid @Param id query string true "The id of article" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /deletewxarticle [post] 根据文章id删除文章_没删除文章中的图片

func (*ArticleController) GetArticle

func (c *ArticleController) GetArticle()

根据id查看,查出文章

func (*ArticleController) GetArticles

func (c *ArticleController) GetArticles()

取得某个成果id下的文章给table

func (*ArticleController) GetListArticles

func (c *ArticleController) GetListArticles()

@Title get wx artiles list @Description get articles by page @Param page query string true "The page for articles list" @Param limit query string true "The limit of page for articles list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getlistarticles [get] 小程序取得所有文章列表,分页_首页用 这个应该要作废,用在哪里?

func (*ArticleController) GetUserArticle

func (c *ArticleController) GetUserArticle()

@Title get wx userarticles count @Description get userarticles by projid @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articles not found @router /getuserarticle [get] 小程序取得我的文章列表,分页_plus_通用_含文章状态

func (*ArticleController) GetWxArticle

func (c *ArticleController) GetWxArticle()

@Title get wx artile by articleId @Description get article by articleid @Param id path string true "The id of article" @Param skey path string true "The skey of user" @Success 200 {object} models.GetArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /getwxarticle/:id [get] 根据id查看一篇微信文章

func (*ArticleController) GetWxArticleFlow

func (c *ArticleController) GetWxArticleFlow()

@Title get wx artile by articleId @Description get article by articleid @Param id path string true "The id of article" @Param skey path string true "The skey of user" @Param dtid query string true "The id of doctype" @Param docid query string true "The id of doc" @Param acid query string true "The id of accesscontext" @Success 200 {object} models.GetArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /getwxarticleflow/:id [get] 根据id查看一篇微信文章,带action的权限判断

func (*ArticleController) GetWxArticleType

func (c *ArticleController) GetWxArticleType()

@Title get wx artiles list @Description get articles by page @Param page query string true "The page for articles list" @Param limit query string true "The limit of page for articles list" @Param dsid query string true "The id of docstate" @Param dtid query string true "The id of doctype" @Param acid query string true "The id of accesscontext" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxarticletype [get] 小程序根据flow文档的doctype获取登录者的文档_待提交的文档列表

func (*ArticleController) GetWxArticles

func (c *ArticleController) GetWxArticles()

@Title get wx artiles list @Description get articles by page @Param page query string true "The page for articles list" @Param limit query string true "The limit of page for articles list" @Param skey query string true "The skey for user" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxarticles [get] 小程序取得所有文章列表,分页_珠三角设代用 作废

func (*ArticleController) GetWxArticless

func (c *ArticleController) GetWxArticless()

@Title get wx artiles list @Description get articles by page @Param id path string true "The id of project" @Param page query string true "The page for articles list" @Param limit query string true "The limit of page for articles list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxarticless/:id [get] 小程序取得我的文章列表,分页_plus_通用_含文章状态

func (*ArticleController) GetWxUserArticles

func (c *ArticleController) GetWxUserArticles()

@Title get wx userarticles count @Description get userarticles by projid @Param id path string true "The id of project" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articles not found @router /getwxuserarticles/:id [get] 小程序取得我的文章列表,分页_plus_通用_含文章状态

func (*ArticleController) GetsynchArticles

func (c *ArticleController) GetsynchArticles()

取得同步文章列表

func (*ArticleController) ModifyArticle

func (c *ArticleController) ModifyArticle()

修改文章页面

func (*ArticleController) ProvideArticles

func (c *ArticleController) ProvideArticles()

提供同步文章列表

func (*ArticleController) UpdateArticle

func (c *ArticleController) UpdateArticle()

编辑 成果id

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 Assigsvalue struct {
	ResourceId string `json:"resourceId"`
	Id         string `json:"id"`
	RoleId     string `json:"roleId"`
	Effort     int64  `json:"effort"`
}

type AttachController

type AttachController struct {
	beego.Controller
}

func (*AttachController) AddAttachment

func (c *AttachController) AddAttachment()

向某个侧栏id下添加成果——用于第一种批量添加一对一模式

func (*AttachController) AddAttachment2

func (c *AttachController) AddAttachment2()

向某个侧栏id下添加成果——用于第二种添加,多附件模式

func (*AttachController) AddWxAttachment

func (c *AttachController) AddWxAttachment()

@Title post wx attachment by projectid @Description post attachment by projectid @Param pid query string true "The projectid of attachment" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 project not found @router /addwxattachment [post] wx向某个侧栏id下添加成果——用于第一种批量添加一对一模式

func (*AttachController) Attachment

func (c *AttachController) Attachment()

目前有文章中的图片、成果中文档的预览、onlyoffice中的文档协作、pdf中的附件路径等均采用绝对路径型式 文章中的附件呢? default中的pdf页面中的{{.pdflink}},绝对路径

type Session struct {
	Session int
}

attachment/路径/附件名称

func (*AttachController) DeleteAttachment

func (c *AttachController) DeleteAttachment()

删除附件——这个用于针对删除一个附件

func (*AttachController) DownloadAttachment

func (c *AttachController) DownloadAttachment()

根据权限查看附件/downloadattachment?id=

func (*AttachController) GetAllAttachments

func (c *AttachController) GetAllAttachments()

取得某个成果id下的所有附件(包含pdf和文章)给table 用于编辑,这个要改,不要显示文章? 自从文章采用link后,是否可以一同删除?

func (*AttachController) GetAttachments

func (c *AttachController) GetAttachments()

取得某个成果id下的附件(除去pdf)给table

func (*AttachController) GetCarousel

func (c *AttachController) GetCarousel()

首页轮播图片给予任何权限

func (*AttachController) GetPdfs

func (c *AttachController) GetPdfs()

@Title get wf document details @Description get documentdetail @Param dtid query string true "The id of doctype" @Param docid query string true "The id of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /project/product/pdf/:id [get] 2.点击一个具体文档——显示详情——显示actions 取得某个成果id下的附件中的pdf给table

func (*AttachController) GetWxPdf

func (c *AttachController) GetWxPdf()

@Title dowload wx pdf @Description get wx pdf by id @Param id path string true "The id of pdf" @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /getwxpdf/:id [get] 查阅防腐资料,不用权限判断

func (*AttachController) GetsynchAttachments

func (c *AttachController) GetsynchAttachments()

取得同步成果下的附件列表

func (*AttachController) GetsynchPdfs

func (c *AttachController) GetsynchPdfs()

取得同步成果下的pdf列表

func (*AttachController) NewDwg

func (c *AttachController) NewDwg()

向某个侧栏id下新建dwg文件

func (*AttachController) Pdf

func (c *AttachController) Pdf()

网页阅览pdf文件,并带上上一页和下一页

func (*AttachController) ProvideAttachments

func (c *AttachController) ProvideAttachments()

提供给同步用的某个成果id下的附件(除去pdf)给table

func (*AttachController) ProvidePdfs

func (c *AttachController) ProvidePdfs()

提供给同步用的pdf列表数据

func (*AttachController) SaveDwgfile

func (c *AttachController) SaveDwgfile()

向服务器保存dwg文件

func (*AttachController) UpdateAttachment

func (c *AttachController) UpdateAttachment()

向一个成果id下追加附件

func (*AttachController) WxPdf

func (c *AttachController) WxPdf()

@Title dowload wx pdf @Description get wx pdf by id @Param id path string true "The id of pdf" @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /wxpdf/:id [get] 有权限判断,必须取得文件所在路径,才能用casbin判断

type AttachmentLink struct {
	Id       int64
	Title    string
	Link     string
	FileSize int64
	// Suffix    string
	Downloads int64
	Created   time.Time
	Updated   time.Time
}

type Author

type Author struct {
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
}

type BaseController

type BaseController struct {
	beego.Controller
}

CMSToken API

func (*BaseController) ParseToken

func (base *BaseController) ParseToken() (t *jwt.Token, err error)

ParseToken parse JWT token in http header.

type BbsController

type BbsController struct {
	beego.Controller
}

CMSBBS API

func (*BbsController) Bbs

func (c *BbsController) Bbs()

@Title post bbs @Description post bbs @Param userId query string true "The userId for bbs" @Param desc query string true "The description for bbs" @Param year query string true "The year for bbs" @Param month query string true "The month for bbs" @Param day query string true "The day for bbs" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 bbs not found @router /bbs [post] 新增公告写入数据库

func (*BbsController) BbsGetBbs

func (c *BbsController) BbsGetBbs()

@Title get checkin bbs @Description get bbs @Param year query string true "The year for bbs" @Param month query string true "The month for bbs" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /bbsgetbbs [get] 取得当月的打卡记录

func (*BbsController) GetBbs

func (c *BbsController) GetBbs()

@Title get bbs @Description get bbs @Param year query string true "The year for bbs" @Param month query string true "The month for bbs" @Param day query string true "The day for bbs" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 bbs not found @router /getbbs [get] 取得选定日期的记录

type BbsDate

type BbsDate struct {
	Year  string `json:"year"`
	Month string `json:"month"`
	Day   string `json:"day"`
}

type BlogController

type BlogController struct {
	MindocBaseController
}

func (*BlogController) Download

func (c *BlogController) Download()

下载附件

func (*BlogController) Index

func (c *BlogController) Index()

文章阅读

func (*BlogController) List

func (c *BlogController) List()

文章列表

func (*BlogController) ManageDelete

func (c *BlogController) ManageDelete()

删除文章

func (*BlogController) ManageEdit

func (c *BlogController) ManageEdit()

文章创建或编辑

func (*BlogController) ManageList

func (c *BlogController) ManageList()

管理后台文章列表

func (*BlogController) ManageSetting

func (c *BlogController) ManageSetting()

文章设置

func (*BlogController) Prepare

func (c *BlogController) Prepare()

func (*BlogController) RemoveAttachment

func (c *BlogController) RemoveAttachment()

删除附件

func (*BlogController) Upload

func (c *BlogController) Upload()

上传附件或图片

type BookController

type BookController struct {
	MindocBaseController
}

func (*BookController) Copy

func (c *BookController) Copy()

复制项目

func (*BookController) Create

func (c *BookController) Create()

Create 创建项目.

func (*BookController) Dashboard

func (c *BookController) Dashboard()

Dashboard 项目概要 .

func (*BookController) Delete

func (c *BookController) Delete()

Delete 删除项目.

func (*BookController) Import

func (c *BookController) Import()

导入zip压缩包

func (*BookController) Index

func (c *BookController) Index()

func (*BookController) IsPermission

func (c *BookController) IsPermission() (*models.BookResult, error)

func (*BookController) ItemsetsSearch

func (c *BookController) ItemsetsSearch()

项目空间搜索.

func (*BookController) PrivatelyOwned

func (c *BookController) PrivatelyOwned()

设置项目私有状态.

func (*BookController) Release

func (c *BookController) Release()

发布项目.

func (*BookController) SaveBook

func (c *BookController) SaveBook()

保存项目信息

func (*BookController) SaveSort

func (c *BookController) SaveSort()

文档排序.

func (*BookController) Setting

func (c *BookController) Setting()

Setting 项目设置 .

func (*BookController) Team

func (c *BookController) Team()

func (*BookController) TeamAdd

func (c *BookController) TeamAdd()

func (*BookController) TeamDelete

func (c *BookController) TeamDelete()

删除项目的团队.

func (*BookController) TeamSearch

func (c *BookController) TeamSearch()

团队搜索.

func (*BookController) Transfer

func (c *BookController) Transfer()

Transfer 转让项目.

func (*BookController) UploadCover

func (c *BookController) UploadCover()

上传项目封面.

func (*BookController) Users

func (c *BookController) Users()

Users 用户列表.

type BookMemberController

type BookMemberController struct {
	MindocBaseController
}

func (*BookMemberController) AddMember

func (c *BookMemberController) AddMember()

AddMember 参加参与用户.

func (*BookMemberController) ChangeRole

func (c *BookMemberController) ChangeRole()

变更指定用户在指定项目中的权限

func (*BookMemberController) IsPermission

func (c *BookMemberController) IsPermission() (*models.BookResult, error)

func (*BookMemberController) RemoveMember

func (c *BookMemberController) RemoveMember()

删除参与者.

type BusinessCheckDate

type BusinessCheckDate struct {
	Year  string `json:"year"`
	Month string `json:"month"`
	Day   string `json:"day"`
}

type BusinessController

type BusinessController struct {
	beego.Controller
}

func (*BusinessController) AddBusiness

func (c *BusinessController) AddBusiness()

@Title post business by projectid @Description post business by projectid @Param content query string true "The content of release" @Param location query string true "The location of business" @Param lat query string false "The lat of location" @Param lng query string false "The lng of location" @Param startDate query string false "The startDate of business" @Param endDate query string false "The endDate of business" @Param projecttitle query string false "The projecttitle of business" @Param drivername query string false "The drivername of business" @Param subsidy query string false "The subsidy of business" @Param carfare query string false "The carfare of business" @Param hotelfee query string false "The hotelfee of business" @Param users query string false "The users of business" @Param articleshow query string false "The larticleshow of business" @Param id path string true "The projectid of project" @Param title query string false "The title of article" @Param articlecontent query string false "The content of article" @Success 200 {object} models.CreateBusiness @Failure 400 Invalid page supplied @Failure 404 pas not found @router /addbusiness/:id [post] 添加一个活动

func (*BusinessController) BusinessCheck

func (c *BusinessController) BusinessCheck()

@Title post checkin person @Description post person @Param userid query string true "The userid for person" @Param businessid query string true "The businessid for Business" @Param lat query string true "The businessid of check" @Param lng query string true "The businessid of check" @Param photoUrl query string true "The photoUrl of check" @Param year query string true "The businessid of check" @Param month query string true "The businessid of check" @Param day query string true "The businessid of check" @Param location query string true "The location of check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /businesscheck [post] 打卡记录写入数据库

func (*BusinessController) BusinessMonthCheck

func (c *BusinessController) BusinessMonthCheck()

@Title get businessmothcheckin @Description get businessmonthcheck @Param id path string true "The projectid of business" @Param page query string false "The page of check" @Param limit query string false "The size of check" @Param year query string true "The year of check" @Param month query string true "The month of check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /businessmonthcheck/:id [get] 月度考勤统计

func (*BusinessController) BusinessMonthCheckSum

func (c *BusinessController) BusinessMonthCheckSum()

********************统计************** @Title get businessmothcheckin @Description get businessmonthcheck @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /businessmonthchecksum [get]

func (*BusinessController) GetBusinessCheck

func (c *BusinessController) GetBusinessCheck()

@Title get checkin check @Description get check @Param userid query string true "The userid of check" @Param businessid query string true "The businessid of check" @Param year query string true "The year of check" @Param month query string true "The month of check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getbusinesscheck [get] 取得当月的打卡记录

func (*BusinessController) GetBysiness

func (c *BusinessController) GetBysiness()

@Title get business by userid @Description get business by userid @Param id path string true "The projectid of business" @Success 200 {object} models.GetBusinessPage @Failure 400 Invalid page supplied @Failure 404 business not found @router /getbusiness/:id [get] 根据项目id和用户id列出有关的business 不应该过滤项目id!!

func (*BusinessController) GetBysinessById

func (c *BusinessController) GetBysinessById()

@Title get business by businessid @Description get business by businessid @Param id path string true "The id of business" @Success 200 {object} models.GetBusinessPage @Failure 400 Invalid page supplied @Failure 404 business not found @router /getbusinessbyid/:id [get] 根据businessid查出business

func (*BusinessController) UpdateBusiness

func (c *BusinessController) UpdateBusiness()

@Title post update business by businessid @Description post update business by businessid @Param content query string true "The content of release" @Param location query string true "The location of business" @Param lat query string false "The lat of location" @Param lng query string false "The lng of location" @Param startDate query string false "The startDate of business" @Param endDate query string false "The endDate of business" @Param projecttitle query string false "The projecttitle of business" @Param drivername query string false "The drivername of business" @Param subsidy query string false "The subsidy of business" @Param carfare query string false "The carfare of business" @Param hotelfee query string false "The hotelfee of business" @Param users query string false "The users of business" @Param articleshow query string false "The larticleshow of business" @Param id path string true "The id of business" @Param title query string false "The title of article" @Param articlecontent query string false "The content of article" @Success 200 {object} models.UpdateBusiness @Failure 400 Invalid page supplied @Failure 404 pas not found @router /updatebusiness/:id [post] 用户修改business

type Callback

type Callback struct {
	Key           string    `json:"key"`
	Status        int       `json:"status"`
	Url           string    `json:"url"`
	Changesurl    string    `json:"changesurl"`
	History       history1  `json:"history"`
	Users         []string  `json:"users"`
	Actions       []action  `json:"actions"`
	Lastsave      time.Time `json:"lastsave"`
	Notmodified   bool      `json:"notmodified"`
	Forcesavetype int       `json:"forcesavetype"`
}

type CartController

type CartController struct {
	beego.Controller
}

func (*CartController) CreateProductCart

func (c *CartController) CreateProductCart()

@Title post create a new cart @Description post create a new cart @Param ids query string true "The ids of product" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /createproductcart [post]

func (*CartController) DeleteUserCart

func (c *CartController) DeleteUserCart()

@Title post delete usercart @Description post delete a usercart @Param ids query string true "The ids of usercats" @Success 200 {object} models.DeleteUserCart @Failure 400 Invalid page supplied @Failure 404 articl not found @router /deleteusercart [post]

func (*CartController) GetApplyCart

func (c *CartController) GetApplyCart()

@Title get usercartlist @Description get usercartlist @Param status query string true "The status for usercart list" @Param searchText query string false "The searchText of usercart" @Param pageNo query string true "The page for usercart list" @Param limit query string true "The limit of page for usercart list" @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /getapplycart [get] 根据用户id获得借阅记录,如果是admin角色,则查询全部

func (*CartController) GetApprovalCart

func (c *CartController) GetApprovalCart()

@Title get usercartlist @Description get usercartlist @Param status query string true "The status for usercart list" @Param searchText query string false "The searchText of usercart" @Param pageNo query string true "The page for usercart list" @Param limit query string true "The limit of page for usercart list" @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /getapprovalcart [get] 根据用户id获得借阅记录,如果是admin角色,则查询全部

func (*CartController) GetCart

func (c *CartController) GetCart()

@Title get usercarttpl @Description get usercarttpl @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /getcart [get]

func (*CartController) UpdateApprovalCart

func (c *CartController) UpdateApprovalCart()

@Title post update carts @Description post update carts @Param ids query string true "The ids of approvalcats" @Success 200 {object} models.Update @Failure 400 Invalid page supplied @Failure 404 cart not found @router /updateapprovalcart [post]

type CartResult

type CartResult struct {
	Code string      `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

type CatalogLinkCont

type CatalogLinkCont struct {
	Id            int64     `json:"id"`
	ProjectNumber string    //项目编号
	ProjectName   string    //项目名称
	DesignStage   string    //阶段
	Section       string    //专业
	Tnumber       string    //成果编号
	Name          string    //成果名称
	Category      string    //成果类型
	Page          string    //成果计量单位
	Count         float64   //成果数量
	Drawn         string    //编制、绘制
	Designd       string    //设计
	Checked       string    //校核
	Examined      string    //审查
	Verified      string    //核定
	Approved      string    //批准
	Complex       float64   //难度系数
	Drawnratio    float64   //编制、绘制占比系数
	Designdratio  float64   //设计系数
	Checkedratio  float64   //校核系数
	Examinedratio float64   //审查系数
	Datestring    string    //保存字符型日期
	Date          time.Time `orm:"null;auto_now_add;type(datetime)"`
	Created       time.Time `orm:"auto_now_add;type(datetime)"`
	Updated       time.Time `orm:"auto_now_add;type(datetime)"`
	Author        string    //上传者
	State         int
	Link          []models.CatalogLink
}

Catalog添加附件链接和设计说明、校审意见

type CatalogLinkEditable

type CatalogLinkEditable struct {
	Id        int64
	CatalogId int64
	Url       string `orm:"sie(500)"`
	Editable  bool
	Created   time.Time `orm:"auto_now_add;type(datetime)"`
	Updated   time.Time `orm:"auto_now_add;type(datetime)"`
}

附件链接表

type ChatController

type ChatController struct {
	beego.Controller
}

func (*ChatController) Avatar

func (c *ChatController) Avatar()

@Title get avatar @Description get avatar @Param text path string true "The text" @Success 200 {object} models.Avatar @Failure 400 Invalid page supplied @Failure 404 Page not found @router /avatar/:text [get] 用户头像,用流stream的方式

func (*ChatController) Chat

func (c *ChatController) Chat()

@Title get chat @Description get chat @Success 200 {object} models.UserTemple @Failure 400 Invalid page supplied @Failure 404 Page not found @router /chat [get] 聊天室页面

func (*ChatController) HandleConnections

func (c *ChatController) HandleConnections()

@Title get wschat @Description get wschat @Success 200 {object} models.GetChat @Failure 400 Invalid page supplied @Failure 404 Page not found @router /wschat [get] 用户连接后建立websocket长连接

type ChatMessage

type ChatMessage struct {
	Email    string `json:"email"`
	Username string `json:"username"`
	Message  string `json:"message"`
}

Define our message object

type CheckController

type CheckController struct {
	beego.Controller
}

CMSCHECKIN API

func (*CheckController) ActInfo

func (c *CheckController) ActInfo()

@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/actInfo [post]

func (*CheckController) Apply

func (c *CheckController) Apply()

@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/apply [post] 报名某个活动

func (*CheckController) Check

func (c *CheckController) Check()

@Title post checkin person @Description post person @Param userId query string true "The userId for person" @Param activityId query string true "The activityId of activity" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /check [post] 打卡记录写入数据库

func (*CheckController) CheckGetCheck

func (c *CheckController) CheckGetCheck()

@Title get checkin check @Description get check @Param userId query string true "The userId for check" @Param activityId query string true "The activityid for check" @Param year query string true "The year for check" @Param month query string true "The month for check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /checkgetcheck [get] 取得当月的打卡记录

func (*CheckController) CheckSignature

func (c *CheckController) CheckSignature()

@Title get Signature @Description get Signature @Param signature query string true "The signature of wx" @Param timestamp query string true "The timestamp of wx" @Param nonce query string true "The nonce for wx" @Param echostr query string true "The echostr for wx" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /checksignature [get] 检验signature v1/checkin/checksignature

func (*CheckController) Compare

func (c *CheckController) Compare()

@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /check/compare [post]

func (*CheckController) Create

func (c *CheckController) Create()

@Title post checkin activity @Description post person @Param CreaterId query string true "The CreaterId for activity" @Param projectid query string true "The projectid of activity" @Param Caption query string true "The Caption for activity" @Param Desc query string true "The Desc for activity" @Param Location query string true "The Location for activity" @Param Lat query string true "The Lat for activity" @Param Lng query string true "The Lng for activity" @Param SatrtDate query string true "The SatrtDate for activity" @Param EndDate query string true "The EndDate for activity" @Param IfFace query string true "The IfFace for activity" @Param IfPhoto query string true "The IfPhoto for activity" @Param IfLocation query string true "The IfLocation for activity" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/create [post] 新增打卡活动

func (*CheckController) Date

func (c *CheckController) Date()

@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /details/date [post]

func (*CheckController) Details

func (c *CheckController) Details()

@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /check/details [post] 活动详情

func (*CheckController) Getall

func (c *CheckController) Getall()

@Title post checkin person @Description post person @Param projectid query string true "The projectid of activity" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/getall [post] 取出所有活动

func (*CheckController) HaveApply

func (c *CheckController) HaveApply()

@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/haveApply [post]

func (*CheckController) Like

func (c *CheckController) Like()

@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /activity/like [post] 搜索

func (*CheckController) MonthCheck

func (c *CheckController) MonthCheck()

@Title get mothcheckin @Description get monthcheck @Param page query string false "The page of check" @Param limit query string false "The size of check" @Param activityId query string true "The activityid for check" @Param year query string true "The year for check" @Param month query string true "The month for check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /monthcheck [get] 月度考勤统计

func (*CheckController) MonthCheckSum

func (c *CheckController) MonthCheckSum()
getDateById: function getDateById(activity_id,callback) {
    var sql = 'SELECT DISTINCT F_CheckDate FROM v_check_detail WHERE F_ActivityId = ?';
    var params = [activity_id];
    db.connection.query(sql,params,function (err,res) {
        if(err){
            console.log(err);
            return;
        }
        console.log(res);
        callback(res);
    })
},
getCheckByDate: function getCheckByDate(check_date,callback) {
    var sql = 'SELECT * FROM v_check_detail WHERE F_CheckDate = ?'
    var params = [check_date];
    db.connection.query(sql,params,function (err,res) {
        if(err){
            console.log(err);
            return;
        }
        console.log(res);
        callback(res);
    })
},

********************统计************** @Title get mothcheckin @Description get monthcheck @Param projectid query string true "The projectid of check" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /monthchecksum [get]

func (*CheckController) Person

func (c *CheckController) Person()

@Title post checkin person @Description post person @Param username query string true "The userId for person" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /person [post]

func (*CheckController) SendMessage

func (c *CheckController) SendMessage()

@Title post Message @Description post Message @Param app_version query string true "The app_version of wx" @Param template_id query string true "The template_id of Message" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /sendmessage [post] 检验signature v1/checkin/sendmessage 点击发送订阅消息

func (*CheckController) SubscribeMessage

func (c *CheckController) SubscribeMessage()

@Title post subscribemessage @Description post subscribemessage @Param tmplIds query string true "The tmplIds of wx" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /subscribemessage [post] 检验signature v1/checkin/subscribemessage 存储用户订阅subscribemessage

type CheckDate

type CheckDate struct {
	Year  string `json:"year"`
	Month string `json:"month"`
	Day   string `json:"day"`
}

type Comment

type Comment struct {
	Id           int64  `json:"id"`
	Content      string `json:"content"`
	Isme         bool   `json:"is_me",default:"false"`
	Avatar       string `json:"avatar"`
	Username     string `json:"username"`
	Publish_time string `json:"publish_time"`
}

type CommentController

type CommentController struct {
	MindocBaseController
}

func (*CommentController) Create

func (c *CommentController) Create()

func (*CommentController) Index

func (c *CommentController) Index()

func (*CommentController) Lists

func (c *CommentController) Lists()

type Conversionresponse

type Conversionresponse struct {
	EndConvert bool   `json:"endconvert"`
	FileUrl    string `json:"fileurl"`
	Percent    int    `json:"percent"`
}

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 CookieRemember

type CookieRemember struct {
	MemberId int
	Account  string
	Time     time.Time
}

type Details

type Details struct {
	Dates []datess `json:"dates"`
}

type Detailsinfo

type Detailsinfo struct {
	F_CheckPhotoUrl []string
	F_UserName      string
	Details         []details `json:"details"`
}

type DiaryContent

type DiaryContent struct {
	Txt  string
	Html string
}

type DiaryController

type DiaryController struct {
	beego.Controller
}

CMSWXDIARY API

func (*DiaryController) AddWxDiary

func (c *DiaryController) AddWxDiary()

@Title post wx diary by catalogId @Description post diary by projectid @Param projectid query string true "The projectid of diary" @Param title query string true "The title of diary" @Param diarydate query string true "The diarydate of diary" @Param diaryactivity query string true "The diaryactivity of diary" @Param diaryweather query string true "The diaryweather of diary" @Param content query string true "The content of diary" @Param skey query string true "The skey of user" @Success 200 {object} models.AddDiary @Failure 400 Invalid page supplied @Failure 404 Diary not found @router /addwxdiary [post] 向设代日记id下添加微信小程序文章_珠三角设代plus用_

func (*DiaryController) DeleteWxDiary

func (c *DiaryController) DeleteWxDiary()

@Title post wx diary by diaryId @Description post diary by catalogid @Param id query string true "The id of diary" @Success 200 {object} models.Adddiary @Failure 400 Invalid page supplied @Failure 404 articl not found @router /deletewxdiary [post] 根据id删除_没删除文章中的图片

func (*DiaryController) Get

func (c *DiaryController) Get()

日志列表页

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) GetWxDiary2

func (c *DiaryController) GetWxDiary2()

日志页面

func (*DiaryController) GetWxdiaries

func (c *DiaryController) GetWxdiaries()

@Title get wx diaries list @Description get diaries by page @Param projectid query string true "The projectid of diary" @Param page query string true "The page for diaries list" @Param limit query string true "The limit of page for diaries list" @Param skey query string false "The skey for diary" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxdiaries [get] 小程序取得日志列表,分页_珠三角设代用

func (*DiaryController) GetWxdiaries2

func (c *DiaryController) GetWxdiaries2()

@Title get wx diaries list @Description get diaries by page @Param id path string true "The id of diaries" @Param page query string true "The page for diaries list" @Param limit query string true "The limit of page for diaries list" @Param skey query string false "The skey for diary" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxdiaries2/:id [get] 网页页面取得日志列表,返回page rows total

func (*DiaryController) HtmlToDoc

func (c *DiaryController) HtmlToDoc()

@Title get wx diaries to doc @Description get diaries to doc @Param projectid query string true "The projectid of diary" @Param page query string true "The page for diaries list" @Param limit query string true "The limit of page for diaries list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxdiaries [get] 将日志导出到word

func (*DiaryController) UpdateWxDiary

func (c *DiaryController) UpdateWxDiary()

@Title post wx diary by diaryid @Description post diary by diaryid @Param id query string true "The id of diary" @Param title query string true "The title of diary" @Param content query string true "The content of diary" @Success 200 {object} models.AddDiary @Failure 400 Invalid page supplied @Failure 404 articl not found @router /updatewxdiary [post] 编辑设代日记id下微信小程序文章_珠三角设代plus用_editor方式

type DocNode

type DocNode struct {
	Id       int    `json:"id"`
	Heading  string `json:"text"`
	Level    int    `json:"level"` //分级
	ParentId int
}

文档结构数据

type Doclist

type Doclist struct {
	Docs  []*flow.Documentstruct `json:"docs"`
	Page  int64                  `json:"page"`
	Total int                    `json:"total"` //string或int64都行!
}

后端分页的数据结构

type Document

type Document struct {
	ID        string `json:"id"`
	ImageURL  string `json:"image_url"`
	Published string `json:"published"`

	Title      string `json:"title"`
	Body       string `json:"body"`
	Alt        string `json:"alt"`
	Transcript string `json:"transcript"`
	Link       string `json:"link,omitempty"`
	News       string `json:"news,omitempty"`
}

Document wraps an xkcd.com comic.

type DocumentController

type DocumentController struct {
	MindocBaseController
}

DocumentController struct

func (*DocumentController) Compare

func (c *DocumentController) Compare()

func (*DocumentController) Content

func (c *DocumentController) Content()

获取文档内容

func (*DocumentController) Create

func (c *DocumentController) Create()

创建一个文档

func (*DocumentController) Delete

func (c *DocumentController) Delete()

删除文档

func (*DocumentController) DeleteHistory

func (c *DocumentController) DeleteHistory()

func (*DocumentController) DownloadAttachment

func (c *DocumentController) DownloadAttachment()

下载附件

func (*DocumentController) Edit

func (c *DocumentController) Edit()

编辑文档

func (*DocumentController) Export

func (c *DocumentController) Export()

Export 导出

func (*DocumentController) History

func (c *DocumentController) History()

文档历史列表

func (*DocumentController) Index

func (c *DocumentController) Index()

文档首页

func (*DocumentController) QrCode

func (c *DocumentController) QrCode()

生成项目访问的二维码

func (*DocumentController) Read

func (c *DocumentController) Read()

阅读文档

func (*DocumentController) RemoveAttachment

func (c *DocumentController) RemoveAttachment()

删除附件

func (*DocumentController) RestoreHistory

func (c *DocumentController) RestoreHistory()

通过文档历史恢复文档

func (*DocumentController) Search

func (c *DocumentController) Search()

项目内搜索

func (*DocumentController) Upload

func (c *DocumentController) Upload()

上传附件或图片

type DocumentDetail

type DocumentDetail struct {
	// DocTypeId    flow.DocTypeID
	Document *flow.Document
	Action   []flow.DocAction
	History  []*flow.DocEventsHistory
	Text     string
	//这里增加一个映射product
	Product models.Product
}

type Documentlist

type Documentlist struct {
	Docs  []*flow.Document `json:"docs"`
	Page  int64            `json:"page"`
	Total int              `json:"total"` //string或int64都行!
}

后端分页的数据结构

type DocxLink struct {
	Id         int64
	Title      string
	Suffix     string
	Permission string
	// Link    string
	Created time.Time
	Updated time.Time
}

type ElasticController

type ElasticController struct {
	beego.Controller
}

CMSELASTIC API

func (*ElasticController) Exists

func (c *ElasticController) Exists(id string) (bool, error)

Exists returns true when a document with id already exists in the store.

func (*ElasticController) Get

func (c *ElasticController) Get()

@Title get elasticsearch web @Description get elasticsearch web @Success 200 {object} models.GetElastic @Failure 400 Invalid page supplied @Failure 404 Elastic not found @router /get [get] 进入搜索主页面

func (*ElasticController) Search

func (c *ElasticController) Search()

@Title get search @Description get earch @Param q query string false "The query=" @Param a formData string false "The after..." @Success 200 {object} models.GetSearch @Failure 400 Invalid page supplied @Failure 404 Search not found @router /search [get] 上传文档——tika解析——构造document——存入es Search returns results matching a query, paginated by after.

func (*ElasticController) Tika

func (c *ElasticController) Tika()

@Title post tika @Description post tika @Success 200 {object} models.PostTika @Failure 400 Invalid page supplied @Failure 404 Tika not found @router /tika [post] 上传文档——tika解析——构造document——存入es

func (*ElasticController) Upload

func (c *ElasticController) Upload()

@Title post bootstrapfileinput @Description post file by BootstrapFileInput @Param id path string true "The id of project" @Param prodlabel query string false "The prodlabel" @Param prodprincipal query string false "The prodprincipal" @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 page not found @router /upload/:id [post] 上传

func (*ElasticController) UploadElastic

func (c *ElasticController) UploadElastic()

@Title upload file to tika&elastic html @Description get upload file to tika&elastic html @Param id path string true "The id of project" @Success 200 {object} models.Elastic @Failure 400 Invalid page supplied @Failure 404 Page not found @router /uploadelastic/:id [get] 进入上传主页面

type EleProjTree

type EleProjTree struct {
	Id       int64          `json:"id"`
	Label    string         `json:"label"`
	Code     string         `json:"code"` //分级目录代码
	Tags     [1]string      `json:"tags"` //显示员工数量,如果定义为数值[1]int,则无论如何都显示0,所以要做成字符
	Lazy     bool           `json:"lazy"`
	Children []*EleProjTree `json:"children"`
}

vue.js-project树状目录数据——带成果数量

type Employee

type Employee struct {
	Id         int64  `form:"-"`
	Name       string `json:"Name"`
	Department string `json:"Department"` //分院
	Secoffice  string `json:"Keshi"`      //科室。当controller返回json给view的时候,必须用text作为字段
	Numbers    int    //分值
	Marks      int    //记录个数
}

type ErrorController

type ErrorController struct {
	MindocBaseController
}

func (*ErrorController) Error403

func (c *ErrorController) Error403()

func (*ErrorController) Error404

func (c *ErrorController) Error404()

func (*ErrorController) Error500

func (c *ErrorController) Error500()

type Fetcher

type Fetcher struct {
	URL    string
	Pieces []RangeHeader
}

Fetcher downloads file from URL.

type FileNode

type FileNode struct {
	Id        int64       `json:"id"`
	Title     string      `json:"text"`
	Code      string      `json:"code"` //分级目录代码
	FileNodes []*FileNode `json:"nodes"`
}

树状目录数据

type FileNode1

type FileNode1 struct {
	Id        int64        `json:"id"`
	Title     string       `json:"text"`
	Code      string       `json:"code"` //分级目录代码
	Tags      [1]string    `json:"tags"` //显示员工数量,如果定义为数值[1]int,则无论如何都显示0,所以要做成字符
	LazyLoad  bool         `json:"lazyLoad"`
	FileNodes []*FileNode1 `json:"nodes"`
}

树状目录数据——带成果数量

type FileNode2

type FileNode2 struct {
	Id    int64  `json:"id"`
	Title string `json:"text"`
	// Code     string    `json:"code"` //分级目录代码
	Tags     [1]string `json:"tags"` //显示员工数量,如果定义为数值[1]int,则无论如何都显示0,所以要做成字符
	LazyLoad bool      `json:"lazyLoad"`
}

树状目录数据——带成果数量和懒加载

type Fileinput

type Fileinput struct {
	InitialPreview       []string        `json:"initialPreview"`
	InitialPreviewConfig []PreviewConfig `json:"initialPreviewConfig"`
}

type FileinputController

type FileinputController struct {
	beego.Controller
}

CMSWX froala API

func (*FileinputController) BootstrapFileInput

func (c *FileinputController) BootstrapFileInput()

@Title post bootstrapfileinput @Description post file by BootstrapFileInput @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /bootstrapfileinput [post] 上传excel文件,格式:第一行,序号-名称-编号,都打上格子

type FinanceContent

type FinanceContent struct {
	Txt  string
	Html string
}

type FinanceController

type FinanceController struct {
	beego.Controller
}

CMSWXDIARY API

func (*FinanceController) AddWxFinance

func (c *FinanceController) AddWxFinance()

@Title post wx finance by catalogId @Description post finance by projectid @Param id path string true "The projectid of finance" @Param amount query string true "The amount of finance" @Param radio query string true "The radio of finance" @Param radio2 query string true "The radio2 of finance" @Param financedate query string true "The financedate of finance" @Param financeactivity query string true "The financeactivity of finance" @Param content query string true "The content of finance" @Param skey query string false "The skey of user" @Success 200 {object} models.AddFinance @Failure 400 Invalid page supplied @Failure 404 Finance not found @router /addwxfinance/:id [post] 向设代日记id下添加微信小程序文章_珠三角设代plus用_

func (*FinanceController) DeleteWxFinance

func (c *FinanceController) DeleteWxFinance()

@Title post wx finance by financeId @Description post finance by catalogid @Param id query string true "The id of finance" @Success 200 {object} models.Addfinance @Failure 400 Invalid page supplied @Failure 404 articl not found @router /deletewxfinance [post] 根据id删除_没删除文章中的图片

func (*FinanceController) Get

func (c *FinanceController) Get()

日志列表页

func (*FinanceController) GetWxFinance

func (c *FinanceController) GetWxFinance()

@Title get wx finance by financeId @Description get finance by financeid @Param id path string true "The id of finance" @Param skey path string true "The skey of user" @Success 200 {object} models.GetFinance @Failure 400 Invalid page supplied @Failure 404 articl not found @router /getwxfinance/:id [get] 根据id查看一篇微信文章

func (*FinanceController) GetWxFinance2

func (c *FinanceController) GetWxFinance2()

财务登记页面——作废

func (*FinanceController) GetWxFinanceList

func (c *FinanceController) GetWxFinanceList()

@Title get wx finance list @Description get finance by page @Param id path string true "The projectid of finance" @Param page query string true "The page for finance list" @Param limit query string true "The limit of page for finance list" @Param skey query string false "The skey for finance" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxfinancelist/:id [get] 小程序取得日志列表,分页,通用

func (*FinanceController) GetWxfinance2

func (c *FinanceController) GetWxfinance2()

@Title get wx finance list @Description get finance by page @Param id path string true "The projectid of finance" @Param page query string true "The page for finance list" @Param limit query string true "The limit of page for finance list" @Param skey query string false "The skey for finance" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxfinance2/:id [get] 网页页面取得日志列表,返回page rows total

func (*FinanceController) HtmlToDoc

func (c *FinanceController) HtmlToDoc()

下面这个没更改

func (*FinanceController) UpdateWxFinance

func (c *FinanceController) UpdateWxFinance()

@Title post wx finance by financeid @Description post finance by financeid @Param id query string true "The id of finance" @Param amount query string true "The amount of finance" @Param radio query string true "The radio of finance" @Param radio2 query string true "The radio2 of finance" @Param financedate query string true "The financedate of finance" @Param content query string true "The content of finance" @Success 200 {object} models.AddFinance @Failure 400 Invalid page supplied @Failure 404 articl not found @router /updatewxfinance [post] 编辑设代日记id下微信小程序文章_珠三角设代plus用_editor方式

type FlowController

type FlowController struct {
	beego.Controller
}

VueFlow API

func (*FlowController) FlowAccessContext

func (c *FlowController) FlowAccessContext()

@Title post wf AccessContext... @Description post AccessContext.. @Param name query string true "The name of AccessContext" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowaccesscontext [post] 管理员定义流程AccessContext 流程命名空间

func (*FlowController) FlowAccessContextList

func (c *FlowController) FlowAccessContextList()

@Title get wf AccessContext... @Description post AccessContext.. @Param page query string true "The page of AccessContext" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowaccesscontextlist [get] 管理员定义流程AccessContext 流程命名空间

func (*FlowController) FlowAccessContextUpdate

func (c *FlowController) FlowAccessContextUpdate()

@Title post wf docaccesscontext... @Description post workflowdocaccesscontext.. @Param name query string false "The name of docaccesscontext" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowaccesscontextupdate [post] 管理员定义流程类型docstate、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowAction

func (c *FlowController) FlowAction()

@Title post wf docaction... @Description post workflowdocaction.. @Param name query string true "The name of docaction" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowaction [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowActionDelete

func (c *FlowController) FlowActionDelete()

@Title post wf docaction... @Description post workflowdocaction.. @Param name query string true "The name of docaction" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowactiondelete [post] 管理员定义流程类型docstate、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowActionList

func (c *FlowController) FlowActionList()

@Title get wf docaction... @Description get workflowdocaction.. @Param page query string true "The page of docaction" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowactionlist [get] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowActionUpdate

func (c *FlowController) FlowActionUpdate()

@Title post wf docaction... @Description post workflowdocaction.. @Param name query string false "The name of docaction" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowactionupdate [post] 管理员定义流程类型docstate、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowDoc

func (c *FlowController) FlowDoc()

@Title post wf document @Description post document @Param dtid query string true "The doctypeid of document" @Param acid query string true "The accesscontext of document" @Param gid query string true "The groupid of Group" @Param name query string true "The name of document" @Param data query string false "The data of document" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdoc [post] 网页端添加一个带流程的文档

func (*FlowController) FlowDocList

func (c *FlowController) FlowDocList()

@Title get wf doclist @Description get workflow doclist @Param dtid query string true "The id of doctype" @Param page query string true "The page of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdoclist [get] 文件列表页,水平显示每个文件的状态

func (*FlowController) FlowDocumentDetail

func (c *FlowController) FlowDocumentDetail()

@Title get wf document details @Description get documentdetail @Param dtid query string true "The id of doctype" @Param docid query string true "The id of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdocumentdetail [get] 2.点击一个具体文档——显示详情——显示actions

func (*FlowController) FlowDocumentList

func (c *FlowController) FlowDocumentList()

@Title get wf document @Description get document @Param dtid query string true "The id of doctype" @Param acid query string true "The id of accesscontext" @Param gid query string false "The id of group" @Param dsid query string false "The id of docstate" @Param page query string true "The page of doc" @Param limit query string false "The limit page of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdocumentlist [get] 1.管理员列表显示文档,根据用户等参数来过滤,这个是正确使用方式

func (*FlowController) FlowDocumentList2

func (c *FlowController) FlowDocumentList2()

@Title get wf document @Description get document @Param dtid query string true "The id of doctype" @Param acid query string true "The id of accesscontext" @Param gid query string false "The id of group" @Param dsid query string false "The id of docstate" @Param page query string true "The page of doc" @Param limit query string false "The limit page of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdocumentlist2 [get] 1.列表显示文档,根据用户等参数来过滤,这个是正确使用方式

func (*FlowController) FlowEvent

func (c *FlowController) FlowEvent()

@Title post wf event @Description get docevent @Param name query string true "The name of event" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdocevent [post] 添加events:

func (*FlowController) FlowEventList

func (c *FlowController) FlowEventList()

@Title get wf eventlist @Description get doceventlist @Param page query string true "The page of event" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdoceventlist [get] 查询events:

func (*FlowController) FlowGroup

func (c *FlowController) FlowGroup()

@Title post wf Group... @Description post Group.. @Param name query string true "The name of Group" @Param grouptype query string true "The type of Group" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgroup [post] 管理员定义流程Group 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowGroupList

func (c *FlowController) FlowGroupList()

@Title get wf Group... @Description post Group.. @Param page query string true "The page of Group" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgrouplist [get] 管理员定义流程Group 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowGroupMailbox

func (c *FlowController) FlowGroupMailbox()

@Title get group mailbox @Description get groupmailbox @Param gid query string true "The id of group" @Param page query string true "The page of mailbox" @Param limit query string false "The limit page of mailbox" @Param unread query string false "The unread of mailbox" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgroupmailbox [get] 1.列表显示用户组邮件

func (*FlowController) FlowGroupRole

func (c *FlowController) FlowGroupRole()

@Title post wf GroupRole... @Description post GroupRole.. @Param name query string true "The name of GroupRole" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgrouprole [post] 管理员定义流程GroupRole 来自accesscontext

func (*FlowController) FlowGroupRoleList

func (c *FlowController) FlowGroupRoleList()

@Title get wf GroupRole... @Description get GroupRole.. @Param page query string true "The page of GroupRole" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgrouprolelist [get] 查询group的角色role-来自accesscontext

func (*FlowController) FlowGroupUsersList

func (c *FlowController) FlowGroupUsersList()

@Title get wf GroupUsers... @Description post Group.. @Param name query string true "The name of GroupUser" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowgroupuserslist [get] 查询Group下的所有Users

func (*FlowController) FlowNext

func (c *FlowController) FlowNext()

@Title post wf next @Description post workflow next @Param dtid query string true "The id of doctype" @Param daid query string true "The id of action" @Param docid query string true "The id of document" @Param gid query string true "The id of group" @Param text query string false "The text of apply" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flownext [post] FlowDocAction列出了文档和动作,用户点击action,则这里进行修改docstate

func (*FlowController) FlowNode

func (c *FlowController) FlowNode()

@Title post wf Node... @Description post Node.. @Param name query string true "The name of Node" @Param dtid query string true "The doctypeid of Node" @Param dsid query string true "The docstateid of Node" @Param acid query string true "The accesssid of Node" @Param nodetype query string true "The nodetype of Node" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flownode [post] 管理员定义流程Node 流程node,输入doctype,docstate1,access,workflow,name和nodetype A `Node` each has to be defined for each document state of the workflow, except the final state. Please look at `_Workflows.AddNode`.

func (*FlowController) FlowNodeList

func (c *FlowController) FlowNodeList()

@Title get wf Node... @Description post Node.. @Param page query string true "The page of Node" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flownodelist [get] 管理员定义流程Node

func (*FlowController) FlowPermission

func (c *FlowController) FlowPermission()

@Title post wf Permission... @Description post Permission.. @Param name query string true "The name of Permission" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowpermission [post] 管理员定义流程Permission 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowRole

func (c *FlowController) FlowRole()

@Title post wf Role... @Description post Role.. @Param name query string true "The name of Role" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowrole [post] 管理员定义流程Role 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowRoleList

func (c *FlowController) FlowRoleList()

@Title get wf Role... @Description post Role.. @Param page query string true "The page of Role" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowrolelist [get] 查询所有role

func (*FlowController) FlowRolePermissionList

func (c *FlowController) FlowRolePermissionList()

@Title get wf Permission... @Description post Permission.. @Param page query string true "The page of Permission" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowrolepermissionlist [get] 查询role和对应对应的permission

func (*FlowController) FlowState

func (c *FlowController) FlowState()

@Title post wf docstate... @Description post workflowdocstate.. @Param name query string true "The name of docstate" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowstate [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowStateDelete

func (c *FlowController) FlowStateDelete()

@Title post wf docstate... @Description post workflowdocstate.. @Param name query string true "The name of docstate" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowstatedelete [post] 管理员定义流程类型docstate、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowStateList

func (c *FlowController) FlowStateList()

@Title post wf docstate... @Description post workflowdocstate.. @Param page query string false "The page of docstate" @Param limit query string false "The size of page" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowstatelist [get] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowStateUpdate

func (c *FlowController) FlowStateUpdate()

@Title post wf docstate... @Description post workflowdocstate.. @Param name query string false "The name of docstate" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowstateupdate [post] 管理员定义流程类型docstate、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowTransition

func (c *FlowController) FlowTransition()

@Title post wf transition... @Description post transition.. @Param name query string true "The name of transition" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtransition [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程流向transition,输入doctype、docstate1、docaction、docstate2

func (*FlowController) FlowTransitionDelete

func (c *FlowController) FlowTransitionDelete()

@Title post wf doctransition... @Description post workflowdoctransition.. @Param name query string true "The name of doctransition" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtransitiondelete [post] 管理员定义流程类型docstate、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowTransitionList

func (c *FlowController) FlowTransitionList()

@Title get wf transition... @Description post transition.. @Param page query string true "The page of transition" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtransitionlist [get] 展示doctype下from docstate可能的transion

func (*FlowController) FlowTransitionUpdate

func (c *FlowController) FlowTransitionUpdate()

@Title post wf doctransition... @Description post workflowdoctransition.. @Param name query string false "The name of doctransition" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtransitionupdate [post] 管理员定义流程类型docstate、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowType

func (c *FlowController) FlowType()

@Title post wf doctype... @Description post workflowdoctype.. @Param name query string true "The name of doctype" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtype [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowTypeDelete

func (c *FlowController) FlowTypeDelete()

@Title post wf doctype... @Description post workflowdoctype.. @Param name query string true "The name of doctype" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtypedelete [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowTypeList

func (c *FlowController) FlowTypeList()

@Title get wf doctypelist... @Description get workflowdoctype.. @Param page query string false "The page of doctype" @Param limit query string false "The size of page" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtypelist [get] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowTypeUpdate

func (c *FlowController) FlowTypeUpdate()

@Title post wf doctype... @Description post workflowdoctype.. @Param name query string false "The name of doctype" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowtypeupdate [post] 管理员定义流程类型doctype、流程状态state、流程节点node、 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowUser

func (c *FlowController) FlowUser()

@Title post wf user... @Description post user.. @Param firstname query string true "The firstname of user" @Param lastname query string true "The lastname of user" @Param email query string true "The email of user" @Param active query string true "The active of user" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowuser [post] 管理员定义流程user 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowUserGroup

func (c *FlowController) FlowUserGroup()

@Title post wf GroupUser... @Description post Group.. @Param name query string true "The name of GroupUser" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowusergroup [post] 管理员定义流程GroupUser 将users加入group

func (*FlowController) FlowUserList

func (c *FlowController) FlowUserList()

@Title get wf user... @Description post user.. @Param page query string true "The page of user" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowuserlist [get] 管理员定义流程user 流程动作action、流程流向transition、流程事件event

func (*FlowController) FlowUserMailbox

func (c *FlowController) FlowUserMailbox()

@Title get user mailbox @Description get usermailbox @Param uid query string true "The id of user" @Param page query string true "The page of mailbox" @Param limit query string false "The limit page of mailbox" @Param unread query string false "The unread of mailbox" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowusermailbox [get] 1.管理员看到的——列表显示用户邮件

func (*FlowController) FlowUserMailbox2

func (c *FlowController) FlowUserMailbox2()

@Title get user mailbox @Description get usermailbox @Param uid query string true "The id of user" @Param page query string true "The page of mailbox" @Param limit query string false "The limit page of mailbox" @Param unread query string false "The unread of mailbox" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowusermailbox2 [get] 1.网页端列表显示用户个人邮件

func (*FlowController) FlowWorkflow

func (c *FlowController) FlowWorkflow()

@Title post wf Workflow... @Description post Workflow.. @Param name query string true "The name of Workflow" @Param dtid query string true "The doctypeid of Workflow" @Param dsid query string true "The docstate of Workflow" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowworkflow [post] 管理员定义流程Workflow 输入doctype和初始action

func (*FlowController) FlowWorkflowList

func (c *FlowController) FlowWorkflowList()

@Title post wf Workflow... @Description post Workflow.. @Param page query string true "The page of Workflow" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowworkflowlist [get] 管理员定义流程Workflow 输入doctype和初始action

func (*FlowController) Get

func (c *FlowController) Get()

func (*FlowController) LiuCheng

func (c *FlowController) LiuCheng()

@Title get flowchart text @Description get flowchart text @Param docstate query string true "The state of document" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /liucheng [get] 2.点击一个具体文档——显示详情——显示flowchart

func (*FlowController) WorkFlow

func (c *FlowController) WorkFlow()

@Title show wf page @Description show workflow page @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /workflow [get] 页面

func (*FlowController) WxFlowDoc

func (c *FlowController) WxFlowDoc()

@Title post wf document @Description post document @Param dtid query string true "The doctypeid of document" @Param acid query string true "The accesscontext of document" @Param gid query string true "The groupid of Group" @Param name query string true "The name of document" @Param id query string true "The id of document" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /wxflowdoc [post] 小程序上添加一个带流程的文档——这个作废,在article里添加一个文章直接作为初始流程

func (*FlowController) WxFlowNext

func (c *FlowController) WxFlowNext()

@Title post wf next @Description post workflow next @Param dtid query string true "The id of doctype" @Param daid query string true "The id of action" @Param articleid query string true "The id of article" @Param gid query string true "The id of group" @Param messageid query string true "The messageid of doc" @Param text query string false "The text of apply" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /wxflownext [post] 小程序端next

func (*FlowController) WxFlowUserMailbox2

func (c *FlowController) WxFlowUserMailbox2()

@Title get user mailbox @Description get usermailbox @Param page query string true "The page of mailbox" @Param limit query string false "The limit page of mailbox" @Param unread query string false "The unread of mailbox" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /wxflowusermailbox2 [get] 小程序列表显示用户个人邮件——待处理 用户点击邮件,进入文章详细,携带messageid——wxflownext里对邮件进行已读处理

type FlvController

type FlvController struct {
	beego.Controller
}

CMSFLV API

func (*FlvController) Get

func (c *FlvController) Get()

@Title getFlv @Description get admin page @Success 200 {object} success @Failure 400 Invalid page @Failure 404 page not found @router / [get]

func (*FlvController) GetFlvList

func (c *FlvController) GetFlvList()

@Title getFlv @Description get admin page @Success 200 {object} success @Failure 400 Invalid page @Failure 404 page not found @router /flvlist [get]

type FroalaController

type FroalaController struct {
	beego.Controller
}

CMSWX froala API

func (*FroalaController) ControllerFroala

func (c *FroalaController) ControllerFroala()

下面这个没用

func (*FroalaController) UploadAppreciationPhoto

func (c *FroalaController) UploadAppreciationPhoto()

@Title post wx user avatar @Description post user avatar @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /uploadappreciationphoto [post] 小程序wx添加用户赞赏码上传

func (*FroalaController) UploadImg

func (c *FroalaController) UploadImg()

添加文章里的图片上传

func (*FroalaController) UploadVideo

func (c *FroalaController) UploadVideo()

添加文章里的视频上传

func (*FroalaController) UploadWikiImg

func (c *FroalaController) UploadWikiImg()

添加wiki里的图片上传

func (*FroalaController) UploadWxAvatar

func (c *FroalaController) UploadWxAvatar()

@Title post wx user avatar @Description post user avatar @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /uploadwxavatar [post] 微信wx添加用户头像上传

func (*FroalaController) UploadWxEditorImg

func (c *FroalaController) UploadWxEditorImg()

@Title post wx artile img by catalogId @Description post article img by catalogid @Param projectid query string true "The projectid of wxeditor" @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /uploadwxeditorimg [post] 微信wx添加文章里的图片上传_小程序富文本里的上传图片

func (*FroalaController) UploadWxImg

func (c *FroalaController) UploadWxImg()

@Title post wx artile img by catalogId @Description post article img by catalogid @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /uploadwximg [post] 微信wx添加文章里的图片上传_独立上传图片模式

func (*FroalaController) UploadWxImgs

func (c *FroalaController) UploadWxImgs()

@Title post wx artile img by catalogId @Description post article img by catalogid @Param id path string true "The id of project" @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /uploadwximgs/:id [post] 微信wx添加文章里的图片上传——这个鲁班宝,但这个id更通用

func (*FroalaController) UploadWxVideo

func (c *FroalaController) UploadWxVideo()

@Title post wx video by catalogId @Description post video by catalogid @Param id path string true "The id of project" @Param desc query string true "The descript of video" @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 article not found @router /uploadwxvideo/:id [post] 微信wx添加视频

func (*FroalaController) UploadWxVideoCover

func (c *FroalaController) UploadWxVideoCover()

@Title post wx videoCover by videoid @Description post videoCover by videoid @Param id query string true "The id of video" @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 article not found @router /uploadwxvideocover/:id [post] 微信wx添加视频

type Gantt

type Gantt struct {
	Tasks            []Task           `json:"tasks"`
	Resources        []Resourcesvalue `json:"resources"`
	Roles            []Rolesvalue     `json:"roles"`
	SelectedRow      int64            `json:"selectedRow"`
	DeletedTaskIds   []int64          `json:"deletedTaskIds"`
	CanWrite         bool             `json:"canWrite"`
	CanWriteOnParent bool             `json:"canWriteOnParent"`
	Zoom             string           `json:"zoom"` //"w3"
}

type GetAll

type GetAll struct {
	Completed  []models.Activity `json:"completed"`
	Processing []models.Activity `json:"processing"`
}

type GroupUsers

type GroupUsers struct {
	Id    flow.GroupID
	Group *flow.Group
	Users []*flow.User
}

type Hit

type Hit struct {
	//Document
	URL        string        `json:"url"`
	Sort       []interface{} `json:"sort"`
	Highlights *struct {
		Title      []string `json:"title"`
		Body       []string `json:"body"`
		Alt        []string `json:"alt"`
		Transcript []string `json:"transcript"`
	} `json:"highlights,omitempty"`
	ID        string `json:"id"`
	ImageURL  string `json:"image_url"`
	Title     string `json:"title"`
	Body      string `json:"body"`
	Published string `json:"published"`
	Author    Author `json:"author"`
}

Hit wraps the document returned in search response.

type HomeController

type HomeController struct {
	MindocBaseController
}

func (*HomeController) Index

func (c *HomeController) Index()

func (*HomeController) Prepare

func (c *HomeController) Prepare()

type Img

type Img struct {
	Src  string `json:"src"`
	Name string `json:"name"`
}

type IndexController

type IndexController struct {
	beego.Controller
}

func (*IndexController) AddCarCalendar

func (c *IndexController) AddCarCalendar()

添加日历

func (*IndexController) AddMeetCalendar

func (c *IndexController) AddMeetCalendar()

添加日历

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) DropCarCalendar

func (c *IndexController) DropCarCalendar()

拖曳

func (*IndexController) DropMeetCalendar

func (c *IndexController) DropMeetCalendar()

拖曳

func (*IndexController) GetAttendanceCalendar

func (c *IndexController) GetAttendanceCalendar()

*****考勤 显示页面

func (*IndexController) GetCarCalendar

func (c *IndexController) GetCarCalendar()

*******汽车 显示页面

func (*IndexController) GetIndex

func (c *IndexController) GetIndex()

显示侧栏结构,科室里员工

func (*IndexController) GetOrderCalendar

func (c *IndexController) GetOrderCalendar()

*****订餐 显示页面

func (*IndexController) GetUser

func (c *IndexController) GetUser()

上面那个是显示侧栏 这个是显示右侧iframe框架

func (*IndexController) MeetCalendar

func (c *IndexController) MeetCalendar()

返回日历json数据 如果是管理员,则显示全部,非管理员,显示公开

func (*IndexController) MeetingroomCalendar

func (c *IndexController) MeetingroomCalendar()

*****会议室 显示页面

func (*IndexController) Product

func (c *IndexController) Product()

上面那个是显示右侧页面 这个是填充数据最新成果、项目、文章

func (*IndexController) ResizeCarCalendar

func (c *IndexController) ResizeCarCalendar()

resize

func (*IndexController) ResizeMeetCalendar

func (c *IndexController) ResizeMeetCalendar()

resize

func (*IndexController) SearchCalendar

func (c *IndexController) SearchCalendar()

func (*IndexController) UpdateCarCalendar

func (c *IndexController) UpdateCarCalendar()

修改

func (*IndexController) UpdateMeetCalendar

func (c *IndexController) UpdateMeetCalendar()

修改

type ItemsetsController

type ItemsetsController struct {
	MindocBaseController
}

func (*ItemsetsController) Index

func (c *ItemsetsController) Index()

func (*ItemsetsController) List

func (c *ItemsetsController) List()

func (*ItemsetsController) Prepare

func (c *ItemsetsController) Prepare()

type LabelController

type LabelController struct {
	MindocBaseController
}

func (*LabelController) Index

func (c *LabelController) Index()

查看包含标签的文档列表.

func (*LabelController) List

func (c *LabelController) List()

func (*LabelController) Prepare

func (c *LabelController) Prepare()

type LegislationController

type LegislationController struct {
	beego.Controller
}

func (*LegislationController) Checklist

func (c *LegislationController) Checklist()

搜索规范或者图集的名称或编号

func (*LegislationController) FileInput

func (c *LegislationController) FileInput()

上传文档供解析-替换(增加)标准号

func (*LegislationController) Index

func (c *LegislationController) Index()

type Legislationmore

type Legislationmore struct {
	Id            int64
	Number        string //`orm:"unique"`
	Title         string //原法规名称
	LibraryNumber string //规范有效版本库中的编号
	LibraryTitle  string
	Execute       string //执行时间
}

type List

type List struct {
	Name string `json:"name"`
}

****项目时间轴——大事记

type Listimage

type Listimage struct {
	Id        int64    `json:"id"`
	UserNo    string   `json:"userNo"`
	DiagTime  string   `json:"diagTime"`
	DiagDoc   string   `json:"diagDoc"`
	Feature   string   `json:"feature"`
	MatchList string   `json:"matchList"`
	Result    string   `json:"result"`
	Desc      string   `json:"desc"`
	Images    []string `json:"images"`
	Ctime     string   `json:"ctime"`
	Utime     string   `json:"utime"`
}

type LocationController

type LocationController struct {
	beego.Controller
}

func (*LocationController) AddLocationNavigate

func (c *LocationController) AddLocationNavigate()

@Title post locationnavigate by locationid @Description post locationnavigate by locationid @Param title query string true "The title of location" @Param label query string true "The label of locationnavigate" @Param location query string true "The location of location" @Param address query string false "The address of location" @Param lat query string false "The lat of location" @Param lng query string false "The lng of location" @Param id path string true "The locationid of location" @Success 200 {object} models.CreateLocation @Failure 400 Invalid page supplied @Failure 404 pas not found @router /addlocationnavigate/:id [post] 添加一个定位

func (*LocationController) AddLocationPart

func (c *LocationController) AddLocationPart()

@Title post location by projectid @Description post location by projectid @Param title query string true "The title of locationpart" @Param describe query string true "The describe of locationpart" @Param sort query string true "The sort of locationpart" @Param userid query string true "The userid of location" @Param id path string true "The projectid of project" @Success 200 {object} models.CreateLocation @Failure 400 Invalid page supplied @Failure 404 pas not found @router /addlocationpart/:id [post] 添加一个定位组

func (*LocationController) GetLocation

func (c *LocationController) GetLocation()

@Title get location by userid @Description get location by userid @Param id path string true "The projectid of location" @Success 200 {object} models.GetLocationPage @Failure 400 Invalid page supplied @Failure 404 location not found @router /getlocation/:id [get] 根据项目id列出有关的location

func (*LocationController) GetLocationById

func (c *LocationController) GetLocationById()

@Title get location by locationid @Description get location by locationid @Param id path string true "The id of location" @Success 200 {object} models.GetLocationPage @Failure 400 Invalid page supplied @Failure 404 location not found @router /getlocationbyid/:id [get] 根据locationid查出location

type LoginController

type LoginController struct {
	beego.Controller
}

CMSWX login API

func (*LoginController) Islogin

func (c *LoginController) Islogin()

@Title get user login... @Description get login.. @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /islogin [get] login弹框输入用户名和密码后登陆提交

func (*LoginController) Login

func (c *LoginController) 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) Loginerr

func (c *LoginController) Loginerr()

作废20180915

func (*LoginController) Logout

func (c *LoginController) Logout()

退出登录

func (*LoginController) Post

func (c *LoginController) Post()

login页面输入用户名和密码后登陆提交

func (*LoginController) SsoLogin

func (c *LoginController) SsoLogin()

*********SSO单点登录JWT token @Title get sso login @Description get sso logintpl @Param service query string false "The service of login" @Success 200 {object} success @Failure 400 Invalid page supplied @Failure 404 articl not found @router /ssologin [get]

func (*LoginController) SsoLoginPost

func (c *LoginController) SsoLoginPost()

@Title post sso login @Description post sso login data @Param login_name query string true "The name of user" @Param password query string true "The password of user" @Param service query string false "The service of location.href" @Success 200 {object} success @Failure 400 Invalid page supplied @Failure 404 articl not found @router /ssologinpost [post]

func (*LoginController) WxHasSession

func (c *LoginController) WxHasSession()

@Title get wx haslogin @Description get wx usersession @Success 200 {object} success @Failure 400 Invalid page supplied @Failure 404 articl not found @router /wxhassession [get] 微信小程序根据小程序自身存储的session,检查ecms里的openid session是否有效

func (*LoginController) WxLogin

func (c *LoginController) WxLogin()

@Title post wx login @Description post wx login @Param id path string true "The id of wx" @Param code path string true "The jscode of wxuser" @Success 200 {object} success @Failure 400 Invalid page supplied @Failure 404 articl not found @router /wxlogin/:id [get] 微信小程序根据openid自动匹配用户名后登录。访问微信服务器获取用户信息 如果 用户不存在,则提供openid给注册界面——wxregion

type Logstruct

type Logstruct struct {
	Id       int64  `json:"id"`
	Datetime string `json:"datetime"`
	Tag      string `json:"tag"`
	File     string `json:"file"`
	User     string `json:"user"`
	Action   string `json:"action"`
	Url      string `json:"url"`
}

type MainController

type MainController struct {
	beego.Controller
}

func (*MainController) Autodesk

func (c *MainController) Autodesk()

func (*MainController) Get

func (c *MainController) Get()

func (*MainController) Getecmsapi

func (c *MainController) Getecmsapi()

api

func (*MainController) Getecmsdoc

func (c *MainController) Getecmsdoc()

文档

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) ModifyDatabase

func (c *MainController) ModifyDatabase()

删除数据表和字段测试

func (*MainController) PhotoSwipe

func (c *MainController) PhotoSwipe()

@Title get photoswipe @Description get photoswipe @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /photoswipe [get]

func (*MainController) Postdata

func (c *MainController) Postdata()

func (*MainController) Register

func (c *MainController) Register()

func (*MainController) Slide

func (c *MainController) Slide()

func (*MainController) Test

func (c *MainController) Test()

func (*MainController) UpdateDatabase

func (c *MainController) UpdateDatabase()

升级数据库

func (*MainController) UserManage

func (c *MainController) UserManage()

@Title get usermanage @Description get usermanage @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /usermanage [get]

type ManagerController

type ManagerController struct {
	MindocBaseController
}

func (*ManagerController) AttachDelete

func (c *ManagerController) AttachDelete()

删除附件.

func (*ManagerController) AttachDetailed

func (c *ManagerController) AttachDetailed()

附件详情.

func (*ManagerController) AttachList

func (c *ManagerController) AttachList()

附件列表.

func (*ManagerController) Books

func (c *ManagerController) Books()

项目列表.

func (*ManagerController) ChangeMemberRole

func (c *ManagerController) ChangeMemberRole()

变更用户权限.

func (*ManagerController) Comments

func (c *ManagerController) Comments()

func (*ManagerController) Config

func (c *ManagerController) Config()

func (*ManagerController) CreateMember

func (c *ManagerController) CreateMember()

添加用户.

func (*ManagerController) CreateToken

func (c *ManagerController) CreateToken()

CreateToken 创建访问来令牌.

func (*ManagerController) DeleteBook

func (c *ManagerController) DeleteBook()

删除项目.

func (*ManagerController) DeleteComment

func (c *ManagerController) DeleteComment()

DeleteComment 标记评论为已删除

func (*ManagerController) DeleteMember

func (c *ManagerController) DeleteMember()

删除一个用户,并将该用户的所有信息转移到超级管理员上.

func (*ManagerController) EditBook

func (c *ManagerController) EditBook()

编辑项目.

func (*ManagerController) EditMember

func (c *ManagerController) EditMember()

编辑用户信息.

func (*ManagerController) Index

func (c *ManagerController) Index()

func (*ManagerController) Itemsets

func (c *ManagerController) Itemsets()

项目空间列表.

func (*ManagerController) ItemsetsDelete

func (c *ManagerController) ItemsetsDelete()

删除项目空间.

func (*ManagerController) ItemsetsEdit

func (c *ManagerController) ItemsetsEdit()

编辑或添加项目空间.

func (*ManagerController) LabelDelete

func (c *ManagerController) LabelDelete()

删除标签

func (*ManagerController) LabelList

func (c *ManagerController) LabelList()

标签列表

func (*ManagerController) Prepare

func (c *ManagerController) Prepare()

func (*ManagerController) PrivatelyOwned

func (c *ManagerController) PrivatelyOwned()

设置项目私有状态.

func (*ManagerController) Setting

func (c *ManagerController) Setting()

项目设置.

func (*ManagerController) Team

func (c *ManagerController) Team()

func (*ManagerController) TeamBookAdd

func (c *ManagerController) TeamBookAdd()

给团队增加项目.

func (*ManagerController) TeamBookDelete

func (c *ManagerController) TeamBookDelete()

删除团队项目.

func (*ManagerController) TeamBookList

func (c *ManagerController) TeamBookList()

团队项目列表.

func (*ManagerController) TeamChangeMemberRole

func (c *ManagerController) TeamChangeMemberRole()

func (*ManagerController) TeamCreate

func (c *ManagerController) TeamCreate()

func (*ManagerController) TeamDelete

func (c *ManagerController) TeamDelete()

func (*ManagerController) TeamEdit

func (c *ManagerController) TeamEdit()

func (*ManagerController) TeamMemberAdd

func (c *ManagerController) TeamMemberAdd()

func (*ManagerController) TeamMemberDelete

func (c *ManagerController) TeamMemberDelete()

func (*ManagerController) TeamMemberList

func (c *ManagerController) TeamMemberList()

func (*ManagerController) TeamSearchBook

func (c *ManagerController) TeamSearchBook()

搜索未参与的项目.

func (*ManagerController) TeamSearchMember

func (c *ManagerController) TeamSearchMember()

搜索团队用户.

func (*ManagerController) Transfer

func (c *ManagerController) Transfer()

Transfer 转让项目.

func (*ManagerController) UpdateMemberStatus

func (c *ManagerController) UpdateMemberStatus()

更新用户状态.

func (*ManagerController) Users

func (c *ManagerController) Users()

用户列表.

type MathPayTable

type MathPayTable struct {
	Rows  []*models.PayMath `json:"rows"`
	Page  int64             `json:"page"`
	Total int64             `json:"total"` //string或int64都行!
}

后端分页的模板列表数据结构

type MindocBaseController

type MindocBaseController struct {
	beego.Controller
	Member                *models.Member
	Option                map[string]string
	EnableAnonymous       bool
	EnableDocumentHistory bool
}

func (*MindocBaseController) BaseUrl

func (c *MindocBaseController) BaseUrl() string

func (*MindocBaseController) CheckErrorResult

func (c *MindocBaseController) CheckErrorResult(code int, err error)

func (*MindocBaseController) CheckJsonError

func (c *MindocBaseController) CheckJsonError(code int, err error)

如果错误不为空,则响应错误信息到浏览器.

func (*MindocBaseController) ExecuteViewPathTemplate

func (c *MindocBaseController) ExecuteViewPathTemplate(tplName string, data interface{}) (string, error)

ExecuteViewPathTemplate 执行指定的模板并返回执行结果.

func (*MindocBaseController) JsonResult

func (c *MindocBaseController) JsonResult(errCode int, errMsg string, data ...interface{})

JsonResult 响应 json 结果

func (*MindocBaseController) Prepare

func (c *MindocBaseController) Prepare()

Prepare 预处理.

func (*MindocBaseController) SetMember

func (c *MindocBaseController) SetMember(member models.Member)

SetMember 获取或设置当前登录用户信息,如果 MemberId 小于 0 则标识删除 Session

func (*MindocBaseController) ShowErrorPage

func (c *MindocBaseController) ShowErrorPage(errCode int, errMsg string)

显示错误信息页面.

type MindocSearchController

type MindocSearchController struct {
	MindocBaseController
}

func (*MindocSearchController) Index

func (c *MindocSearchController) Index()

搜索首页

func (*MindocSearchController) User

func (c *MindocSearchController) User()

搜索用户

type Nail

type Nail struct {
	Aspect int  `json:"aspect"`
	First  bool `json:"first"`
	Height int  `json:"height"`
	Width  int  `json:"width"`
}
type Navbartruct struct {
	Id    int64
	Title string
}

成果页导航条

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) Download

func (c *OnlyController) Download()

文档管理页面下载文档2

func (*OnlyController) DownloadDoc

func (c *OnlyController) DownloadDoc()

协作页面下载的文档,采用绝对路径型式

func (*OnlyController) DownloadOnlyDoc

func (c *OnlyController) DownloadOnlyDoc()

@Title post download onlydoc @Description post download onlydoc by id @Param id query string true "The id of onlydoc" @Param url query string true "The url of onlyofficeserver" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /downloadonlydoc [post] 文档管理页面下载最新的文档——先检查是否有人打开文档

func (*OnlyController) Get

func (c *OnlyController) Get()

文档管理页面

func (*OnlyController) GetData

func (c *OnlyController) GetData()

提供给列表页的table中json数据

func (*OnlyController) GetTree

func (c *OnlyController) GetTree()

生成word文档的文档结构图

func (*OnlyController) Getpermission

func (c *OnlyController) Getpermission()

查询一个文档,哪些用户和角色拥有什么样的权限 用casbin的内置方法,不应该用查询数据库方法

func (*OnlyController) OfficeView

func (c *OnlyController) OfficeView()

cms中查阅office

func (*OnlyController) OfficeViewCallback

func (c *OnlyController) OfficeViewCallback()

cms中返回值 没改历史版本问题

func (*OnlyController) OnlyOffice

func (c *OnlyController) OnlyOffice()

协作页面的显示 补充权限判断 补充token

func (*OnlyController) UpdateDoc

func (c *OnlyController) UpdateDoc()

编辑成果信息

func (*OnlyController) UrltoCallback

func (c *OnlyController) UrltoCallback()

协作页面的保存和回调 关闭浏览器标签后获取最新文档保存到文件夹

type OnlyLink struct {
	Id        int64
	Code      string
	Title     string
	Label     string
	End       time.Time
	Principal string
	Uid       int64
	Uname     string
	Created   time.Time
	Updated   time.Time
	Docxlink  []DocxLink
}

type Onlyoffice1

type Onlyoffice1 struct {
	Id      int64
	Code    string
	Title   string
	Ext     string
	Created time.Time
	Updated time.Time
}

type Pathstruct

type Pathstruct struct {
	ParentPath string
}

type PayController

type PayController struct {
	beego.Controller
}

func (*PayController) AddApplyRecharge

func (c *PayController) AddApplyRecharge()

@Title post user recharge @Description get user recharge @Param id path string true "The id of user" @Param amount query string true "The amount of money" @Success 200 {object} models.Recharge @Failure 400 Invalid page supplied @Failure 404 recharge not found @router /addapplyrecharge/:id [post] 用户添加充值申请方法-发送数据

func (*PayController) AddUserPays

func (c *PayController) AddUserPays()

@Title post userpay by mathtempleid @Description post userpay by mathtempid @Param usertempleid query string true "The id of mathtemple" @Param amount query string true "The amout of pays" @Success 200 {object} models.Pay @Failure 400 Invalid page supplied @Failure 404 pas not found @router /adduserpays [post] 添加用户id打赏一个mathtemple记录

func (*PayController) AddUserRecharge

func (c *PayController) AddUserRecharge()

@Title post users recharge @Description get users recharge @Param id path string true "The id of recharge" @Param amount query string true "The amount of money" @Success 200 {object} models.Recharge @Failure 400 Invalid page supplied @Failure 404 recharge not found @router /adduserrecharge/:id [post] 管理员同意后发送充值数据-修改数值

func (*PayController) AddWxUserPays

func (c *PayController) AddWxUserPays()

@Title post wx userpay by articleid @Description post userpay by articleid @Param articleid query string true "The id of article" @Param amount query string true "The amout of pays" @Success 200 {object} models.AddUserPays @Failure 400 Invalid page supplied @Failure 404 pas not found @router /addwxuserpays [post] 用户id打赏一个文章id

func (*PayController) ApplyRecharge

func (c *PayController) ApplyRecharge()

@Title get user recharge @Description get user recharge @Success 200 {object} models.Recharge @Failure 400 Invalid page supplied @Failure 404 recharge not found @router /applyrecharge [get] 用户申请充值页面

func (*PayController) GetApplyRecharge

func (c *PayController) GetApplyRecharge()

@Title get user recharge @Description get user recharge @Success 200 {object} models.Recharge @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getapplyrecharge [get] 管理员查看所有用户的充值申请页面

func (*PayController) GetApplyRechargeData

func (c *PayController) GetApplyRechargeData()

@Title get user rechargedata @Description get user rechargedata @Param page query string false "The page of recharges" @Param limit query string false "The size of recharges" @Success 200 {object} models.Recharge @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getapplyrechargedata [get] 管理员查看所有用户的充值申请数据

func (*PayController) GetPay

func (c *PayController) GetPay()

@Title get pay list @Description get pay by page @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getpay [get] 根据userid获得花费和收入记录——作废

func (*PayController) GetUserGetAppreciations

func (c *PayController) GetUserGetAppreciations()

@Title get userappreciations list @Description get userappreciation by page @Param page query string true "The page for myappreciation list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getusergetappreciations [get] 根据用户id获得所有赞赏记录

func (*PayController) GetUserMoney

func (c *PayController) GetUserMoney()

@Title get user money @Description get user money @Success 200 {object} models.GetUserMoney @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getusermoney [get] 根据用户id获得账户余额

func (*PayController) GetUserPay

func (c *PayController) GetUserPay()

@Title get pay list @Description get pay by page @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getuserpay [get] 显示用户收支记录

func (*PayController) GetUserPayAppreciations

func (c *PayController) GetUserPayAppreciations()

@Title get userappreciations list @Description get userappreciation by page @Param page query string true "The page for myappreciation list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getuserpayappreciations [get] 根据用户id查询所有花费记录,即查询用户支出记录

func (*PayController) GetUserPaylist

func (c *PayController) GetUserPaylist()

@Title get userpays list @Description get userpay by page @Param page query string true "The page for mymoney list" @Param page query string false "The page of projproducts" @Param limit query string false "The size of page" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getuserpaylist [get] 根据用户id获得所有收支记录

func (*PayController) GetWxPay

func (c *PayController) GetWxPay()

@Title get wx pay list @Description get pay by page @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxpay [get] 根据pay id获得一条记录

func (*PayController) GetWxUserGetAppreciations

func (c *PayController) GetWxUserGetAppreciations()

@Title get wx userappreciations list @Description get userappreciation by page @Param page query string true "The page for myappreciation list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxusergetappreciations [get] 根据用户id获得所有赞赏记录

func (*PayController) GetWxUserMoney

func (c *PayController) GetWxUserMoney()

@Title get wx user money @Description get user money @Success 200 {object} models.GetUserMoney @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxusermoney [get] 根据用户id获得账户余额

func (*PayController) GetWxUserPayAppreciations

func (c *PayController) GetWxUserPayAppreciations()

@Title get wx userappreciations list @Description get userappreciation by page @Param page query string true "The page for myappreciation list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxuserpayappreciations [get] 根据用户id查询所有花费记录,即查询用户支出记录

func (*PayController) GetWxUserPays

func (c *PayController) GetWxUserPays()

@Title get wx userpays list @Description get userpay by page @Param page query string true "The page for mymoney list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getwxuserpays [get] 根据用户id获得所有收支记录

type PdfCpuController

type PdfCpuController struct {
	beego.Controller
}

CMSADMIN API

func (*PdfCpuController) AddWatermarks

func (c *PdfCpuController) AddWatermarks()

@Title post signature to pdf @Description post signature to pdf @Param id path string true "The id of pdf" @Param pageNumber query string false "The pageNumber of pdf" @Param numPages query string true "The numPages of pdf" @Param offsetdx query string false "The offsetdx of signature" @Param offsetdy query string false "The offsetdy of signature" @Param scale query string false "The scale of signature" @Param image query string true "The base64 image of signature" @Success 200 {object} models.AddSignature @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /addwatermarks/:id [post]

func (*PdfCpuController) OnlyPdf

func (c *PdfCpuController) OnlyPdf()

@Title get only pdf @Description get only pdf @Param id path string true "The id of pdf" @Success 200 {object} models.GetOnlyPdf @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /onlypdf/:id [get]

func (*PdfCpuController) Test

func (c *PdfCpuController) Test()

@Title get test @Description get test @Param id path string true "The id of test" @Success 200 {object} models.Gettest @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /test/:id [get]

type PdfLink struct {
	Id        int64
	Title     string
	Link      string
	ActIndex  string
	FileSize  int64
	Downloads int64
	Created   time.Time
	Updated   time.Time
}

type PreviewConfig

type PreviewConfig struct {
	Caption     string `json:"caption"`
	Size        int64  `json:"size"`
	Url         string `json:"url"`
	DownloadUrl string `json:"downloadUrl"`
	Key         string `json:"key"`
}

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) GetProjProducts

func (c *ProdController) GetProjProducts()

取出项目下所有成果——这个修改

func (*ProdController) GetsynchProducts

func (c *ProdController) GetsynchProducts()

获取项目同步ip数据

func (*ProdController) ProvidesynchProducts

func (c *ProdController) ProvidesynchProducts()

对外提供成果数据接口

func (*ProdController) UpdateProduct

func (c *ProdController) UpdateProduct()

编辑成果信息

type ProductLink struct {
	Id             int64
	Code           string
	Title          string
	Label          string
	Relevancy      []RelevancyProj
	Uid            int64
	Principal      string
	ProjectId      int64
	Content        string
	Created        time.Time
	Updated        time.Time
	Views          int64
	Pdflink        []PdfLink
	Attachmentlink []AttachmentLink
	Articlecontent []ArticleContent
	DocState       flow.DocState
	ProdDoc        models.ProductDocument
}

type ProfController

type ProfController struct {
	beego.Controller
}

func (*ProfController) Get

func (this *ProfController) Get()

type ProjController

type ProjController struct {
	beego.Controller
}

func (*ProjController) AddCalendar

func (c *ProjController) AddCalendar()

*******项目日历***** 添加日历

func (*ProjController) AddProjTemplet

func (c *ProjController) AddProjTemplet()

根据项目模板添加项目

func (*ProjController) AddProject

func (c *ProjController) AddProject()

添加项目和项目目录、文件夹

func (*ProjController) AddProjectCate

func (c *ProjController) AddProjectCate()

后台添加项目id的子节点

func (*ProjController) Calendar

func (c *ProjController) Calendar()

返回日历json数据 如果是管理员,则显示全部,非管理员,显示公开

func (*ProjController) DeleteCalendar

func (c *ProjController) DeleteCalendar()

删除,如果有下级,一起删除

func (*ProjController) DeleteProject

func (c *ProjController) DeleteProject()

根据id删除proj 后台删除目录,代替DeleteProjectCate

func (*ProjController) DeleteProjectCate

func (c *ProjController) DeleteProjectCate()

后台删除项目目录节点——这个用删除项目代替了。 删除多节点 删除多节点的子节点 作废了,用DeleteProject代替了!!!!

func (*ProjController) DropCalendar

func (c *ProjController) DropCalendar()

拖曳

func (*ProjController) Get

func (c *ProjController) Get()

项目列表页面 根据用户角色权限获取项目列表

func (*ProjController) GetCalendar

func (c *ProjController) GetCalendar()

func (*ProjController) GetProjCate

func (c *ProjController) GetProjCate()

根据id懒加载项目下级目录——上面那个是显示第一级和第二级目录

func (*ProjController) GetProjNav

func (c *ProjController) GetProjNav()

取得某个侧栏id下的导航条

func (*ProjController) GetProjProd

func (c *ProjController) GetProjProd()

根据项目侧栏id查看这个id下的成果,不含子目录中的成果 任何一级目录下都可以放成果 这个作废——以product中的GetProjProd()

func (*ProjController) GetProjProducts

func (c *ProjController) GetProjProducts()

点击项目名称,根据id查看项目下所有成果 这个只是页面。表格内的数据填充用product controllers里的getprojproducts方法

func (*ProjController) GetProject

func (c *ProjController) GetProject()

分页提供给项目列表页的table中json数据 根据id查看项目,查出项目当前级和下一级目录 点击第二级后,用下面的懒加载目录

func (*ProjController) GetProjectCate

func (c *ProjController) GetProjectCate()

后台根据id查出项目目录,以便进行编辑

func (*ProjController) GetProjectTree

func (c *ProjController) GetProjectTree()

@Title get cms projecttree... @Description get projecttree.. @Param id path string true "The id of projecttree" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /getprojecttree/:id [get] 根据id查看项目,查出项目当前级和下一级目录 点击第二级后,用下面的懒加载目录

func (*ProjController) GetProjects

func (c *ProjController) GetProjects()

@Title get cms projectlist... @Description get projectlist.. @Param projectid query string false "The id of project" @Param pageNo query string false "The page of projectlist" @Param limit query string false "The size of page" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /getprojects [get] 分页提供给项目列表页的table中json数据 http://127.0.0.1/v1/project/getprojects?limit=15&pageNo=1 微信小程序里要改id等为小写 根据用户角色权限获取项目列表

func (*ProjController) GetWxProjects

func (c *ProjController) GetWxProjects()

@Title get wx projectlist... @Description get projectlist.. @Param projectid query string false "The id of project" @Param pageNo query string false "The page of projectlist" @Param limit query string false "The size of page" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /getwxprojects [get] 取出所有项目列表,table中json数据 http://127.0.0.1/v1/project/getwxprojects 根据用户角色权限获取项目列表

func (*ProjController) ProjectTimeline

func (c *ProjController) ProjectTimeline()

项目时间轴

func (*ProjController) ProjectUserRole

func (c *ProjController) ProjectUserRole()

@Title get project user permission @Description get project user permission @Param pid query string true "The id of project" @Success 200 {object} models.GetProjectPage @Failure 400 Invalid page supplied @Failure 404 project not found @router /projectuserrole [get] 判断登录用户是管理员还是isme

func (*ProjController) QuickAddWxProjTemplet

func (c *ProjController) QuickAddWxProjTemplet()

@Title post wx quickaddproject... @Description post quickaddproject.. @Param projectcode query string true "The projectcode of project" @Param projecttitle query string true "The projecttitle of project" @Param tempprojid query string true "The tempprojid of project" @Param istemppermission query string false "The permission of project" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /quickaddwxproject [post] 根据项目模板添加项目

func (*ProjController) ResizeCalendar

func (c *ProjController) ResizeCalendar()

resize

func (*ProjController) Timeline

func (c *ProjController) Timeline()

要分页

func (*ProjController) UpdateCalendar

func (c *ProjController) UpdateCalendar()

修改

func (*ProjController) UpdateProject

func (c *ProjController) UpdateProject()

管理员或本人修改项目名称、负责人等, 没有修改硬盘目录,需要手动修改!!

func (*ProjController) UpdateProjectCate

func (c *ProjController) UpdateProjectCate()

后台修改项目目录节点名称

func (*ProjController) UploadImage

func (c *ProjController) UploadImage()

应该将日历改为froala,那么这个就可以淘汰了。

func (*ProjController) UserProjectPermission

func (c *ProjController) UserProjectPermission()

@Title get user project editor tree @Description get user project editor tree @Param pid query string true "The id of project" @Success 200 {object} models.GetProjectPage @Failure 400 Invalid page supplied @Failure 404 project not found @router /userprojectpermission [get] 用户跳转到自己编辑项目目录页面

func (*ProjController) UserpProjectEditorTree

func (c *ProjController) UserpProjectEditorTree()

@Title get user project editor tree @Description get user project editor tree @Param pid query string true "The id of project" @Success 200 {object} models.GetProjectPage @Failure 400 Invalid page supplied @Failure 404 project not found @router /userprojecteditortree [get] 用户跳转到自己编辑项目目录页面

type ProjGantController

type ProjGantController struct {
	beego.Controller
}

func (*ProjGantController) AddProjGant

func (c *ProjGantController) AddProjGant()

添加项目和项目目录、文件夹

func (*ProjGantController) CloseProjGant

func (c *ProjGantController) CloseProjGant()

关闭项目进度

func (*ProjGantController) DeleteProjGant

func (c *ProjGantController) DeleteProjGant()

根据id删除proj 后台删除目录,

func (*ProjGantController) Get

func (c *ProjGantController) Get()

项目列表页面

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 Project1

type Project1 struct {
	Id        int64 //`json:"id"`_微信小程序的项目选择里要记得修改
	Code      string
	Title     string
	Label     string
	Principal string
	Number    int64
	Created   time.Time
	Updated   time.Time
}

type RangeHeader

type RangeHeader struct {
	StartPos int64
	EndPos   int64
}

RangeHeader defines the part of file to download.

func (*RangeHeader) String

func (h *RangeHeader) String() string

type RegistController

type RegistController struct {
	beego.Controller
}

func (*RegistController) CheckUname

func (this *RegistController) CheckUname()

func (*RegistController) Get

func (this *RegistController) Get()

func (*RegistController) GetUname

func (this *RegistController) GetUname()

post方法

func (*RegistController) GetUname1

func (this *RegistController) GetUname1()

get方法,用于x-editable的select2方法

func (*RegistController) Post

func (this *RegistController) Post()

提交注册名称

func (*RegistController) RegistErr

func (this *RegistController) RegistErr()

func (*RegistController) WxRegion

func (c *RegistController) WxRegion()

@Title post wx region @Description post wx region @Param uname query string true "The username of user" @Param password query string true "The password of account" @Param code query string true "The code of wx" @Param app_version query string true "The app_version of wx" @Success 200 {object} models.SaveUser @Failure 400 Invalid page supplied @Failure 404 user not found @router /wxregion [post] 将用户名和密码存入数据表,openid也存入数据表

func (*RegistController) WxRegist

func (c *RegistController) WxRegist()

@Title post wx regist @Description post wx regist @Param uname query string true "The username of ueser" @Param password query string true "The password of account" @Param code query string true "The code of wx" @Param app_version query string true "The app_version of wx" @Success 200 {object} models.SaveUser @Failure 400 Invalid page supplied @Failure 404 user not found @router /wxregist [post] 微信小程序根据用户输入的用户名和密码后,将openid存到用户名对应的数据表中, 方便下次自动根据openid匹配用户后自动登录wxlogin 这个不是真正的注册。另见WxRegion()

type RelevancyProj

type RelevancyProj struct {
	Id        int64  `form:"-"`
	ProductId int64  `orm:"null"` //成果编号
	Relevancy string `orm:"null"` //关联成果编号
	ProjectId int64  //目录id
}

type ReplyController

type ReplyController struct {
	beego.Controller
}

func (*ReplyController) AddWiki

func (c *ReplyController) AddWiki()

添加wiki评论

func (*ReplyController) AddWxLike

func (c *ReplyController) AddWxLike()

@Title post wx like by articleId @Description post like by articleId @Param id query string true "The id of article" @Success 200 {object} models.AddTopicLike @Failure 400 Invalid page supplied @Failure 404 article not found @router /addwxlike/:id [post] 添加文章点赞

func (*ReplyController) AddWxRelease

func (c *ReplyController) AddWxRelease()

@Title post wx release by articleId @Description post release by articleId @Param content query string true "The content of release" @Param app_version query string false "the app_version of wx" @Param avatar query string false "The avatar of release" @Param username query string false "The username of release" @Param publish_time query string false "The time of release" @Success 200 {object} models.AddTopicReply @Failure 400 Invalid page supplied @Failure 404 article not found @router /addwxrelease/:id [post] 添加文章评论

func (*ReplyController) DeleteWiki

func (c *ReplyController) DeleteWiki()

删除wiki评论

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 Resourcesvalue struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

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) Post

func (c *RoleController) Post()

添加角色

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 struct {
	RoleID flow.RoleID
	Action map[string]struct {
		DocTypeID flow.DocTypeID
		Actions   []*flow.DocAction
	}
}

type Rolepermission

type Rolepermission struct {
	Id         int64
	Name       string `json:"name"`
	Rolenumber string
	Permission string `json:"role"`
}

权限表提交的table中json数据解析成struct

type Rolesvalue

type Rolesvalue struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type SearchController

type SearchController struct {
	beego.Controller
}

func (*SearchController) Get

func (c *SearchController) Get()

显示搜索也 用模态框弹窗吧_比较麻烦

func (*SearchController) GetWxPdfList

func (c *SearchController) GetWxPdfList()

@Title get wx pdf list @Description get pdf by page @Param keyword query string false "The keyword of pdf" @Param projectid query string false "The projectid of pdf" @Param searchpage query string true "The page for pdf list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /getwxpdflist [get] 小程序取得某个项目目录下的所有pdf,分页 结合搜索来用

func (*SearchController) SearchProduct

func (c *SearchController) SearchProduct()

首页里的搜索所有成果

func (*SearchController) SearchProjProducts

func (c *SearchController) SearchProjProducts()

在某个项目里搜索成果:全文搜索,article全文,编号,名称,关键字,作者……

func (*SearchController) SearchProject

func (c *SearchController) SearchProject()

搜索项目

func (*SearchController) SearchProjects

func (c *SearchController) SearchProjects()

未修改

func (*SearchController) SearchWiki

func (c *SearchController) SearchWiki()

搜索wiki

func (*SearchController) SearchWxDrawings

func (c *SearchController) SearchWxDrawings()

@Title get wx drawings list @Description get drawings by page @Param keyword query string false "The keyword of drawings" @Param projectid query string false "The projectid of drawings" @Param searchpage query string true "The page for drawings list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 drawings not found @router /searchwxdrawings [get] 小程序取得所有图纸列表,分页_plus

func (*SearchController) SearchWxProducts

func (c *SearchController) SearchWxProducts()

@Title get wx drawings list @Description get drawings by page @Param keyword query string false "The keyword of drawings" @Param projectid query string false "The projectid of drawings" @Param searchpage query string true "The page for drawings list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 drawings not found @router /searchwxproducts [get] 小程序取得所有图纸列表,分页_plus

type SearchResults

type SearchResults struct {
	Total int    `json:"total"`
	Hits  []*Hit `json:"hits"`
}

SearchResults wraps the Elasticsearch search response.

type Select1

type Select1 struct {
	Title string `json:"title"`
}

type ServiceValidateController

type ServiceValidateController struct {
	beego.Controller
}

func (*ServiceValidateController) Get

func (c *ServiceValidateController) Get()

type SettingController

type SettingController struct {
	MindocBaseController
}

func (*SettingController) Index

func (c *SettingController) Index()

func (*SettingController) Password

func (c *SettingController) Password()

func (*SettingController) Upload

func (c *SettingController) Upload()

Upload 上传图片

type ShareController

type ShareController struct {
	// BaseController
	beego.Controller
}

func (*ShareController) Browse

func (c *ShareController) Browse()

@Title get a share @Description get a share @Param shareUuid query string true "The shareUuid of share" @Param code query string false "The code of share" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /browse [get]

func (*ShareController) Create

func (c *ShareController) Create()

@Title post create a new share @Description post create a new share @Param matterUuids query string true "The matterUuids of share" @Param expireInfinity query bool true "The xpireInfinity of share" @Param expireTime query string true "The expireTime of share" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /create [post]

func (*ShareController) Detail

func (c *ShareController) Detail()

@Title get a share @Description get a share @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /detail/:id [get]

func (*ShareController) Download

func (c *ShareController) Download()

@Title download a share @Description download a share @Param shareUuid query string true "The shareUuid of share" @Param code query string false "The code of share" @Param id query string true "The id of attachment" @Success 200 {object} models.Attachment @Failure 400 Invalid page supplied @Failure 404 articl not found @router /download [post]

func (*ShareController) DownloadZip

func (c *ShareController) DownloadZip()

@Title download a share @Description download a share @Param shareUuid query string true "The shareUuid of share" @Param code query string false "The code of share" @Success 200 {object} models.Attachment @Failure 400 Invalid page supplied @Failure 404 articl not found @router /downloadzip [post]

type Signature

type Signature struct {
	BmpData string `json:"bmpdata"`
	Ret     string `json:"ret"`
}

type StandardController

type StandardController struct {
	beego.Controller
}

func (*StandardController) DeleteStandard

func (c *StandardController) DeleteStandard()

删除规范

func (*StandardController) DeleteValid

func (c *StandardController) DeleteValid()

删除有效库中选中

func (*StandardController) DownloadStandard

func (c *StandardController) DownloadStandard()

@Title dowload standardpdf @Description get standardpdf by id @Param id path string true "The id of standardpdf" @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /downloadstandard/:id [get] 文件流方式下载pdf规范

func (*StandardController) GetStandard

func (c *StandardController) GetStandard()

显示所有规范

func (*StandardController) ImportExcel

func (c *StandardController) ImportExcel()

上传excel文件,导入到规范数据库,用于批量导入规范文件

func (*StandardController) ImportLibrary

func (c *StandardController) ImportLibrary()

上传excel文件,导入到有效版本数据库

func (*StandardController) Index

func (c *StandardController) Index()

func (*StandardController) Search

func (c *StandardController) Search()

@Title get standardlist @Description get standardlist @Param searchText query string false "The searchText of standard" @Param pageNo query string true "The page for standard list" @Param limit query string true "The limit of page for standard list" @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /search [get] 根据用户输入的关键字,查询规范 搜索规范或者图集的名称或编号 20170704:linumber没有用。因为用category+编号+年份比较好

func (*StandardController) SearchWxStandards

func (c *StandardController) SearchWxStandards()

@Title get wx standards list @Description get standards by page @Param keyword query string true "The keyword of standards" @Param searchpage query string true "The page for drawings list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 standards not found @router /searchwxstandards [get] 小程序取得规范列表,分页_plus

func (*StandardController) StandardPdf

func (c *StandardController) StandardPdf()

@Title get standardpdf @Description get standardpdf @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /standardpdf [get] 手机端使用的下载方式

func (*StandardController) Standard_one_addbaidu

func (c *StandardController) Standard_one_addbaidu()

func (*StandardController) UpdateStandard

func (c *StandardController) UpdateStandard()

修改规范

func (*StandardController) Upload

func (c *StandardController) Upload()

@Title post bootstrapfileinput @Description post file by BootstrapFileInput @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 page not found @router /standard/upload [post] 上传

func (*StandardController) UploadStandard

func (c *StandardController) UploadStandard()

@Title upload file to standard html @Description get upload file to standard html @Success 200 {object} models.Elastic @Failure 400 Invalid page supplied @Failure 404 Page not found @router /uploadstandard [get] 进入上传主页面

func (*StandardController) Valid

func (c *StandardController) Valid()

显示所有有效库

func (*StandardController) WxStandardPdf

func (c *StandardController) WxStandardPdf()

@Title dowload wx standardpdf @Description get wx standardpdf by id @Param id path string true "The id of standardpdf" @Success 200 {object} models.GetAttachbyId @Failure 400 Invalid page supplied @Failure 404 pdf not found @router /wxstandardpdf/:id [get] 小程序查询规范

type StandardTableserver

type StandardTableserver struct {
	Rows  []Standardmore `json:"rows"`
	Page  int            `json:"page"`
	Total int64          `json:"total"` //string或int64都行!
}

后端分页的数据结构

type Standardmore

type Standardmore struct {
	Id            int64
	Number        string
	Title         string
	NumTitle      string
	Uname         string //换成用户名
	CategoryName  string //换成规范类别GB、DL……
	Content       string `orm:"sie(5000)"`
	Route         string
	Link          string
	ActIndex      string
	Created       time.Time `orm:"index","auto_now_add;type(datetime)"`
	Updated       time.Time `orm:"index","auto_now;type(datetime)"`
	Views         int64     `orm:"index"`
	LibraryNumber string    //规范有效版本库中的编号
	LibraryTitle  string
	LiNumber      string //完整编号
}

type SuccessController

type SuccessController struct {
	beego.Controller
}

func (*SuccessController) Get

func (c *SuccessController) Get()

type Tableserver

type Tableserver struct {
	Rows  []Project1 `json:"rows"`
	Page  int64      `json:"page"`
	Total int64      `json:"total"` //string或int64都行!
}

后端分页的数据结构

type Task

type Task struct {
	Id               int64         `json:"id"`
	Status           string        `json:"status"`
	Level            int           `json:"level"`
	Code             string        `json:"code"`
	Name             string        `json:"name"`
	StartIsMilestone bool          `json:"startIsMilestone"`
	Start            int64         `json:"start"`
	EndIsMilestone   bool          `json:"endIsMilestone"`
	End              int64         `json:"end"`
	Duration         int           `json:"duration"`
	Progress         int           `json:"progress"`
	Depends          string        `json:"depends"`
	HasChild         bool          `json:"hasChild"`
	Description      string        `json:"description"`
	Relevance        int           `json:"relevance"`
	Type             string        `json:"type"`
	TypeId           string        `json:"typeId"`
	CanWrite         bool          `json:"canWrite"`
	Collapsed        bool          `json:"collapsed"`
	Assigs           []Assigsvalue `json:"assigs"`
}

type TemplateController

type TemplateController struct {
	MindocBaseController
	BookId int
}

func (*TemplateController) Add

func (c *TemplateController) Add()

添加模板

func (*TemplateController) Delete

func (c *TemplateController) Delete()

删除模板

func (*TemplateController) Get

func (c *TemplateController) Get()

获取指定模板信息

func (*TemplateController) List

func (c *TemplateController) List()

获取模板列表

type TodoController

type TodoController struct {
	beego.Controller
}

CMSTODO API

func (*TodoController) Create

func (c *TodoController) Create()

@Title post todo @Description post todo @Param name query string true "The name for todo" @Param projectid query string true "The projectid of todo" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /create [post]

func (*TodoController) DeleteTodo

func (c *TodoController) DeleteTodo()

@Title delete todolist @Description delete tolist @Param todoid query string false "The id of todo" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /deletetodo [post] 删除待办

func (*TodoController) GetTodo

func (c *TodoController) GetTodo()

@Title get todolist @Description get tolist @Param projectid query string true "The projectid of todo" @Param page query string false "The page of todo" @Param limit query string false "The size of todo" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /gettodo [get] 取出所有未完成待办

func (*TodoController) UpdateTodo

func (c *TodoController) UpdateTodo()

@Title update todolist @Description update tolist @Param todoid query string false "The id of todo" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /updatetodo [post] 更新待办状态

type Tree

type Tree struct {
	Id    int64  `json:"id"`
	Nodes []Tree `json:"nodes"`
}

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 User1

type User1 struct {
	Id   string `json:"id"` //必须大写才能在tpl中显示{{.json}}
	Name string `json:"name"`
}

type UserController

type UserController struct {
	beego.Controller
}

func (*UserController) AddUser

func (c *UserController) AddUser()

@Title add user @Description add user @Param username query string false "The name of user" @Param nickname query string false "The nickname of user" @Param password query string false "The password of user" @Param email query string false "The email of user" @Param department query string false "The department of user" @Param secoffice query string false "The secoffice of user" @Param ip query string false "The ip of user" @Param port query string false "The port of user" @Param status query string false "The status of user" @Param role query string false "The role of user" @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /adduser [post] 添加用户

func (*UserController) AddWxUser

func (c *UserController) AddWxUser()

@Title post wx user @Description post user @Param uname query string true "The username of user" @Param nickname query string true "The nickname of user" @Param password query string true "The Password of user" @Param email query string false "The email of user" @Param department query string false "The department of user" @Param secoffice query string false "The secoffice of user" @Success 200 {object} models.AddUser @Failure 400 Invalid page supplied @Failure 404 user not found @router /addwxuser [post] 小程序添加用户

func (*UserController) DeleteUser

func (c *UserController) DeleteUser()

@Title delete user @Description delete user @Param ids query string false "The ids of user" @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /deleteuser [post] 删除用户

func (*UserController) GetUserByUsername

func (c *UserController) GetUserByUsername()

@Title get user @Description get user @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /getuserbyusername [get] 用户查看自己,修改密码等

func (*UserController) ImportUsers

func (c *UserController) ImportUsers()

@Title import users @Description import users @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /importusers [post] 上传excel文件,导入到数据库 引用来自category的查看成果类型里的成果

func (*UserController) Index

func (c *UserController) Index()

func (*UserController) Roleerr

func (this *UserController) Roleerr()

func (*UserController) UpdateUser

func (c *UserController) UpdateUser()

@Title update user @Description add user @Param pk query string false "The pk of user" @Param name query string false "The name of user" @Param value query string false "The value of user" @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /updateuser [post] 在线修改保存某个字段

func (*UserController) UpdateWxUser

func (c *UserController) UpdateWxUser()

@Title post wx userpassword by uid @Description post user password by uid @Param uid query string true "The id of user" @Param oldpass query string true "The oldPassword of user" @Param newpass query string true "The newpassword of user" @Param id path string true "The id of wx" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /updatewxuser [post] 小程序修改用户密码

func (*UserController) User

func (c *UserController) User()

@Title get user @Description get user by userid @Param id path string false "The id of user" @Param role query string false "The role of user" @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /user/:id [get] 如果不带id则取到所有用户 如果带id,则取一个用户

func (*UserController) Usermyself

func (c *UserController) Usermyself()

@Title get usermyself @Description get usermyself @Success 200 {object} models.User @Failure 400 Invalid page supplied @Failure 404 user not found @router /usermyself [get] 用户个人数据,填充table,以便编辑

func (*UserController) View

func (c *UserController) View()

用户登录查看自己的资料_不是这个,是GetUserByUsername

type Userrole

type Userrole struct {
	Id         int64
	Rolename   string `json:"name"`
	Rolenumber string
	Status     string `json:"status"` //20201225这里是否要修改为role
	Level      string
}

type Userselect

type Userselect struct {
	Id   int64  //`json:"id"`
	Ad   string `json:"id"`
	Name string `json:"text"`
}

type VideoController

type VideoController struct {
	beego.Controller
}

CMSVideo API

func (*VideoController) GetUserVideo

func (c *VideoController) GetUserVideo()

@Title get uservideolist @Description get uservideolist @Param id path string true "The id of project" @Param searchText query string false "The searchText of uservideo" @Param pageNo query string true "The page for uservideo list" @Param limit query string true "The limit of page for uservideo list" @Success 200 {object} models.Create @Failure 400 Invalid page supplied @Failure 404 cart not found @router /getuservideo/:id [get] 根据用户id获得借阅记录,如果是admin角色,则查询全部

type WebResult

type WebResult struct {
	Code string      `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

type WikiController

type WikiController struct {
	beego.Controller
}

func (*WikiController) Add

func (c *WikiController) Add()

func (*WikiController) AddPic

func (c *WikiController) AddPic()

这个是微信小程序添加wiki的方法

func (*WikiController) AddWiki

func (c *WikiController) AddWiki()

这个提交添加wiki的方法

func (*WikiController) Delete

func (c *WikiController) Delete()

删除文章

func (*WikiController) DeleteAttachment

func (c *WikiController) DeleteAttachment()

删除文章中的附件,保持页面不跳转怎么办?

func (*WikiController) Get

func (c *WikiController) Get()

func (*WikiController) Modify

func (c *WikiController) Modify()

修改wiki页面

func (*WikiController) Post

func (c *WikiController) Post()

func (*WikiController) View

func (c *WikiController) View()

func (*WikiController) Viewbyuname

func (c *WikiController) Viewbyuname()

根据用户名查看wiki

func (*WikiController) Wiki_many_addbaidu

func (c *WikiController) Wiki_many_addbaidu()

type WordTree

type WordTree struct {
	Id        int         `json:"id"`
	Heading   string      `json:"text"`
	Level     int         `json:"level"` //分级目录,这里其实没什么用了
	WordTrees []*WordTree `json:"nodes"`
}

树状目录数据——如何定位到word的位置呢

type WxArticle

type WxArticle struct {
	Id      int64  `json:"id",form:"-"`
	Title   string `json:"title"`
	Subtext string `json:"subtext",orm:"sie(20)"`
	Author  string `json:"author"`
	// UserId      in64      `json:"userid"`
	AppreciationUrl string    `json:"appreciationurl"` //作者赞赏码
	IsArticleMe     bool      `json:"isArticleMe"`
	ImgUrl          string    `json:"imgUrl"`
	ImgUrls         []Img     `json:"imgUrls"`
	Content         string    `json:"html",orm:"sie(5000)"`
	LeassonType     int       `json:"leassonType"`
	ProductId       int64     `orm:"null"`
	Views           int64     `orm:"default(0)"`
	Created         time.Time `orm:"auto_now_add;type(datetime)"`
	Updated         string    `json:"time",orm:"auto_now_add;type(datetime)"`
	Word            string    `json:"word",orm:"sie(5000)"`
	LikeNum         int       `json:"likeNum"`
	Liked           bool      `json:"liked"`
	Comment         []Comment `json:"comment"`
	CommentNum      int       `json:"commentNum"`
	DocState        flow.DocState
	DocNotification flow.Notification
	ProdDoc         models.ProductDocument
}

type WxArticleFlowDetail

type WxArticleFlowDetail struct {
	Id      int64  `json:"id",form:"-"`
	Title   string `json:"title"`
	Subtext string `json:"subtext",orm:"sie(20)"`
	Author  string `json:"author"`
	// UserId      in64      `json:"userid"`
	AppreciationUrl string    `json:"appreciationurl"` //作者赞赏码
	IsArticleMe     bool      `json:"isArticleMe"`
	ImgUrl          string    `json:"imgUrl"`
	ImgUrls         []Img     `json:"imgUrls"`
	Content         string    `json:"html",orm:"sie(5000)"`
	LeassonType     int       `json:"leassonType"`
	ProductId       int64     `orm:"null"`
	Views           int64     `orm:"default(0)"`
	Created         time.Time `orm:"auto_now_add;type(datetime)"`
	Updated         string    `json:"time",orm:"auto_now_add;type(datetime)"`
	Word            string    `json:"word",orm:"sie(5000)"`
	LikeNum         int       `json:"likeNum"`
	Liked           bool      `json:"liked"`
	Comment         []Comment `json:"comment"`
	CommentNum      int       `json:"commentNum"`

	Document *flow.Document
	Action   []flow.DocAction
	History  []*flow.DocEventsHistory
	Text     string
	//这里增加一个映射product
	Product models.Product
}

微信小程序里质量流程的单个具体文章

type WxFinance

type WxFinance struct {
	Id int64 `json:"id",form:"-"`
	// Title       string    `orm:"sie(20)"`
	Financedate string    `orm:"sie(20)"`
	Content     string    `json:"html",orm:"sie(5000)"`
	ProjectId   int64     `orm:"null"`
	UserId      int64     `orm:"null"`
	Amount      int       `json:"amount"`
	Consider    bool      `json:"consider"`
	IsArticleMe bool      `json:"isArticleMe"`
	Views       int64     `orm:"default(0)"`
	Created     time.Time `orm:"auto_now_add;type(datetime)"`
	Updated     time.Time `orm:"auto_now_add;type(datetime)"`
}

type WxProduct

type WxProduct struct {
	Id      int64
	Title   string
	Type    string
	Link    string
	Subtext string
	Author  string
	Created time.Time
	Updated time.Time
}

Directories

Path Synopsis
tool
来自blueeye
来自blueeye
wkhtmltopdf
Package wkhtmltopdf contains wrappers around the wkhtmltopdf commandline tool
Package wkhtmltopdf contains wrappers around the wkhtmltopdf commandline tool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL