Documentation ¶
Index ¶
- Variables
- func CliLogger()
- func Compress(src, dest string) error
- func CreateAccount(email string) (uid int64, err error)
- func CreateStagingDev(email string) (uid int64, err error)
- func DeCompress(src, dest string) error
- func ExecCommand(commandName string) bool
- func Exec_shell(s string) (string, error)
- func Exists(path string) bool
- func ExportSqlData2File(data []map[string]interface{}, table string, filePath string, haveId bool) error
- func GetAccToken() (res string)
- func GetFunc() string
- func GetMapKeyValue(data map[string]interface{}, haveId bool) (col string, val string, err error)
- func GetTimeString() (t string)
- func Interface2slice(i interface{}) (s []string)
- func IsInt(value interface{}) bool
- func Logger() gin.HandlerFunc
- func PrintFileList(fl []string)
- func ReadDirectory(dir string) (fl []string)
- func RemoveFile(dataDir string)
- func Sort(key []string)
- func Strval(value interface{}) string
- func Validate(data interface{}) (string, int)
- func WriteBytes(filePath string, b []byte) error
- func WriteStrings(filePath string, s string) error
- type Config
- type Database
- type Developer
- type DeveloperBasicInput
- type Gender
- type ImCategory
- type JsonResult
- type QiNiuClient
- type Token
- type User
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateAccount ¶
func CreateStagingDev ¶
func ExecCommand ¶
func ExportSqlData2File ¶
func ExportSqlData2File(data []map[string]interface{}, table string, filePath string, haveId bool) error
exportSqlData2File 将sql数据按照特定方式导出到文件
func GetMapKeyValue ¶
GetMapKeyValue 分别获取表的字段和字段的值
func GetTimeString ¶
func GetTimeString() (t string)
func Interface2slice ¶
func Interface2slice(i interface{}) (s []string)
func Logger ¶
func Logger() gin.HandlerFunc
func PrintFileList ¶
func PrintFileList(fl []string)
func RemoveFile ¶
func RemoveFile(dataDir string)
func WriteBytes ¶
Types ¶
type Config ¶
type Config struct { AccessKey string `json:"access_key"` SecretKey string `json:"secret_key"` Zone int `json:"zone"` Bucket string `json:"Bucket"` UseHTTPS bool `json:"use_https"` UseCdnDomains bool `json:"use_cdn_domains"` Domain string `json:"domain"` }
func LoadBucketConfig ¶
func LoadBucketConfig() *Config
type DeveloperBasicInput ¶
type DeveloperBasicInput struct { FullName *string `json:"fullName,omitempty"` PhoneNumber *string `json:"phoneNumber,omitempty"` Gender Gender `json:"gender,omitempty"` ImCategory ImCategory `json:"imCategory,omitempty"` ImNumber *string `json:"imNumber,omitempty"` WebSite *string `json:"webSite,omitempty"` ContractAddress *string `json:"contractAddress,omitempty"` LicenseVersion *string `json:"licenseVersion,omitempty"` CompanyName *string `json:"companyName,omitempty"` }
type JsonResult ¶
type QiNiuClient ¶
type QiNiuClient struct { AccessKey string `json:"access_key"` SecretKey string `json:"secret_key"` Bucket string `json:"bucket"` // Zone int `json:"zone"` //0:华东, 1:华北, 2:华南, 3:北美 UseHTTPS bool `json:"use_https"` UseCdnDomains bool `json:"use_cdn_domains"` Domain string `json:"domain"` }
func NewClient ¶
func NewClient(accessKey, secretKey, bucket string, Zone int, useHttps, useCdnDomains bool, domain string) *QiNiuClient
func (*QiNiuClient) SignDownloadPrivateToken ¶
func (client *QiNiuClient) SignDownloadPrivateToken(url string) (data string)
func (*QiNiuClient) UploadFile2Bucket ¶
func (client *QiNiuClient) UploadFile2Bucket(fileDir string, fileList []string) (successUrlList []string, err error)
Click to show internal directories.
Click to hide internal directories.