models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct {
	ID        string    `bson:"_id" json:"id"`
	TenantID  string    `bson:"tenantID" json:"tenantID"`
	Email     string    `bson:"email" json:"email"`
	Username  string    `bson:"username" json:"username"`
	Password  string    `bson:"password" json:"password"`
	CreatedAt time.Time `json:"createdAt" bson:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"`
}

func GetMyGithubConfig

func GetMyGithubConfig(c context.Context, tenantID, email string) (*Github, error)

GetMyGithubConfig 获取当前用户的github配置

func (*Github) C

func (e *Github) C() *mongo.Collection

func (*Github) Make

func (e *Github) Make()

func (Github) TableName

func (Github) TableName() string

Jump to

Keyboard shortcuts

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