model

package
v0.0.0-...-9c09179 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackTypePaid    = "paid"
	BackTypeScanned = "scanned"
	BackTypeRefuned = "refund"
)

BackTypePaid ...

View Source
const RoleSlugAdmin = "admin"

RoleSlugAdmin ...

View Source
const RoleSlugUser = "user"

RoleSlugUser ...

View Source
const UserTypeAdmin = "admin"

UserTypeAdmin ...

View Source
const UserTypeUser = "user"

UserTypeUser ...

View Source
const WechatTypeH5 = "h5"

WechatTypeH5 ...

View Source
const WechatTypeProgram = "program"

WechatTypeProgram ...

Variables

This section is empty.

Functions

func Count

func Count(session *xorm.Session, obj Modeler) (int64, error)

Count ...

func Delete

func Delete(session *xorm.Session, obj Modeler) (int64, error)

Delete ...

func Exist

func Exist(session *xorm.Session, obj Modeler) (bool, error)

Exist ...

func Find

func Find(session *xorm.Session, obj Modeler) error

Find ...

func FindByID

func FindByID(id string, obj Modeler) error

FindByID ...

func Get

func Get(session *xorm.Session, obj Modeler) (bool, error)

Get ...

func Insert

func Insert(session *xorm.Session, obj Modeler) (int64, error)

Insert ...

func MustSession

func MustSession(session *xorm.Session) *xorm.Session

MustSession ...

func PageNumber

func PageNumber(total, limit float64) int

PageNumber ...

func Table

func Table(m interface{}) *xorm.Session

Table ...

func Update

func Update(session *xorm.Session, id string, obj Modeler) (int64, error)

Update ...

func UpdateWithColumn

func UpdateWithColumn(session *xorm.Session, id string, obj Modeler, cols ...string) (int64, error)

UpdateWithColumn ...

func UserFromHook

func UserFromHook(user *WechatUser, info *WechatUserInfo, id string, wtype string)

UserFromHook ...

func Where

func Where(query interface{}, args ...interface{}) *xorm.Session

Where ...

Types

type Activity

type Activity struct {
	Model      `xorm:"extends" json:",inline"`
	UserID     string `xorm:"notnull default('') comment(创建活动的用户ID) user_id" json:"user_id"`
	PropertyID string `xorm:"notnull default('') comment(配置ID) property_id" json:"property_id"`
	Name       string `xorm:"notnull default('') comment(名称) name" json:"name"`                        //活动名称
	Code       string `xorm:"notnull unique default('') comment(活动码) code" json:"code"`                //活动码
	IsPublic   bool   `xorm:"notnull default(false) comment(公开) is_public" json:"is_public"`           //是否公开
	NeedVerify bool   `xorm:"notnull default(false) comment(是否需要校验) need_verify" json:"need_verify"`   //是否需要校验
	Comment    string `xorm:"notnull default('')  comment(活动介绍) varchar(2048) comment" json:"comment"` //活动介绍
	Mode       string `xorm:"notnull default('') comment(活动模式) mode" json:"mode"`                      //活动模式
}

Activity ...

func NewActivity

func NewActivity(id string) *Activity

NewActivity ...

func (*Activity) Activities

func (obj *Activity) Activities() ([]*Activity, error)

Activities ...

func (*Activity) CodeProperty

func (obj *Activity) CodeProperty() (*Property, error)

CodeProperty ...

func (*Activity) Get

func (obj *Activity) Get() (bool, error)

Get ...

func (*Activity) Property

func (obj *Activity) Property() (*Property, error)

Property ...

func (*Activity) Update

func (obj *Activity) Update(cols ...string) (int64, error)

Update ...

func (*Activity) User

func (obj *Activity) User() (*User, error)

User ...

type Callback

type Callback struct {
	Model    `xorm:"extends"`
	Type     string
	BackType string
	Address  string
	Port     string
}

Callback ...

func NewCallback

func NewCallback(id string) *Callback

NewCallback ...

type Charge

type Charge struct {
	Model       `xorm:"extends"`
	*ChargeInfo `xorm:"extends"`
	//*ChargeResponseInfo `xorm:"extends"`
	RequestInfo  map[string]interface{} `xorm:"comment(请求详情) json" xml:"-"`
	ResponseInfo map[string]interface{} `xorm:"comment(应答详情) json" xml:"-"`
}

Charge ...

type ChargeInfo

