controllers

package
v0.0.0-...-8295693 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2015 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RESULT_RESP_SUCC string = "success"
	RESULT_RESP_FAIL string = "fail"
)
View Source
const (
	// 邮件ContentType
	MailContentType = "text/html;charset=UTF-8"
	// 邮件地址间的分隔符
	MailSeparator = ";"
	// 邮箱登录密码加密秘钥
	MailPwdKey = "Sdjftmoil45df#$DGJDI^ku26XXkdDJK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminController

type AdminController struct {
	// contains filtered or unexported fields
}

func (*AdminController) CalcStartRecordNo

func (this *AdminController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)

CalcStartRecordNo 计算分页起始记录号

func (*AdminController) CalcTotalPages

func (this *AdminController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)

CalcTotalPages 计算总页数

func (*AdminController) ImgCrop

func (this *AdminController) ImgCrop()

ImgCrop 裁剪图片指定区域并进行缩放

func (*AdminController) ImgUpload

func (this *AdminController) ImgUpload()

ImgUpload 图片上传

func (*AdminController) Index

func (this *AdminController) Index()

func (*AdminController) Markdown2html

func (this *AdminController) Markdown2html()

Markdown2html 将Markdown内容转化为html

func (*AdminController) Prepare

func (this *AdminController) Prepare()

type AjaxFormResp

type AjaxFormResp struct {
	Result string
	Msg    string
	Fields map[string]string      `json:",omitempty"`
	ExtMap map[string]interface{} `json:",omitempty"`
	ExtObj interface{}            `json:",omitempty"`
}

type BlogController

type BlogController struct {
	// contains filtered or unexported fields
}

func (*BlogController) AjaxAddBlog

func (this *BlogController) AjaxAddBlog()

AjaxAddBlog 添加博客

func (*BlogController) AjaxGetBlogList

func (this *BlogController) AjaxGetBlogList()

AjaxGetBlogList 获取博客分页列表

func (*BlogController) AjaxModBlog

func (this *BlogController) AjaxModBlog()

AjaxModBlog 修改博客

func (*BlogController) AjaxPushPin

func (this *BlogController) AjaxPushPin()

AjaxPushPin 置顶

func (*BlogController) AjaxRmBlog

func (this *BlogController) AjaxRmBlog()

AjaxRmBlog 删除博客

func (*BlogController) CalcStartRecordNo

func (this *BlogController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)

CalcStartRecordNo 计算分页起始记录号

func (*BlogController) CalcTotalPages

func (this *BlogController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)

CalcTotalPages 计算总页数

func (*BlogController) Prepare

func (this *BlogController) Prepare()

func (*BlogController) ToAddBlog

func (this *BlogController) ToAddBlog()

ToAddBlog 跳转至写博客页面

func (*BlogController) ToBlog

func (this *BlogController) ToBlog()

ToBlog 跳转至博客列表

func (*BlogController) ToEditBlog

func (this *BlogController) ToEditBlog()

ToEditBlog 跳转至博客编辑页

type CarouselController

type CarouselController struct {
	// contains filtered or unexported fields
}

func (*CarouselController) AddCarousel

func (this *CarouselController) AddCarousel()

AddHomeCarousel ajax添加carousel

func (*CarouselController) CalcStartRecordNo

func (this *CarouselController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)

CalcStartRecordNo 计算分页起始记录号

func (*CarouselController) CalcTotalPages

func (this *CarouselController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)

CalcTotalPages 计算总页数

func (*CarouselController) GetCarousels

func (this *CarouselController) GetCarousels()

GetCarousels ajax获取carousel信息

func (*CarouselController) ModCarousel

func (this *CarouselController) ModCarousel()

ModCarousel ajax修改carousel

func (*CarouselController) Prepare

func (this *CarouselController) Prepare()

func (*CarouselController) PushPin

func (this *CarouselController) PushPin()

PushPin 置顶

func (*CarouselController) RmCarousel

func (this *CarouselController) RmCarousel()

RmCarousel ajax删除carousel

func (*CarouselController) ToAddCarousel

func (this *CarouselController) ToAddCarousel()

ToAddCarousel 跳转到首页carousel表单页

func (*CarouselController) ToCarousel

func (this *CarouselController) ToCarousel()

ToCarousel 跳转到首页滚动巨幕管理页

func (*CarouselController) ToModCarousel

func (this *CarouselController) ToModCarousel()

ToModCarousel 跳转到carousel编辑页

type CropCoord

type CropCoord struct {
	Imgpath    string `form:"imgpath"`
	X          uint   `form:"x"`
	Y          uint   `form:"y"`
	Width      uint   `form:"width"`
	Height     uint   `form:"height"`
	SizeWidth  uint   `form:"sizeWidth"`
	SizeHeight uint   `form:"sizeHeight"`
}

CropCoord 图片裁剪坐标信息

type FlagshipProductController

type FlagshipProductController struct {
	// contains filtered or unexported fields
}

func (*FlagshipProductController) AddFlagshipProducts

func (this *FlagshipProductController) AddFlagshipProducts()

AddFlagshipProducts ajax添加主打产品

func (*FlagshipProductController) AjaxGetProductsButFlagships

func (this *FlagshipProductController) AjaxGetProductsButFlagships()

AjaxGetProductsButFlagships ajax方式获取产品(不包含主打产品)分页信息

func (*FlagshipProductController) CalcStartRecordNo

func (this *FlagshipProductController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)

CalcStartRecordNo 计算分页起始记录号

func (*FlagshipProductController) CalcTotalPages

func (this *FlagshipProductController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)

CalcTotalPages 计算总页数

func (*FlagshipProductController) GetFlagshipProducts

func (this *FlagshipProductController) GetFlagshipProducts()

GetFlagshipProducts ajax获取主打产品列表

func (*FlagshipProductController) Prepare

func (this *FlagshipProductController) Prepare()

func (*FlagshipProductController) PushPin

func (this *FlagshipProductController) PushPin()

PushPin 置顶

func (*FlagshipProductController) RmFlagshipProduct

func (this *FlagshipProductController) RmFlagshipProduct()

RmFlagshipProduct ajax删除主打产品

func (*FlagshipProductController) ToFlagshipProducts

func (this *FlagshipProductController) ToFlagshipProducts()

ToFlagshipProducts 跳转到首页当季主打产品管理页

type MailController

type MailController struct {
	// contains filtered or unexported fields
}

func (*MailController) CalcStartRecordNo

func (this *MailController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)

CalcStartRecordNo 计算分页起始记录号

func (*MailController) CalcTotalPages

func (this *MailController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)

CalcTotalPages 计算总页数

func (*MailController) Prepare

func (this *MailController) Prepare()

func (*MailController) SendMail

func (this *MailController) SendMail()

SendMail 发送邮件

type MessageController

type MessageController struct {
	// contains filtered or unexported fields
}

func (*MessageController) AjaxGetContactMsgPage

func (this *MessageController) AjaxGetContactMsgPage()

AjaxGetContactMsgPage 获取联系人消息分页列表

func (*MessageController) AjaxMarkMsg

func (this *MessageController) AjaxMarkMsg()

AjaxMarkMsg 标记联系人消息(修改消息状态)

func (*MessageController) CalcStartRecordNo

func (this *MessageController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)

CalcStartRecordNo 计算分页起始记录号

func (*MessageController) CalcTotalPages

func (this *MessageController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)

CalcTotalPages 计算总页数

func (*MessageController) Prepare

func (this *MessageController) Prepare()

func (*MessageController) SearchContactMsgPage

func (this *MessageController) SearchContactMsgPage()

SearchContactMsgPage 根据条件查询联系人消息记录。支持条件之间的and和or逻辑运算。

func (*MessageController) ToContactMsg

func (this *MessageController) ToContactMsg()

ToContactMsg 跳转至联系人消息页面

type PortalController

type PortalController struct {
	// contains filtered or unexported fields
}

func (*PortalController) AddContactMsg

func (this *PortalController) AddContactMsg()

AddContactMsg 跳转至添加联系人消息

func (*PortalController) AjaxGetBlogPage

func (this *PortalController) AjaxGetBlogPage()

AjaxGetBlogPage 获取博客分页信息

func (*PortalController) CalcStartRecordNo

func (this *PortalController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)

CalcStartRecordNo 计算分页起始记录号

func (*PortalController) CalcTotalPages

func (this *PortalController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)

CalcTotalPages 计算总页数

func (*PortalController) GetProducts

func (this *PortalController) GetProducts()

GetProductItems ajax方式获取产品数据

func (*PortalController) Prepare

func (this *PortalController) Prepare()

func (*PortalController) ToAbout

func (this *PortalController) ToAbout()

ToAbout 跳转至关于我们

func (*PortalController) ToBlog

func (this *PortalController) ToBlog()

ToBlog 跳转至博客列表

func (*PortalController) ToBlogPost

func (this *PortalController) ToBlogPost()

ToBlogPost 跳转至博客明细

func (*PortalController) ToContact

func (this *PortalController) ToContact()

ToContact 跳转至联系我们

func (*PortalController) ToHome

func (this *PortalController) ToHome()

ToHome 跳转至首页

func (*PortalController) ToProductItem

func (this *PortalController) ToProductItem()

ToProductItem 跳转至产品明细

func (*PortalController) ToProducts

func (this *PortalController) ToProducts()

ToProducts 跳转至产品列表

type ProductController

type ProductController struct {
	// contains filtered or unexported fields
}

func (*ProductController) AddProduct

func (this *ProductController) AddProduct()

AddProduct 添加产品信息

func (*ProductController) AjaxGetProductList

func (this *ProductController) AjaxGetProductList()

AjaxGetProductList ajax方式获取产品分页信息

func (*ProductController) CalcStartRecordNo

func (this *ProductController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)

CalcStartRecordNo 计算分页起始记录号

func (*ProductController) CalcTotalPages

func (this *ProductController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)

CalcTotalPages 计算总页数

func (*ProductController) ModProduct

func (this *ProductController) ModProduct()

ModProduct 修改产品信息

func (*ProductController) Prepare

func (this *ProductController) Prepare()

func (*ProductController) PushPin

func (this *ProductController) PushPin()

PushPin 产品排序置顶

func (*ProductController) RmProducts

func (this *ProductController) RmProducts()

RmProduct 删除产品

func (*ProductController) ToProductAdd

func (this *ProductController) ToProductAdd()

ToProductAdd 跳转至产品添加页面

func (*ProductController) ToProductMod

func (this *ProductController) ToProductMod()

ToProductMod 跳转至产品编辑页面

func (*ProductController) ToProducts

func (this *ProductController) ToProducts()

ToProducts 转到产品列表页面

type SettingsController

type SettingsController struct {
	// contains filtered or unexported fields
}

func (*SettingsController) CalcStartRecordNo

func (this *SettingsController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)

CalcStartRecordNo 计算分页起始记录号

func (*SettingsController) CalcTotalPages

func (this *SettingsController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)

CalcTotalPages 计算总页数

func (*SettingsController) CheckAuth

func (this *SettingsController) CheckAuth()

CheckAuth 检测邮箱帐号密码

func (*SettingsController) Prepare

func (this *SettingsController) Prepare()

func (*SettingsController) SaveMailBoxInfo

func (this *SettingsController) SaveMailBoxInfo()

SaveMailBoxInfo 保存邮件服务信息

func (*SettingsController) ToChangePwd

func (this *SettingsController) ToChangePwd()

func (*SettingsController) ToEmail

func (this *SettingsController) ToEmail()

func (*SettingsController) ToPersonalSetting

func (this *SettingsController) ToPersonalSetting()

ToPersonalSetting 转到个人设置页

func (*SettingsController) ToSysSetting

func (this *SettingsController) ToSysSetting()

ToSysSetting 转到系统设置页

type UserController

type UserController struct {
	// contains filtered or unexported fields
}

func (*UserController) CalcStartRecordNo

func (this *UserController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)

CalcStartRecordNo 计算分页起始记录号

func (*UserController) CalcTotalPages

func (this *UserController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)

CalcTotalPages 计算总页数

func (*UserController) ChangePwd

func (this *UserController) ChangePwd()

ChangePwd 修改当前用户登录密码

func (*UserController) Login

func (this *UserController) Login()

用户登录校验

func (*UserController) Prepare

func (this *UserController) Prepare()

func (*UserController) ToLogin

func (this *UserController) ToLogin()

ToLogin 转到用户登录页面

func (*UserController) ToLogout

func (this *UserController) ToLogout()

ToLogout 用户登出

Jump to

Keyboard shortcuts

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