Documentation ¶
Index ¶
- Constants
- type AdminController
- func (this *AdminController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)
- func (this *AdminController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)
- func (this *AdminController) ImgCrop()
- func (this *AdminController) ImgUpload()
- func (this *AdminController) Index()
- func (this *AdminController) Markdown2html()
- func (this *AdminController) Prepare()
- type AjaxFormResp
- type BlogController
- func (this *BlogController) AjaxAddBlog()
- func (this *BlogController) AjaxGetBlogList()
- func (this *BlogController) AjaxModBlog()
- func (this *BlogController) AjaxPushPin()
- func (this *BlogController) AjaxRmBlog()
- func (this *BlogController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)
- func (this *BlogController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)
- func (this *BlogController) Prepare()
- func (this *BlogController) ToAddBlog()
- func (this *BlogController) ToBlog()
- func (this *BlogController) ToEditBlog()
- type CarouselController
- func (this *CarouselController) AddCarousel()
- func (this *CarouselController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)
- func (this *CarouselController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)
- func (this *CarouselController) GetCarousels()
- func (this *CarouselController) ModCarousel()
- func (this *CarouselController) Prepare()
- func (this *CarouselController) PushPin()
- func (this *CarouselController) RmCarousel()
- func (this *CarouselController) ToAddCarousel()
- func (this *CarouselController) ToCarousel()
- func (this *CarouselController) ToModCarousel()
- type CropCoord
- type FlagshipProductController
- func (this *FlagshipProductController) AddFlagshipProducts()
- func (this *FlagshipProductController) AjaxGetProductsButFlagships()
- func (this *FlagshipProductController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)
- func (this *FlagshipProductController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)
- func (this *FlagshipProductController) GetFlagshipProducts()
- func (this *FlagshipProductController) Prepare()
- func (this *FlagshipProductController) PushPin()
- func (this *FlagshipProductController) RmFlagshipProduct()
- func (this *FlagshipProductController) ToFlagshipProducts()
- type MailController
- type MessageController
- func (this *MessageController) AjaxGetContactMsgPage()
- func (this *MessageController) AjaxMarkMsg()
- func (this *MessageController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)
- func (this *MessageController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)
- func (this *MessageController) Prepare()
- func (this *MessageController) SearchContactMsgPage()
- func (this *MessageController) ToContactMsg()
- type PortalController
- func (this *PortalController) AddContactMsg()
- func (this *PortalController) AjaxGetBlogPage()
- func (this *PortalController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)
- func (this *PortalController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)
- func (this *PortalController) GetProducts()
- func (this *PortalController) Prepare()
- func (this *PortalController) ToAbout()
- func (this *PortalController) ToBlog()
- func (this *PortalController) ToBlogPost()
- func (this *PortalController) ToContact()
- func (this *PortalController) ToHome()
- func (this *PortalController) ToProductItem()
- func (this *PortalController) ToProducts()
- type ProductController
- func (this *ProductController) AddProduct()
- func (this *ProductController) AjaxGetProductList()
- func (this *ProductController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)
- func (this *ProductController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)
- func (this *ProductController) ModProduct()
- func (this *ProductController) Prepare()
- func (this *ProductController) PushPin()
- func (this *ProductController) RmProducts()
- func (this *ProductController) ToProductAdd()
- func (this *ProductController) ToProductMod()
- func (this *ProductController) ToProducts()
- type SettingsController
- func (this *SettingsController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)
- func (this *SettingsController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)
- func (this *SettingsController) CheckAuth()
- func (this *SettingsController) Prepare()
- func (this *SettingsController) SaveMailBoxInfo()
- func (this *SettingsController) ToChangePwd()
- func (this *SettingsController) ToEmail()
- func (this *SettingsController) ToPersonalSetting()
- func (this *SettingsController) ToSysSetting()
- type UserController
- func (this *UserController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)
- func (this *UserController) CalcTotalPages(pageSize, totalRecords int64) (int64, error)
- func (this *UserController) ChangePwd()
- func (this *UserController) Login()
- func (this *UserController) Prepare()
- func (this *UserController) ToLogin()
- func (this *UserController) ToLogout()
Constants ¶
const ( RESULT_RESP_SUCC string = "success" RESULT_RESP_FAIL string = "fail" )
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 ¶
CalcTotalPages 计算总页数
func (*AdminController) Index ¶
func (this *AdminController) Index()
func (*AdminController) Markdown2html ¶
func (this *AdminController) Markdown2html()
Markdown2html 将Markdown内容转化为html
type AjaxFormResp ¶
type BlogController ¶
type BlogController struct {
// contains filtered or unexported fields
}
func (*BlogController) AjaxGetBlogList ¶
func (this *BlogController) AjaxGetBlogList()
AjaxGetBlogList 获取博客分页列表
func (*BlogController) CalcStartRecordNo ¶
func (this *BlogController) CalcStartRecordNo(curPageNo, pageSize, totalRecords int64) (int64, error)
CalcStartRecordNo 计算分页起始记录号
func (*BlogController) CalcTotalPages ¶
CalcTotalPages 计算总页数
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 ¶
CalcTotalPages 计算总页数
func (*CarouselController) GetCarousels ¶
func (this *CarouselController) GetCarousels()
GetCarousels ajax获取carousel信息
func (*CarouselController) ModCarousel ¶
func (this *CarouselController) ModCarousel()
ModCarousel ajax修改carousel
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 ¶
CalcTotalPages 计算总页数
func (*FlagshipProductController) GetFlagshipProducts ¶
func (this *FlagshipProductController) GetFlagshipProducts()
GetFlagshipProducts ajax获取主打产品列表
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 ¶
CalcTotalPages 计算总页数
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 ¶
CalcTotalPages 计算总页数
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 ¶
CalcTotalPages 计算总页数
func (*PortalController) GetProducts ¶
func (this *PortalController) GetProducts()
GetProductItems ajax方式获取产品数据
func (*PortalController) ToProductItem ¶
func (this *PortalController) ToProductItem()
ToProductItem 跳转至产品明细
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 ¶
CalcTotalPages 计算总页数
func (*ProductController) ModProduct ¶
func (this *ProductController) ModProduct()
ModProduct 修改产品信息
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 ¶
CalcTotalPages 计算总页数
func (*SettingsController) CheckAuth ¶
func (this *SettingsController) CheckAuth()
CheckAuth 检测邮箱帐号密码
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 ¶
CalcTotalPages 计算总页数