type ChargeInfo struct {
	WechatUserID string `xorm:"notnull default('') comment(用户ID)" xml:"-"`
	PayStatus    string `xorm:"notnull default('') comment(支付状态)"`
	OutTradeNo   string `xorm:"notnull default('') comment(商户订单号)" xml:"out_trade_no"`
	OpenID       string `xorm:"notnull default('') comment(用户ID)" xml:"openid"`
	PrepayID     string `xorm:"notnull default('') comment(预支付ID)" xml:"prepay_id"`
	TotalFee     int    `xorm:"notnull default(0) comment(总金额)" xml:"total_fee"`
	FavourFee    int    `xorm:"notnull default(0) comment(活动金额)" xml:"favour_fee"`
}

ChargeInfo ...

type ChargeRequestInfo

type ChargeRequestInfo struct {
	Model `xorm:"extends" json:",inline"`
}

ChargeRequestInfo ...

type DataBase

type DataBase struct {
	*xorm.Engine
	// contains filtered or unexported fields
}

DataBase ...

func DB

func DB() *DataBase

DB ...

func InitDB

func InitDB(cfg *config.Configure) *DataBase

InitDB ...

type Login

type Login struct {
	Username string `json:"username" ` //用户名
	Password string `json:"password" ` //密码
}

Login ...

type Menu struct {
	Model       `xorm:"extends" json:",inline"`
	PID         string `xorm:"pid"` //parent id
	Name        string `xorm:"name"`
	Icon        string `xorm:"icon"`
	Slug        string `xorm:"slug"`
	URL         string `xorm:"url"`
	Active      string `xorm:"active"`
	Description string `xorm:"description"`
	Sort        int    `xorm:"sort"`
}

Menu ...

func NewMenu

func NewMenu(id string) *Menu

NewMenu ...

func (obj *Menu) Get() (bool, error)

Get ...

func (obj *Menu) Menus() ([]*Menu, error)

Menus ...

type Model

type Model struct {
	ID        string `json:"id" xorm:"id uuid pk comment(默认主键)"`
	CreatedAt int64  `json:"-" xorm:"created comment(创建时间)"`
	UpdatedAt int64  `json:"-" xorm:"updated comment(更新时间)"`
	DeletedAt *int64 `json:"-" xorm:"deleted comment(删除时间)"`
	Version   int    `json:"-" xorm:"version comment(版本)"`
}

Model ...

func (*Model) BeforeInsert

func (m *Model) BeforeInsert()

BeforeInsert ...

func (*Model) Exist

func (m *Model) Exist() (bool, error)

Exist ...

func (*Model) Get

func (m *Model) Get() (bool, error)

Get ...

func (*Model) GetID

func (m *Model) GetID() string

GetID ...

func (*Model) Update

func (m *Model) Update(cols ...string) (int64, error)

Update ...

type Modeler

type Modeler interface {
	GetID() string
	Get() (bool, error)
	Update(cols ...string) (int64, error)
}

Modeler ...

type Module

type Module struct {
	Model   `xorm:"extends" json:",inline"`
	Name    string   `xorm:"notnull default('') name" json:"name"`     //模块名称
	Alias   string   `xorm:"notnull default('') alias" json:"alias"`   //模块别名url+别名+process
	Site    string   `xorm:"notnull default('') site" json:"site"`     //模块地址
	OS      string   `xorm:"os" json:"os"`                             //运行中的系统类别
	Deploy  string   `xorm:"notnull default('') deploy" json:"deploy"` //部署方式
	Log     string   `xorm:"notnull default('') log" json:"log"`       //日志目录(类别)
	Depends []string `xorm:"depends" json:"depends"`                   //关联模块列表
}

Module ...

func NewModule

func NewModule(id string) *Module

NewModule ...

func (*Module) Get

func (obj *Module) Get() (bool, error)

Get ...

type Notify

type Notify struct {
	Model    `xorm:"extends" json:",inline"`
	UserID   string `json:"user_id" xorm:"user_id"`
	Sign     string `json:"sign" xorm:"sign notnull unique"`
	Ver      string `json:"ver" xorm:"ver"`
	BackURL  string `json:"back_url" xorm:"back_url"`
	URI      string `json:"uri" xorm:"uri"`
	BackType string `json:"back_type" xorm:"back_type"`
}

Notify ...

func NewNotify

func NewNotify(id string) *Notify

