controllers

package
v0.0.0-...-759746e Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2019 License: Apache-2.0 Imports: 42 Imported by: 6

Documentation

Overview

成果里的附件操作

小程序日历公告

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

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

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

Index

Constants

This section is empty.

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 Createip

func Createip()

func DecodeWeAppUserInfo

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

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

func FileSize

func FileSize(file string) (int64, error)

返回文件大小

func GetProjTitleNumber

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

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

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 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 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 UploadImg

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

这个没用

Types

type AchDepart

type AchDepart struct {
	Id int64 `json:"Id"` //`form:"-"`
	// Pid       int64          `form:"-"`
	Title     string         `json:"text"` //这个后面json仅仅对于encode解析有用
	Secoffice []AchSecoffice `json:"nodes"`
	// Employee  []AchEmployee  `json:"nodes"`不能有2个nodes啊,如果部门下有人,只能用secoffice代替员工
	Level      string `json:"Level"`
	Tags       [1]int `json:"tags"` //显示员工数量
	Selectable bool   `json:"selectable"`
}

type AchEmployee

type 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) Ipsegment

func (c *AdminController) Ipsegment()

查询IP地址段

func (*AdminController) MeritBasic

func (c *AdminController) MeritBasic()

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

func (*AdminController) ModifyCatalog

func (c *AdminController) ModifyCatalog()

在线修改保存某个字段

func (c *AdminController) ModifyLink()

修改link

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 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 true "The skey of user" @Success 200 {object} models.AddArticle @Failure 400 Invalid page supplied @Failure 404 articl not found @router /addwxarticle [post] 向设代日记id下添加微信小程序文章_珠三角设代plus用_这个是文字图片分开方式,用下面这个

func (*ArticleController) AddWxArticles

func (c *ArticleController) AddWxArticles()

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

func (*ArticleController) AddWxEditorArticle

func (c *ArticleController) AddWxEditorArticle()

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

func (*ArticleController) DeleteArticle

func (c *ArticleController) DeleteArticle()

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

func (*ArticleController) DeleteWxArticle

func (c *ArticleController) DeleteWxArticle()

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

func (*ArticleController) 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" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /getlistarticles [get] 小程序取得所有文章列表,分页_首页用

func (*ArticleController) GetWxArticle

func (c *ArticleController) GetWxArticle()

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

func (*ArticleController) GetWxArticles

func (c *ArticleController) GetWxArticles()

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

func (*ArticleController) GetWxArticless

func (c *ArticleController) GetWxArticless()

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

func (*ArticleController) GetsynchArticles

func (c *ArticleController) GetsynchArticles()

取得同步文章列表

func (*ArticleController) 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) 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()

取得某个成果id下的附件中的pdf给table

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) 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下追加附件

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

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 Callback

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

type CatalogLinkCont

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

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

type CatalogLinkEditable

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

附件链接表

type CheckController

type CheckController struct {
	beego.Controller
}

CMSCHECKIN API

func (*CheckController) ActInfo

func (c *CheckController) ActInfo()

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

func (*CheckController) Apply

func (c *CheckController) Apply()

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

func (*CheckController) Check

func (c *CheckController) Check()

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

func (*CheckController) CheckGetCheck

func (c *CheckController) CheckGetCheck()

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

func (*CheckController) Compare

func (c *CheckController) Compare()

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

func (*CheckController) Create

func (c *CheckController) Create()

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

func (*CheckController) Date

func (c *CheckController) Date()

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

func (*CheckController) Details

func (c *CheckController) Details()

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

func (*CheckController) Getall

func (c *CheckController) Getall()

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

func (*CheckController) HaveApply

func (c *CheckController) HaveApply()

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

func (*CheckController) Like

func (c *CheckController) Like()

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

func (*CheckController) MonthCheck

func (c *CheckController) MonthCheck()

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

func (*CheckController) MonthCheckSum

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

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

func (*CheckController) Person

func (c *CheckController) Person()

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

