Documentation
¶
Index ¶
- func FileExist(path string) bool
- type Controller
- func (this *Controller) ClearToken()
- func (this *Controller) GetIP() string
- func (this *Controller) GetUid() (uid string)
- func (this *Controller) IsLogin() bool
- func (this *Controller) IsSession() bool
- func (this *Controller) MangeJson(code int, msg string, count int, data interface{})
- func (this *Controller) ResolvePostData(obj interface{}) error
- func (this *Controller) RetuenJson(code int, count int, data interface{})
- func (this *Controller) SetToken(token string)
- type InstallController
- func (this *InstallController) InstallAdmin()
- func (this *InstallController) InstallAliyunMedia()
- func (this *InstallController) InstallLocalMedia()
- func (this *InstallController) InstallMysql()
- func (this *InstallController) InstallMysqlTset()
- func (this *InstallController) InstallPgsql()
- func (this *InstallController) InstallPgsqlTset()
- func (this *InstallController) InstallSqlite()
- func (this *InstallController) InstallStart()
- func (this *InstallController) InstallTencentMedia()
- type LoginController
- type MDController
- func (this *MDController) CreateMD()
- func (this *MDController) DelNote()
- func (this *MDController) DraNoteShow()
- func (this *MDController) DraftList()
- func (this *MDController) GetAllNote()
- func (this *MDController) MDEditPG()
- func (this *MDController) MDNoteModify()
- func (this *MDController) MDShow()
- func (this *MDController) NoteRecycler()
- func (this *MDController) NotesMDList()
- func (this *MDController) RMDShow()
- func (this *MDController) RestoreNote()
- func (this *MDController) SchenNote()
- func (this *MDController) SearchNote()
- func (this *MDController) ToDraft()
- type MainController
- type MangeJsonData
- type NotesController
- type PGController
- func (this *PGController) AddSuCai()
- func (this *PGController) ChartNotes()
- func (this *PGController) GetIsLogin()
- func (this *PGController) HomePG()
- func (this *PGController) IndexPG()
- func (this *PGController) Install()
- func (this *PGController) Login()
- func (this *PGController) MangeLinks()
- func (this *PGController) MangeNotes()
- func (this *PGController) MdEditorPG()
- func (this *PGController) MyChart()
- func (this *PGController) MyUsedSpace()
- func (this *PGController) Shequ()
- func (this *PGController) SuCai()
- func (this *PGController) ToolPG()
- type RetuenJsonData
- type ReturnImgInfo
- type SucaiController
- type TandLController
- type UploadController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
beego.Controller
}
func (*Controller) GetIP ¶
func (this *Controller) GetIP() string
获取客户ip
如果是Nginx 需要设置如下
location / { proxy_set_header X-real-ip $remote_addr; proxy_pass http://upstream/; }
再使用this.Ctx.Request.Header.Get("X-Real-ip")获取ip
func (*Controller) IsLogin ¶
func (this *Controller) IsLogin() bool
func (*Controller) IsSession ¶
func (this *Controller) IsSession() bool
判断是否会话 一般会话不用刷新token 便于请求的流畅性
func (*Controller) MangeJson ¶
func (this *Controller) MangeJson(code int, msg string, count int, data interface{})
接口返回的结构 MangeJsonData
func (*Controller) ResolvePostData ¶
func (this *Controller) ResolvePostData(obj interface{}) error
解析post接收的参数
func (*Controller) RetuenJson ¶
func (this *Controller) RetuenJson(code int, count int, data interface{})
接口返回的结构 RetuenJsonData
type InstallController ¶
type InstallController struct {
Controller
}
func (*InstallController) InstallAliyunMedia ¶
func (this *InstallController) InstallAliyunMedia()
阿里云存储多媒体资源
func (*InstallController) InstallLocalMedia ¶
func (this *InstallController) InstallLocalMedia()
本地存储多媒体资源 TODO 本地多媒体资源地址
func (*InstallController) InstallMysqlTset ¶
func (this *InstallController) InstallMysqlTset()
测试mysql连接
func (*InstallController) InstallPgsqlTset ¶
func (this *InstallController) InstallPgsqlTset()
测试pgsql连接
func (*InstallController) InstallTencentMedia ¶
func (this *InstallController) InstallTencentMedia()
腾讯云存储多媒体资源
type LoginController ¶
type LoginController struct {
Controller
}
type MDController ¶
type MDController struct {
Controller
}
type MainController ¶
type MainController struct {
beego.Controller
}
func (*MainController) Get ¶
func (c *MainController) Get()
type MangeJsonData ¶
type NotesController ¶
type NotesController struct {
Controller
}
func (*NotesController) GetAllNotes ¶
func (this *NotesController) GetAllNotes()
mange管理模块 获取所有笔记本信息
func (*NotesController) UpdateNotesInfo ¶
func (this *NotesController) UpdateNotesInfo()
mange管理模块 修改笔记本信息 UpdateNotesInfo
type PGController ¶
type PGController struct {
Controller
}
func (*PGController) GetIsLogin ¶
func (this *PGController) GetIsLogin()
type RetuenJsonData ¶
type RetuenJsonData struct { Code int `json:"code"` Count int `json:"count"` Datas interface{} `json:"data"` }
约定 code:
1 成功 0 错误(后台) 2 失败
type ReturnImgInfo ¶
type SucaiController ¶
type SucaiController struct {
Controller
}
func (*SucaiController) ToMangeImg ¶
func (this *SucaiController) ToMangeImg()
ToMangeImg 分享到mange 图库
type TandLController ¶
type TandLController struct {
Controller
}
func (*TandLController) GetLinks ¶
func (this *TandLController) GetLinks()
GetLinks mange 管理模块 获取收藏链接信息
func (*TandLController) MageEDLink ¶
func (this *TandLController) MageEDLink()
MageEDLink mange 管理模块 收藏链接修改
type UploadController ¶
type UploadController struct {
Controller
}
func (*UploadController) UploadImg ¶
func (this *UploadController) UploadImg()
写笔记上传图片 v1 版本只支持存本机服务器磁盘,网络访问需要服务器nginx配置图片请求
Click to show internal directories.
Click to hide internal directories.