NewNotify ...

func (*Notify) Get

func (obj *Notify) Get() (bool, error)

Get ...

func (*Notify) Notifies

func (obj *Notify) Notifies() ([]*Notify, error)

Notifies ...

type OAuth

type OAuth struct {
	Scopes      []string `xorm:"oauth.scopes"`
	RedirectURL string   `xorm:"oauth.redirect_url"`
}

OAuth ...

type Paginate

type Paginate struct {
	Current   int
	Total     int64
	TotalPage int
	Limit     int
	Desc      bool
}

Paginate ...

func ParsePaginate

func ParsePaginate(v url.Values) *Paginate

ParsePaginate ...

func (*Paginate) Count

func (obj *Paginate) Count(session *xorm.Session, m Modeler) (e error)

Count ...

func (*Paginate) Find

func (obj *Paginate) Find(detail interface{}) error

Find ...

func (*Paginate) FindWhere

func (obj *Paginate) FindWhere(session *xorm.Session, detail interface{}) error

FindWhere ...

func (*Paginate) FindWhere2

func (obj *Paginate) FindWhere2(m Modeler, detail interface{}) error

FindWhere2 ...

func (*Paginate) Start

func (obj *Paginate) Start() int

Start ...

type Paginator

type Paginator interface {
	Find(interface{}) error
	FindWhere(*xorm.Session, interface{}) error
	Count(*xorm.Session, Modeler) error
	Page() error
	PageWhere(m Modeler) error
}

Paginator ...

type Permission

type Permission struct {
	Model           `xorm:"extends" json:",inline"`
	Name            string `xorm:"name"`
	Slug            string `xorm:"slug"`
	Description     string `xorm:"description"`
	PermissionModel string `xorm:"permission_model"`
}

Permission ...

func NewPermission

func NewPermission(id string) *Permission

NewPermission ...

func (*Permission) Get

func (obj *Permission) Get() (bool, error)

Get ...

func (*Permission) Permissions

func (obj *Permission) Permissions() ([]*Permission, error)

Permissions ...

func (*Permission) Roles

func (obj *Permission) Roles() ([]*Role, error)

Roles ...

func (*Permission) Update

func (obj *Permission) Update(cols ...string) (int64, error)

Update ...

func (*Permission) Users

func (obj *Permission) Users() ([]*User, error)

Users ...

type PermissionRole

type PermissionRole struct {
	Model        `xorm:"-"`
	PermissionID string      `json:"-" xorm:"permission_id notnull unique(permission_role) uuid"`
	Permission   *Permission `xorm:"-"`
	RoleID       string      `json:"-" xorm:"role_id notnull unique(permission_role) uuid"`
	Role         *Role       `xorm:"-"`
}

PermissionRole ...

func (*PermissionRole) Relate

func (obj *PermissionRole) Relate() (*Permission, *Role, error)

Relate ...

type PermissionUser

type PermissionUser struct {
	Model        `xorm:"-"`
	PermissionID string `json:"permission_id" xorm:"permission_id notnull unique(permission_user) uuid"`
	UserID       string `json:"user_id" xorm:"user_id notnull unique(permission_user) uuid"`
}

PermissionUser ...

func (*PermissionUser) Relate

func (obj *PermissionUser) Relate() (*Permission, *User, error)

Relate ...

type Property

type Property struct {
	Model       `xorm:"extends" json:",inline"`
	UserID      string   `xorm:"notnull unique user_id" json:"user_id"`
	Sign        string   `xorm:"notnull unique sign" json:"sign"` //配置唯一识别码
	AppID       string   `xorm:"notnull unique app_id " json:"app_id"`
	Host        string   `xorm:"host" json:"host"`
	MchID       string   `xorm:"mch_id" json:"mch_id"`
	MchKey      string   `xorm:"mch_key" json:"mch_key"`
	PemCert     string   `xorm:"varchar(2048) pem_cert" json:"pem_cert"`
	PemKEY      string   `xorm:"varchar(2048) pem_key" json:"pem_key"`
	RootCA      string   `xorm:"varchar(2048) root_ca" json:"root_ca"`
	NotifyURL   string   `xorm:"notify_url" json:"notify_url"`
	RefundURL   string   `xorm:"refund_url" json:"refund_url"`
	Kind        string   `xorm:"kind" json:"kind"`
	Sandbox     bool     `xorm:"sandbox" json:"sandbox" `
	AppSecret   string   `xorm:"app_secret" json:"app_secret"`
	Token       string   `xorm:"token" json:"token"`
	AesKey      string   `xorm:"aes_key" json:"aes_key"`
	PublicKey   string   `xorm:"public_key" json:"public_key"`
	PrivateKey  string   `xorm:"private_key" json:"private_key"`
	Scopes      []string `xorm:"scopes" json:"scopes"`
	RedirectURI string   `xorm:"redirect_uri" json:"redirect_uri"`
}

