representcat

package
v0.0.0-...-a7b0e50 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppID      = "wx4285b8f2757f9774"
	RedirctURL = "https://gowc.iuu.pub/representcat/call"
)

AppID ... RedirctURL ...

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ComponentAppID          string
	ComponentAppSecret      string
	ComponentToken          string
	ComponentEncodingAESKey string
}

Config struct

type RcConfig

type RcConfig struct {
	UUID      string    `xorm:"varchar(36) pk notnull unique 'uuid'"` // uuid
	Name      string    `xorm:"varchar(512) 'name'"`                  // 活动名称
	StartTime time.Time `xorm:"start_time"`                           // 开始时间
	EndTime   time.Time `xorm:"end_time"`                             // 结束时间
	CreatedAt int64     `xorm:"created"`
	UpdatedAt time.Time `xorm:"updated"`
	DeletedAt time.Time `xorm:"deleted"`
	Version   int64     `xorm:"version"`
}

RcConfig 活动配置

type RcUser

type RcUser struct {
	UUID       string    `xorm:"varchar(36) pk notnull unique 'uuid'"` // uuid
	ConfigUUID string    `xorm:"varchar(36) 'config_uuid'"`            // 所属活动的uuid
	VoteUUID   string    `xorm:"varchar(36) 'vote_uuid'"`              // 所属活动的uuid
	OpenID     string    `xorm:"varchar(64) notnull unique 'openid'"`  // openid -wx
	NickName   string    `xorm:"varchar(64) 'nickname'"`               // 昵称 -wx
	Sex        int32     `xorm:"varchar(16) 'sex'"`                    // 性别 -wx
	Avatar     string    `xorm:"varchar(512) 'avatar'"`                // 头像 -wxurl
	CreatedAt  int64     `xorm:"created"`
	UpdatedAt  time.Time `xorm:"updated"`
	DeletedAt  time.Time `xorm:"deleted"`
	Version    int64     `xorm:"version"`
}

RcUser 用户信息

type RcVote

type RcVote struct {
	UUID       string    `xorm:"varchar(36) pk notnull unique 'uuid'"` // uuid
	ConfigUUID string    `xorm:"varchar(36) 'config_uuid'"`            // 所属活动的uuid
	Name       string    `xorm:"varchar(64) 'name'"`                   // 选票名称
	Count      int64     `xorm:"varchar(32) 'count'"`                  // 投票计数
	CreatedAt  int64     `xorm:"created"`
	UpdatedAt  time.Time `xorm:"updated"`
	DeletedAt  time.Time `xorm:"deleted"`
	Version    int64     `xorm:"version"`
}

RcVote 用户数据

type RepresentCat

type RepresentCat struct {
}

RepresentCat ...

func (*RepresentCat) RepresentCatConfig

func (rc *RepresentCat) RepresentCatConfig(c *gin.Context)

RepresentCatConfig 配置

func (*RepresentCat) RepresentCatGetData

func (rc *RepresentCat) RepresentCatGetData(c *gin.Context)

RepresentCatGetData ...

func (*RepresentCat) RepresentCatStart

func (rc *RepresentCat) RepresentCatStart(c *gin.Context)

RepresentCatStart ...

func (*RepresentCat) RepresentCatURL

func (rc *RepresentCat) RepresentCatURL(c *gin.Context)

RepresentCatURL 登陆页面

func (*RepresentCat) RepresentCatVote

func (rc *RepresentCat) RepresentCatVote(c *gin.Context)

RepresentCatVote 投票

func (*RepresentCat) WeChatLoginCall

func (rc *RepresentCat) WeChatLoginCall(c *gin.Context)

WeChatLoginCall ... coauth call

Jump to

Keyboard shortcuts

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