# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
使用chrome采集网页HTML.
采集HTML并把相对链接和相对图片内容类型,contType:0表示markdown,1表示html,2表示文本force:是否是强力采集intelligence:是否是智能提取,智能提取,使用html2article,否则提取bodydiySelecter:自定义选择器.
*
* 处理url,目的是保存参数
*/.
解码.
编码.
ExecuteViewPathTemplate 执行指定的模板并返回执行结果.@param tplName 模板文件路径.
FileExists reports whether the named file or directory exists.
No description provided by the author
No description provided by the author
*
* 返回总记录条数,总页数,当前页面数据,分页html
* 根据分页选项,生成分页连接 下面是一个实例:
func (this *MainController) Test() {
var po util.PageOptions
po.EnablePreNexLink = true
po.EnableFirstLastLink = true
po.LinkItemCount = 7
po.TableName = "help_topic"
cp, _ := this.GetInt("pno")
po.CurrentPage = int(cp)
_,_,_ pager := util.GetPagerLinks(&po, this.Ctx)
this.Data["Email"] = html.HTML(pager)
this.TplName = "test.html"
}
*/.
*
* 分页函数,适用任何表
* 返回 总记录条数,总页数,以及当前请求的数据RawSeter,调用中需要"rs.QueryRows(&tblog)"就行了 --tblog是一个Tb_log对象
* 参数:表名,当前页数,页面大小,条件(查询条件,格式为 " and name='zhifeiya' and age=12 ")
*/.
判断数据是否在map中.
No description provided by the author
随机字符串.
No description provided by the author
分页函数(这个分页函数不具有通用性)rollPage:展示分页的个数totalRows:总记录currentPage:每页显示记录数urlPrefix:url链接前缀urlParams:url键值对参数.
从md的html文件中提取文章标题(从h1-h6).
加密密码.
校验密码是否有效.
渲染markdown为html并录入数据库.
No description provided by the author
评分处理.
分词@param str 需要分词的文字.
@param conf 邮箱配置@param subject 邮件主题@param email 收件人@param body 邮件内容.
操作图片显示如果用的是oss存储,这style是avatar、cover可选项.
No description provided by the author
# Constants
数字、大小写字母.
小写字母.
纯数字.
大写字母.
更多存储类型有待扩展.
更多存储类型有待扩展.
# Structs
No description provided by the author