type 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 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 Details

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

type Detailsinfo

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

type DiaryController

type DiaryController struct {
	beego.Controller
}

CMSWXDIARY API

func (*DiaryController) AddWxDiary

func (c *DiaryController) AddWxDiary()

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

func (*DiaryController) DeleteWxDiary

func (c *DiaryController) DeleteWxDiary()

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

func (*DiaryController) GetWxDiary

func (c *DiaryController) GetWxDiary()

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

func (*DiaryController) GetWxdiaries

func (c *DiaryController) GetWxdiaries()

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

func (*DiaryController) UpdateWxDiary

func (c *DiaryController) UpdateWxDiary()

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

type DocNode

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

文档结构数据

type DocumentDetail

type DocumentDetail struct {
	// DocTypeId    flow.DocTypeID
	Document *flow.Document
	Action   []flow.DocAction
	History  []*flow.DocEventsHistory
	Text     string
}
type DocxLink struct {
	Id         int64
	Title      string
	Suffix     string
	Permission string
	// Link    string
	Created time.Time
	Updated time.Time
}

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 FileNode

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

树状目录数据

type FileNode1

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

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

type FileNode2

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

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

type FlowController

type FlowController struct {
	beego.Controller
}

Flowtest API

func (*FlowController) FlowAccessContext

func (c *FlowController) FlowAccessContext()

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

func (*FlowController) FlowAccessContextList

func (c *FlowController) FlowAccessContextList()

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

func (*FlowController) FlowAction

func (c *FlowController) FlowAction()

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

func (*FlowController) FlowActionList

func (c *FlowController) FlowActionList()

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

func (*FlowController) FlowDoc

func (c *FlowController) FlowDoc()

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

func (*FlowController) FlowDocList

func (c *FlowController) FlowDocList()

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

func (*FlowController) FlowDocumentDetail

func (c *FlowController) FlowDocumentDetail()

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

func (*FlowController) FlowDocumentList

func (c *FlowController) FlowDocumentList()

@Title get wf document @Description get document @Param dtid query string true "The id of doctype" @Param acid query string true "The id of accesscontext" @Param gid query string false "The id of group" @Param dsid query string false "The id of docstate" @Param page query string true "The page of doc" @Param limit query string false "The limit page of doc" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /flowdocumentlist [get] 1.列表显示文档 2.点击一个具体文档——显示详情——显示actions

func (*FlowController) FlowEvent

func (c *FlowController) FlowEvent()

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

func (*FlowController) FlowEventList

func (c *FlowController) FlowEventList()

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

func (*FlowController) FlowGroup

func (c *FlowController) FlowGroup()

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

func (*FlowController) FlowGroupList

func (c *FlowController) FlowGroupList()

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

func (*FlowController) FlowGroupMailbox

func (c *FlowController) FlowGroupMailbox()

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

func (*FlowController) FlowGroupRole

func (c *FlowController) FlowGroupRole()

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

func (*FlowController) FlowGroupRoleList

func (c *FlowController) FlowGroupRoleList()

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

func (*FlowController) FlowGroupUsersList

func (c *FlowController) FlowGroupUsersList()

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

func (*FlowController) FlowNext

func (c *FlowController) FlowNext()

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

func (*FlowController) FlowNode

func (c *FlowController) FlowNode()

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

func (*FlowController) FlowNodeList

func (c *FlowController) FlowNodeList()

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

func (*FlowController) FlowPermission

func (c *FlowController) FlowPermission()

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

func (*FlowController) FlowRole

func (c *FlowController) FlowRole()

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

func (*FlowController) FlowRoleList

func (c *FlowController) FlowRoleList()

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

func (*FlowController) FlowRolePermissionList

func (c *FlowController) FlowRolePermissionList()

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

func (*FlowController) FlowState

func (c *FlowController) FlowState()

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

func (*FlowController) FlowStateList

func (c *FlowController) FlowStateList()

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

func (*FlowController) FlowTransition