Property ...

func NewProperty

func NewProperty(id string) *Property

NewProperty ...

func (*Property) Config

func (obj *Property) Config() *wego.Config

Config ...

func (*Property) Get

func (obj *Property) Get() (bool, error)

Get ...

func (*Property) Properties

func (obj *Property) Properties() ([]*Property, error)

Properties ...

type Role

type Role struct {
	Model       `xorm:"extends" json:",inline"`
	Enable      bool   `xorm:"enable" json:"enable"`
	Name        string `xorm:"name" json:"name"`
	Slug        string `xorm:"slug" json:"slug"`
	Description string `xorm:"description" json:"description"`
	Level       int    `xorm:"level" json:"level"`
}

Role ...

func NewRole

func NewRole(id string) *Role

NewRole ...

func (*Role) Get

func (obj *Role) Get() (bool, error)

Get ...

func (*Role) Permissions

func (obj *Role) Permissions() ([]*Permission, error)

Permissions ...

func (*Role) Roles

func (obj *Role) Roles() ([]*Role, error)

Roles ...

func (*Role) Update

func (obj *Role) Update(cols ...string) (int64, error)

Update ...

func (*Role) Users

func (obj *Role) Users() ([]*User, error)

Users ...

type RoleUser

type RoleUser struct {
	Model  `xorm:"-"`
	RoleID string `json:"-" xorm:"role_id notnull unique(role_user) uuid"`
	Role   *Role  `json:"role" xorm:"-"`
	UserID string `json:"-" xorm:"user_id notnull unique(role_user) uuid"`
	User   *User  `json:"user" xorm:"-"`
}

RoleUser ...

func (*RoleUser) Relate

func (obj *RoleUser) Relate() (*Role, *User, error)

Relate ...

type Spread

type Spread struct {
	Model         `xorm:"extends"`
	UserID        string `xorm:"notnull default('') user_id" json:"user_id"`
	Nickname      string `xorm:"notnull default('') nickname" json:"nickname"`
	Code          string `xorm:"notnull default('') code" json:"code"`
	ActivityID    string `xorm:"notnull default('') activity_id" json:"activity_id"`
	ParentUserID1 string `xorm:"notnull default('') parent_user_id_1" json:"parent_user_id_1 comment(上1级)"`
	ParentUserID2 string `xorm:"notnull default('') parent_user_id_2" json:"parent_user_id_2 comment(上2级)"`
	ParentUserID3 string `xorm:"notnull default('') parent_user_id_3" json:"parent_user_id_3 comment(上3级)"`
	ParentUserID4 string `xorm:"notnull default('') parent_user_id_4" json:"parent_user_id_4 comment(上4级)"`
	ParentUserID5 string `xorm:"notnull default('') parent_user_id_5" json:"parent_user_id_5 comment(上5级)"`
	ParentUserID6 string `xorm:"notnull default('') parent_user_id_6" json:"parent_user_id_6 comment(上6级)"`
	ParentUserID7 string `xorm:"notnull default('') parent_user_id_7" json:"parent_user_id_7 comment(上7级)"`
	ParentUserID8 string `xorm:"notnull default('') parent_user_id_8" json:"parent_user_id_8 comment(上8级)"`
	ParentUserID9 string `xorm:"notnull default('') parent_user_id_9" json:"parent_user_id_9 comment(上9级)"`
}

Spread ...

func NewSpread

func NewSpread(id string) *Spread

NewSpread ...

func (*Spread) Get

func (obj *Spread) Get() (bool, error)

Get ...

func (*Spread) SpreadActivity

func (obj *Spread) SpreadActivity(session *xorm.Session) ([]*SpreadActivity, error)

SpreadActivity ...

type SpreadActivity

type SpreadActivity struct {
	Spread   Spread   `xorm:"extends"`
	Activity Activity `xorm:"extends"`
}

SpreadActivity ...

type TokenSub

