Documentation ¶
Index ¶
- Constants
- func CheckIssueCommentLen(comment string) errs.SystemErrorInfo
- func CheckIssueRemarkLen(str string) errs.SystemErrorInfo
- func CheckIssueTitleLen(str string) errs.SystemErrorInfo
- func CheckUserNameLen(str string) errs.SystemErrorInfo
- func ConvertObject(src interface{}, source interface{}) errs.SystemErrorInfo
- func FieldInUpdate(updateFields []string, field string) bool
- func FileRead(dir string) (string, error)
- func GetCommentAtUserIds(content string) []int64
- func GetCompressedPath(path string, typ int) string
- func GetCurrentPath() string
- func GetCustomEnv() string
- func GetDifMemberIds(beforeUserIds []int64, afterUserIds []int64) ([]int64, []int64)
- func GetDifMemberIdsByString(beforeUserIds []string, afterUserIds []string) ([]string, []string)
- func GetMQTTAppChannel(orgId, appId int64) string
- func GetMQTTOrgChannel(orgId int64) string
- func GetMQTTOrgRootChannel(orgId int64) string
- func GetMQTTProjectChannel(orgId, projectId int64) string
- func GetMQTTTableChannel(orgId, appId, tableId int64) string
- func GetMQTTUserChannel(orgId, userId int64) string
- func GetMobile(mobile string) string
- func GetOssKeyInfo(key string) bo.OssKeyInfo
- func GzipEncoding(in []byte) []byte
- func InterfaceToInt64(v interface{}) (int64, bool)
- func IsBool(t int) bool
- func IsChinaMobileEnv() bool
- func JointUrl(host, path string) string
- func ModifyFileName(path string, str string) string
- func PageOption(page *int, size *int) (pageA uint, sizeA uint)
- func ParseCacheKey(key string, params map[string]interface{}) (string, errs.SystemErrorInfo)
- func ParseFileName(path string) string
- func ParseFileSuffix(fileName string) string
- func PwdEncrypt(cleartextPassword, salt string) string
- func PwdEncryptForLesscodeAccoutLogin(loginNamePlusInputPwd, salt string) string
- func ReadAndWrite(dirFrom string, context map[string]interface{}, tx sqlbuilder.Tx) errs.SystemErrorInfo
- func RenderCommentContentToMarkDown(content string, onlyComment bool) string
- func RenderCommentContentToMarkDownWithOpenIdMap(content string, onlyComment bool, openIdMap map[string]string) string
- func RenderCommentContentToOrigin(content string) string
- func RoleOperationCodesMatch(operationCode string, operationCodes string) bool
- func UnicodeEmojiCodeFilter(s string) string
- func WriteWithIoutil(name, content string)
Constants ¶
View Source
const ( AtPrefix = "@#[" AtSuffix = "]&$" AtSplit = ":" )
Variables ¶
This section is empty.
Functions ¶
func CheckIssueCommentLen ¶
func CheckIssueCommentLen(comment string) errs.SystemErrorInfo
func CheckIssueRemarkLen ¶
func CheckIssueRemarkLen(str string) errs.SystemErrorInfo
func CheckIssueTitleLen ¶
func CheckIssueTitleLen(str string) errs.SystemErrorInfo
func CheckUserNameLen ¶
func CheckUserNameLen(str string) errs.SystemErrorInfo
func ConvertObject ¶
func ConvertObject(src interface{}, source interface{}) errs.SystemErrorInfo
func FieldInUpdate ¶
func GetCommentAtUserIds ¶
func GetCompressedPath ¶
func GetCurrentPath ¶
func GetCurrentPath() string
func GetMQTTProjectChannel ¶
获取MQTT项目channel
func GetMQTTTableChannel ¶
获取MQTT表channel
func GetOssKeyInfo ¶
func GetOssKeyInfo(key string) bo.OssKeyInfo
func GzipEncoding ¶
func InterfaceToInt64 ¶
InterfaceToInt64 interface 转 int64
func ParseCacheKey ¶
func ParseCacheKey(key string, params map[string]interface{}) (string, errs.SystemErrorInfo)
func PwdEncrypt ¶
func ReadAndWrite ¶
func ReadAndWrite(dirFrom string, context map[string]interface{}, tx sqlbuilder.Tx) errs.SystemErrorInfo
func RenderCommentContentToMarkDown ¶
评论提及规则: @#[姓名:open_id:user_id]&$
func RenderCommentContentToMarkDownWithOpenIdMap ¶
func RenderCommentContentToMarkDownWithOpenIdMap(content string, onlyComment bool, openIdMap map[string]string) string
评论 带替换
func RenderCommentContentToOrigin ¶
将评论转成原始格式,输入@#[xxx:open_id:user_id]&$ 你好, 输出@xxx 你好
func RoleOperationCodesMatch ¶
func WriteWithIoutil ¶
func WriteWithIoutil(name, content string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.