func (c *FlowController) FlowTransition()

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

func (*FlowController) FlowTransitionList

func (c *FlowController) FlowTransitionList()

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

func (*FlowController) FlowType

func (c *FlowController) FlowType()

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

func (*FlowController) FlowTypeDelete

func (c *FlowController) FlowTypeDelete()

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

func (*FlowController) FlowTypeList

func (c *FlowController) FlowTypeList()

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

func (*FlowController) FlowTypeUpdate

func (c *FlowController) FlowTypeUpdate()

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

func (*FlowController) FlowUser

func (c *FlowController) FlowUser()

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

func (*FlowController) FlowUserGroup

func (c *FlowController) FlowUserGroup()

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

func (*FlowController) FlowUserList

func (c *FlowController) FlowUserList()

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

func (*FlowController) FlowUserMailbox

func (c *FlowController) FlowUserMailbox()

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

func (*FlowController) FlowWorkflow

func (c *FlowController) FlowWorkflow()

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

func (*FlowController) FlowWorkflowList

func (c *FlowController) FlowWorkflowList()

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

func (*FlowController) Get

func (c *FlowController) Get()

func (*FlowController) WorkFlow

func (c *FlowController) WorkFlow()

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

type FroalaController

type FroalaController struct {
	beego.Controller
}

CMSWX froala API

func (*FroalaController) ControllerFroala

func (c *FroalaController) ControllerFroala()

下面这个没用

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 @Success 200 {object} SUCCESS @Failure 400 Invalid page supplied @Failure 404 articl not found @router /uploadwxeditorimg [post] 微信wx添加文章里的图片上传_小程序富文本里的上传图片

func (*FroalaController) UploadWxImg

func (c *FroalaController) UploadWxImg()

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

func (*FroalaController) UploadWxImgs

func (c *FroalaController) UploadWxImgs()

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

type Gantt

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

type 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 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 LegislationController

type LegislationController struct {
	beego.Controller
}

func (*LegislationController) Checklist

func (c *LegislationController) Checklist()

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

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

func (c *LoginController) WxHasSession()

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

func (*LoginController) WxLogin

func (c *LoginController) WxLogin()

@Title post wx login @Description post wx login @Param id path string true "The id of wx" @Param code path string true "The jscode of wxuser" @Success 200 {object} success @Failure 400 Invalid page supplied @Failure 404 articl not found @router /wxlogin/:id [get] 微信小程序访问微信服务器获取用户信息

type 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) 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) Pdf

func (c *MainController) Pdf()

func (*MainController) Postdata

func (c *MainController) Postdata()

func (*MainController) Register

func (c *MainController) Register()

func (*MainController) Slide

func (c *MainController) Slide()

func (*MainController) Test

func (c *MainController) Test()

func (*MainController) UpdateDatabase

func (c *MainController) UpdateDatabase()

升级数据库

func (*MainController) WxPdf

func (c *MainController) WxPdf()

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

func (*MainController) WxStandardPdf

func (c *MainController) WxStandardPdf()

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

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

文档管理页面下载文档

func (*OnlyController) DownloadDoc

func (c *OnlyController) DownloadDoc()

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

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 PdfLink struct {
	Id        int64
	Title     string
	Link      string
	ActIndex  string
	FileSize  int64
	Downloads int64
	Created   time.Time
	Updated   time.Time
}

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
}

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 后台删除目录,

func (*ProjController) DeleteProjectCate

func (c *ProjController) DeleteProjectCate()

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

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中的GetProducts

func (*ProjController) GetProjProducts

func (c *ProjController) GetProjProducts()

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

func (*ProjController) GetProject

func (c *ProjController) GetProject()

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

func (*ProjController) GetProjectCate

func (c *ProjController) GetProjectCate()

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

func (*ProjController) GetProjectTree

func (c *ProjController) GetProjectTree()

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

func (*ProjController) GetProjects

func (c *ProjController) GetProjects()