type TokenSub struct {
	ID string
}

TokenSub ...

type Turnover

type Turnover struct {
	Model `xorm:"extends" json:",inline"`
}

Turnover ...

type User

type User struct {
	Model        `xorm:"extends" json:",inline"`
	WechatUserID string `json:"wechat_user_id" xorm:"notnull default('') wechat_user_id"` //绑定微信ID
	Block        bool   `json:"block" xorm:"notnull default(false) comment(禁止访问)"`        //禁止访问
	UserType     string `json:"user_type" xorm:"notnull default('') user_type"`           //用户类型
	Nickname     string `json:"nickname" xorm:"notnull default('') nickname"`             //名称
	Username     string `json:"username" xorm:"username notnull default('') unique"`      //用户名
	Email        string `json:"email" xorm:"notnull default('') email"`                   //邮件
	Mobile       string `json:"mobile" xorm:"notnull default('') mobile"`                 //移动电话
	Password     string `json:"password" xorm:"notnull default('') password"`             //密码
	Certificate  string `json:"certificate" xorm:"notnull default('') certificate"`       //证书
	PrivateKey   string `json:"private_key" xorm:"notnull default('') private_key"`       //私钥
	LoginIP      string `json:"login_ip" xorm:"notnull default('') login_ip"`             //本次登录IP

	Token string `json:"-" xorm:"notnull default('') varchar(1024) token"` //Token
	Salt  string `json:"-" xorm:"notnull default('') slat"`                //盐值
}

User ...

func GetUser

func GetUser(ctx *gin.Context) *User

GetUser ...

func MustUser

func MustUser(user interface{}, b bool) *User

MustUser ...

func NewUser

func NewUser(id string) *User

NewUser ...

func (*User) CheckPermission

func (obj *User) CheckPermission(funcName string) bool

CheckPermission ...

func (*User) Get

func (obj *User) Get() (bool, error)

Get ...

func (*User) Login

func (obj *User) Login() (string, error)

Login ...

func (*User) Permissions

func (obj *User) Permissions() ([]*Permission, error)

Permissions ...

func (*User) Properties

func (obj *User) Properties() ([]*Property, error)

Properties ...

func (*User) Roles

func (obj *User) Roles() ([]*Role, error)

Roles ...

func (*User) Spreads

func (obj *User) Spreads() ([]*Spread, error)

Spreads ...

func (*User) Update

func (obj *User) Update(cols ...string) (int64, error)

Update ...

func (*User) UserActivities

func (obj *User) UserActivities() ([]*UserActivity, error)

UserActivities ...

func (*User) Users

func (obj *User) Users() ([]*User, error)

Users ...

func (*User) Validate

func (obj *User) Validate(u *Login, key string) bool

Validate ...

func (*User) WechatUser

func (obj *User) WechatUser() (*WechatUser, error)

WechatUser ...

type UserActivity

type UserActivity struct {
	Model        `xorm:"extends" json:",inline"`
	PropertyID   string `xorm:"notnull default('') comment(配置ID) property_id" json:"property_id"`
	ActivityID   string `xorm:"notnull unique(user_activity) default('') comment(活动ID) activity_id" json:"activity_id"`
	UserID       string `xorm:"notnull unique(user_activity) default('') comment(参加活动的用户ID) user_id" json:"user_id"`
	IsFavorite   bool   `xorm:"notnull default(false) comment(是否收藏) is_favorite " json:"is_favorite"`
	SpreadCode   string `xorm:"notnull unique default('') comment(参加活动的用户推广码) spread_code"  json:"spread_code"`
	IsVerified   bool   `xorm:"notnull default(false)  comment(校验通过) is_verified" json:"is_verified"`
	SpreadNumber int64  `xorm:"notnull default(0) comment(推广数) spread_number" json:"spread_number"`
}

UserActivity ...

func NewUserActivity

func NewUserActivity(id string) *UserActivity

NewUserActivity ...

func (*UserActivity) Activities

func (obj *UserActivity) Activities(session *xorm.Session) ([]*UserActivityActivity, error)

Activities ...

func (*UserActivity) CodeSpread

func (obj *UserActivity) CodeSpread(session *xorm.Session) (*Spread, error)

CodeSpread ...

func (*UserActivity) Get

func (obj *UserActivity) Get() (bool, error)

Get ...

func (*UserActivity) Property

