Documentation ¶
Index ¶
- Variables
- type BaseController
- func (b *BaseController) JsonError(entryType, errmsg string, data interface{}, isLog bool)
- func (b *BaseController) JsonOK(entryType string, data interface{}, isLog bool)
- func (b *BaseController) LogError(entryType string, msg StringMap)
- func (b *BaseController) LogInfo(entryType string, msg StringMap)
- func (b *BaseController) Prepare()
- type DingdingController
- type EmailController
- type HolidayController
- type MD5Controller
- type PasswordController
- type PhoneController
- type QueryIPController
- type StorePasswordController
- type StringMap
- type TwoStepAuthController
- type VersionController
- type WeixinController
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UniQueIDName = getUniqueIDName() NeedTokenError = "need DEVOPS-API-TOKEN header" TokenAuthError = "DEVOPS-API-TOKEN auth fail" )
View Source
var (
StorePasswordEntryType = "Store Password"
)
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct {
beego.Controller
}
BaseController 基础控制器
func (*BaseController) JsonError ¶ added in v1.0.0
func (b *BaseController) JsonError(entryType, errmsg string, data interface{}, isLog bool)
func (*BaseController) JsonOK ¶ added in v1.0.0
func (b *BaseController) JsonOK(entryType string, data interface{}, isLog bool)
func (*BaseController) LogError ¶ added in v1.0.0
func (b *BaseController) LogError(entryType string, msg StringMap)
func (*BaseController) LogInfo ¶ added in v1.0.0
func (b *BaseController) LogInfo(entryType string, msg StringMap)
type DingdingController ¶ added in v0.4.0
type DingdingController struct {
BaseController
}
DingdingController 发送钉钉消息控制器
func (*DingdingController) SendMessage ¶ added in v0.4.0
func (d *DingdingController) SendMessage()
SendMessage 发送钉钉消息
type HolidayController ¶ added in v0.5.0
type HolidayController struct {
BaseController
}
HolidayController 节假日工作日判断
func (*HolidayController) Get ¶ added in v0.5.0
func (h *HolidayController) Get()
Get 接收一个日期,判断是节假日还是工作日
func (*HolidayController) Post ¶ added in v0.5.0
func (h *HolidayController) Post()
Post 接收中国的节假日安排, 为判断节假日和工作日准备
type PasswordController ¶
type PasswordController struct {
BaseController
}
PasswordController 密码管理控制器
func (*PasswordController) AuthGenPassword ¶
func (p *PasswordController) AuthGenPassword()
AuthGenPassword 验证生成上面生成的密码
func (*PasswordController) GenPassword ¶
func (p *PasswordController) GenPassword()
GenPassword 生成指定长度的密码
func (*PasswordController) ManualGenAuthPassword ¶
func (p *PasswordController) ManualGenAuthPassword()
ManualGenAuthPassword 手动生成验证密码
type PhoneController ¶ added in v1.0.2
type PhoneController struct {
BaseController
}
PhoneController 手机归属地查询
func (*PhoneController) Get ¶ added in v1.0.2
func (p *PhoneController) Get()
type QueryIPController ¶ added in v0.6.0
type QueryIPController struct {
BaseController
}
QueryIPController IP地址查询
type StorePasswordController ¶ added in v0.2.0
type StorePasswordController struct {
BaseController
}
StorePasswordController 密码管理控制器
func (*StorePasswordController) Delete ¶ added in v0.2.0
func (m *StorePasswordController) Delete()
Delete 密码管理 删除密码
func (*StorePasswordController) Get ¶ added in v0.2.0
func (m *StorePasswordController) Get()
Get 获取密码
func (*StorePasswordController) Post ¶ added in v1.0.0
func (m *StorePasswordController) Post()
Update 密码管理 保存/更新密码
type TwoStepAuthController ¶
type TwoStepAuthController struct {
BaseController
}
TwoStepAuthController 二步验证控制器
type VersionController ¶
type VersionController struct {
BaseController
}
VersionController 程序自身版本管理控制器
type WeixinController ¶ added in v0.3.0
type WeixinController struct {
BaseController
}
WeixinController 发送微信消息控制器
func (*WeixinController) SendMessage ¶ added in v0.3.0
func (w *WeixinController) SendMessage()
SendMessage 发送消息
Click to show internal directories.
Click to hide internal directories.