team

package
v1.1.1-beta Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITeamMemberStore

type ITeamMemberStore member.IMemberStore

type ITeamStore

type ITeamStore interface {
	store.ISearchStore[Team]
}

type Member

type Member struct {
	Id         int64     `gorm:"type:BIGINT(20);size:20;not null;auto_increment;primary_key;column:id;comment:主键ID;"`
	Tid        string    `gorm:"size:36;not null;column:tid;uniqueIndex:tid;comment:团队id;uniqueIndex:tid_uid;"`
	Uid        string    `gorm:"size:36;not null;column:uid;uniqueIndex:uid;comment:用户id;uniqueIndex:tid_uid;"`
	CreateTime time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:create_at;comment:创建时间"`
}

func (*Member) IdValue

func (m *Member) IdValue() int64

func (*Member) TableName

func (m *Member) TableName() string

type Team

type Team struct {
	Id          int64     `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"`
	UUID        string    `gorm:"type:varchar(36);not null;column:uuid;uniqueIndex:uuid;comment:UUID;"`
	Name        string    `gorm:"type:varchar(100);not null;column:name;comment:name"`
	Description string    `gorm:"size:255;not null;column:description;comment:description"`
	Creator     string    `gorm:"size:36;not null;column:creator;comment:创建人id" aovalue:"creator"` // 创建人id
	Updater     string    `gorm:"size:36;not null;column:updater;comment:修改人id" aovalue:"updater"` // 修改人id
	CreateAt    time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:create_at;comment:创建时间"`
	UpdateAt    time.Time `` /* 139-byte string literal not displayed */
	IsDelete    bool      `gorm:"type:tinyint(1);not null;column:is_delete;comment:是否删除"`
}

func (*Team) IdValue

func (t *Team) IdValue() int64

func (*Team) TableName

func (t *Team) TableName() string

Jump to

Keyboard shortcuts

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