func (obj *UserActivity) Property(session *xorm.Session) (*Property, error)

Property ...

func (*UserActivity) Update

func (obj *UserActivity) Update(cols ...string) (int64, error)

Update ...

type UserActivityActivity

type UserActivityActivity struct {
	UserActivity UserActivity `xorm:"extends"`
	Activity     Activity     `xorm:"extends"`
}

UserActivityActivity ...

type UserActivityPaginate

type UserActivityPaginate struct {
	*Paginate `json:",inline"`
	Detail    []*UserActivity
}

UserActivityPaginate ...

func PageUserActivity

func PageUserActivity(paginate *Paginate) *UserActivityPaginate

PageUserActivity ...

func (*UserActivityPaginate) Page

func (obj *UserActivityPaginate) Page() error

Page ...

func (*UserActivityPaginate) PageWhere

func (obj *UserActivityPaginate) PageWhere(session *xorm.Session) error

PageWhere ...

type UserInformation

type UserInformation struct {
	Model         `xorm:"extends" json:",inline"`
	UserID        string `xorm:"notnull default('') unique user_id" json:"user_id"`
	Email         string `json:"email" xorm:"email"`                     //邮件
	Mobile1       string `json:"mobile" xorm:"mobile1"`                  //移动电话
	Mobile2       string `json:"mobile" xorm:"mobile2"`                  //移动电话
	Mobile3       string `json:"mobile" xorm:"mobile3"`                  //移动电话
	Mobile4       string `json:"mobile" xorm:"mobile4"`                  //移动电话
	Mobile5       string `json:"mobile" xorm:"mobile5"`                  //移动电话
	IDCardFacade  string `json:"id_card_facade" xorm:"id_card_facade"`   //身份证(正)
	IDCardObverse string `json:"id_card_obverse" xorm:"id_card_obverse"` //身份证(反)
}

UserInformation ...

func (*UserInformation) Get

func (obj *UserInformation) Get() (bool, error)

Get ...

type WechatUser

type WechatUser struct {
	Model           `xorm:"extends" json:",inline"`
	AppID           string `xorm:"notnull default('') comment(appid) app_id" json:"appid,omitempty"`                  //appid
	WechatType      string `xorm:"notnull default('') comment(微信or小程序用户标识) wechat_type" json:"wechat_type,omitempty"` //WechatType
	*WechatUserInfo `xorm:"extends" json:",inline"`
}

WechatUser ...

func DecodeUser

func DecodeUser(token string) (*WechatUser, error)

DecodeUser ...

func GetWechatUser

func GetWechatUser(ctx *gin.Context) *WechatUser

GetWechatUser ...

func (*WechatUser) Get

func (obj *WechatUser) Get() (bool, error)

Get ...

type WechatUserInfo

type WechatUserInfo struct {
	City           string   `xorm:"notnull default('') city" json:"city"`
	Country        string   `xorm:"notnull default('') country" json:"country"`
	HeadImgURL     string   `xorm:"notnull default('') head_img_url" json:"headimgurl"`
	Language       string   `xorm:"notnull default('') language" json:"language"`
	Nickname       string   `xorm:"notnull default('') nickname" json:"nickname"`
	OpenID         string   `xorm:"notnull default('') unique open_id" json:"openid"`
	Privilege      []string `xorm:"notnull privilege" json:"privilege"`
	Province       string   `xorm:"notnull default('') province" json:"province"`
	Sex            uint     `xorm:"notnull default(0) sex" json:"sex"`
	Subscribe      int      `xorm:"notnull default(0) subscribe" json:"subscribe"`
	SubscribeTime  uint32   `xorm:"notnull default(0) subscribe_time" json:"subscribe_time"`
	UnionID        string   `xorm:"notnull default('') union_id" json:"unionid"`
	Remark         string   `xorm:"notnull default('') remark" json:"remark"`
	GroupID        int      `xorm:"notnull default(0) group_id" json:"groupid"`
	TagIDList      []int    `xorm:"notnull tag_id_list" json:"tagid_list"`
	SubscribeScene string   `xorm:"notnull default('') subscribe_scene" json:"subscribe_scene"`
	QrScene        int      `xorm:"notnull default(0) qr_scene" json:"qr_scene"`
	QrSceneStr     string   `xorm:"notnull default('') qr_scene_str" json:"qr_scene_str"`
}

WechatUserInfo ...

Jump to

Keyboard shortcuts

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