@Title get cms projectlist... @Description get projectlist.. @Param page query string false "The page of projectlist" @Param limit query string false "The size of page" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 data not found @router /getprojects [get] 分页提供给项目列表页的table中json数据 http://127.0.0.1/project/getprojects?limit=15&pageNo=1

func (*ProjController) ProjectTimeline

func (c *ProjController) ProjectTimeline()

项目时间轴

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,那么这个就可以淘汰了。

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
	Code      string
	Title     string
	Label     string
	Principal string
	Number    int64
	Created   time.Time
	Updated   time.Time
}

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

func (c *RegistController) WxRegist()

@Title post wx regist @Description post wx regist @Param uname query string true "The username of ueser" @Param password query string true "The password of account" @Param code query string true "The code of wx" @Param app_version query string true "The app_version of wx" @Success 200 {object} models.SaveUser @Failure 400 Invalid page supplied @Failure 404 user not found @router /wxregist [post] 添加微信小程序珠三角设代阅览版注册

type RelevancyProj

type 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 id query string true "The id of article" @Param content query string true "The content of release" @Param code query string false "The code of wx" @Param avatar query string false "The avatar of release" @Param username query string false "The username of release" @Param created query string false "The time of release" @Success 200 {object} models.AddTopicReply @Failure 400 Invalid page supplied @Failure 404 article not found @router /addwxrelease/:id [post] 添加文章评论

func (*ReplyController) 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) 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 true "The keyword of drawings" @Param projectid query string false "The projectid of drawings" @Param searchpage query string true "The page for drawings list" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 drawings not found @router /searchwxdrawings [get] 小程序取得所有图纸列表,分页_plus

type Select1

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

type StandardController

type StandardController struct {
	beego.Controller
}

func (*StandardController) DeleteStandard

func (c *StandardController) DeleteStandard()

删除规范

func (*StandardController) DeleteValid

func (c *StandardController) DeleteValid()

删除有效库中选中

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

搜索规范或者图集的名称或编号 20170704:linumber没有用。因为用category+编号+年份比较好

func (*StandardController) SearchWxStandards

func (c *StandardController) SearchWxStandards()

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

func (*StandardController) Standard_one_addbaidu

func (c *StandardController) Standard_one_addbaidu()

func (*StandardController) UpdateStandard

func (c *StandardController) UpdateStandard()

修改规范

func (*StandardController) Valid

func (c *StandardController) Valid()

显示所有有效库

type Standardmore

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

type Tableserver

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

后端分页的数据结构

type Task

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

type TodoController

type TodoController struct {
	beego.Controller
}

CMSTODO API

func (*TodoController) Create

func (c *TodoController) Create()

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

func (*TodoController) DeleteTodo

func (c *TodoController) DeleteTodo()

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

func (*TodoController) GetTodo

func (c *TodoController) GetTodo()

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

func (*TodoController) UpdateTodo

func (c *TodoController) UpdateTodo()

@Title update todolist @Description update tolist @Param todoid query string false "The id of todo" @Success 200 {object} models.GetProductsPage @Failure 400 Invalid page supplied @Failure 404 articls not found @router /updatetodo [post] 取出所有未完成待办

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

添加用户

func (*UserController) DeleteUser

func (c *UserController) DeleteUser()

删除用户

func (*UserController) GetUserByUsername

func (c *UserController) GetUserByUsername()

用户查看自己,修改密码等

func (*UserController) ImportUsers

func (c *UserController) ImportUsers()

上传excel文件,导入到数据库 引用来自category的查看成果类型里的成果

func (*UserController) Index

func (c *UserController) Index()

func (*UserController) Roleerr

func (this *UserController) Roleerr()

func (*UserController) UpdateUser

func (c *UserController) UpdateUser()

在线修改保存某个字段

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

如果不带id则取到所有用户 如果带id,则取一个用户

func (*UserController) Usermyself

func (c *UserController) Usermyself()

用户个人数据,填充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:"role"`
	Level      string
}

type Userselect

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

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"`
	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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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