Documentation ¶
Overview ¶
Package beego_utils beego 获取参数
Package beego_utils beego 参数返回
Index ¶
- func HelperConfigSessStringcfg(sessionName string, configName string) (cfg string, err error)
- func HelperConvectBody(this *beego.Controller, out interface{})
- func HelperConvertMac(mac *string) (err error)
- func HelperConvetInterface(in interface{}, out interface{}) (err error)
- func HelperDate2Str(timeIn time.Time) string
- func HelperDealMac(mac string) (ipaddr string)
- func HelperFileSuffix(filename string) (suffix string)
- func HelperGetInt64Param(this *beego.Controller, para string) int64
- func HelperGetIntParam(this *beego.Controller, para string) int
- func HelperGetNetwork() (macaddr string, ip string, err error)
- func HelperGetPath(this *beego.Controller, path string) string
- func HelperGetStringParam(this *beego.Controller, para string) string
- func HelperMd5andSalt(salt string) (md5Str string)
- func HelperStr2Date(strTime string) (time.Time, error)
- func HelperTimeGetDaySection() (startTime time.Time, endTime time.Time, err error)
- func ReturnFail(this *beego.Controller, msg string)
- func ReturnMuti(this *beego.Controller, msg interface{}, data interface{})
- func ReturnSuccess(this *beego.Controller, data interface{})
- func ReturnWarning(this *beego.Controller, msg interface{}, data interface{})
- type CodeType
- type Network
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HelperConfigSessStringcfg ¶
HelperConfigSessStringcfg 获取 session key string
func HelperConvectBody ¶
func HelperConvectBody(this *beego.Controller, out interface{})
HelperConvectBody Post 获取json
func HelperConvertMac ¶
HelperConvertMac 转换macaddr,去掉 “: - ”以及空格
func HelperConvetInterface ¶
func HelperConvetInterface(in interface{}, out interface{}) (err error)
func HelperDate2Str ¶
func HelperDealMac ¶
func HelperFileSuffix ¶
HelperFileSuffix 获取文件 扩展名
func HelperGetInt64Param ¶
func HelperGetInt64Param(this *beego.Controller, para string) int64
HelperGetInt64Param Get 获取int64
func HelperGetIntParam ¶
func HelperGetIntParam(this *beego.Controller, para string) int
HelperGetIntParam Get 获取int
func HelperGetNetwork ¶
func HelperGetPath ¶
func HelperGetPath(this *beego.Controller, path string) string
HelperGetPath Get 获取string url/:
func HelperGetStringParam ¶
func HelperGetStringParam(this *beego.Controller, para string) string
HelperGetStringParam Get 获取string
func HelperMd5andSalt ¶
HelperMd5andSalt 获取 md5 加密字符串, 有盐值 (srcStr string 未使用已删除)
func HelperTimeGetDaySection ¶
func ReturnWarning ¶
func ReturnWarning(this *beego.Controller, msg interface{}, data interface{})
返回告警
Types ¶
type Network ¶
func HelperGetNetworkInfo ¶
Click to show internal directories.
Click to hide internal directories.