pkg

package
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIErrorResult

type APIErrorResult struct {
	Success bool   `json:"success" example:"false"`
	Message string `json:"message"`
}

type APIResult

type APIResult struct {
	Success bool        `json:"success" example:"true"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
	Result  interface{} `json:"result"`
}

type BaseUserInfo

type BaseUserInfo struct {
	ID              string      `json:"id"`
	NickName        string      `json:"nickName"`
	Avatar          string      `json:"avatar"`
	UserName        string      `json:"userName"`
	Sex             string      `json:"sex"`
	Birth           time.Time   `json:"birth"`
	Mobile          string      `json:"mobile"`
	WeiXin          string      `json:"weiXin"`
	QQ              string      `json:"qq"`
	EMail           string      `json:"email"`
	Province        string      `json:"province"`
	City            string      `json:"city"`
	District        string      `json:"district"`
	Street          string      `json:"street"`
	Roles           interface{} `json:"roles"`
	Description     string      `json:"description"`
	Address         []string    `json:"address"`
	UserType        int         `json:"type"`
	DepartmentID    string      `json:"departmentId"`
	DepartmentTitle string      `json:"departmentTitle"`
}

type BaseUserInfoClaims

type BaseUserInfoClaims struct {
	jwt.Claims
	BaseUserInfo
}

type CaptchaData

type CaptchaData struct {
	ID          string
	Digits      string
	Base64Image string
}

type FormField

type FormField struct {
	Field           string  `json:"field"`
	Name            string  `json:"name"`
	Level           string  `json:"level"`
	TableShow       bool    `json:"tableShow"`
	SortOrder       float32 `json:"sortOrder"`
	Sortable        bool    `json:"sortable"`
	Editable        bool    `json:"editable"`
	Type            string  `json:"type"`
	Validate        bool    `json:"validate"`
	SearchType      string  `json:"searchType"`
	SearchLevel     string  `json:"searchLevel"`
	Searchable      bool    `json:"searchable"`
	DefaultSort     bool    `json:"defaultSort"`
	DefaultSortType string  `json:"defaultSortType"`
	DictType        string  `json:"dictType"`
	CustomUrl       string  `json:"customUrl"`
	SearchDictType  string  `json:"searchDictType"`
	SearchCustomUrl string  `json:"searchCustomUrl"`
}

type MsgContent

type MsgContent struct {
	ChannelId string `json:"channelId"`
	MsgType   string `json:"msgType"`
	Data      string `json:"data"`
}

type QueryCondition

type QueryCondition struct {
	Page      int       `json:"page"`
	Size      int       `json:"size"`
	Sort      string    `json:"sort"`
	Order     string    `json:"order"`
	StartDate time.Time `json:"startDate"`
	EndDate   time.Time `json:"endDate"`
	// contains filtered or unexported fields
}

func NewQueryCondition

func NewQueryCondition(modelDBFields map[string]map[string]string) *QueryCondition

func (*QueryCondition) GetQuery

func (m *QueryCondition) GetQuery(tableName string, condition map[string]SearchCondition, query *gorm.DB, countQuery *gorm.DB) (err error)

生成高级过滤条件,支持字段搜索条件定制(Comparator:>、==、<、!=、like等)

type SearchCondition

type SearchCondition struct {
	Comparator string      `json:"comparator"`
	Value      interface{} `json:"value"`
	Value2     interface{} `json:"value2"`
}

type UUIDTransformer

type UUIDTransformer struct {
}

func (*UUIDTransformer) Transformer

func (m *UUIDTransformer) Transformer(typ reflect.Type) func(dst, src reflect.Value) error

type WxAuthInfo

type WxAuthInfo struct {
	ID         string    `json:"id"`
	CAK        string    `json:"cak"`
	AppID      string    `json:"appID"`
	OpenID     string    `json:"openID"`
	UnionId    string    `json:"unionID"`
	NickName   string    `json:"nickName"`
	HeadImgURL string    `json:"headImgURL"`
	Sex        string    `json:"sex"`
	Country    string    `json:"country"`
	Province   string    `json:"province"`
	City       string    `json:"city"`
	Subscribe  int       `json:"subscribe"`
	CreateTime time.Time `json:"createTime" time_format:"2006-01-02 15:04:05"`
}

type WxAuthInfoClaims

type WxAuthInfoClaims struct {
	jwt.Claims
	WxAuthInfo
}

type ZincHook

type ZincHook struct {
	// contains filtered or unexported fields
}

func NewZincHook

func NewZincHook(level logrus.Level, zincIndex, zincServerUrl, user, password string) (*ZincHook, error)

func (*ZincHook) Fire

func (hook *ZincHook) Fire(entry *logrus.Entry) (err error)

func (*ZincHook) Levels

func (hook *ZincHook) Levels() []logrus.Level

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL