voice

package
v0.0.0-...-a84b906 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

自动生成模板Customer2

自动生成模板File

自动生成模板File2

自动生成模板Session

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer2

type Customer2 struct {
	global.GVA_MODEL
	Email      *string `json:"email" form:"email" gorm:"column:email;"`                                         //邮箱
	Username   *string `json:"username" form:"username" gorm:"uniqueIndex;column:username;" binding:"required"` //用户名
	Status     *string `json:"status" form:"status" gorm:"default:normal;column:status;" binding:"required"`    //状态
	Nickname   *string `json:"nickname" form:"nickname" gorm:"column:nickname;"`                                //昵称
	Avatar     *string `json:"avatar" form:"avatar" gorm:"column:avatar;"`                                      //头像
	AuthGoogle *string `json:"auth_google" form:"auth_google" gorm:"column:auth_google;"`                       //Google认证ID
}

用户 结构体 Customer2

func (*Customer2) GetAuthorityId

func (c *Customer2) GetAuthorityId() uint

func (*Customer2) GetNickname

func (c *Customer2) GetNickname() string

func (*Customer2) GetUUID

func (c *Customer2) GetUUID() uuid.UUID

func (*Customer2) GetUserId

func (c *Customer2) GetUserId() uint

func (*Customer2) GetUserInfo

func (c *Customer2) GetUserInfo() any

func (*Customer2) GetUsername

func (c *Customer2) GetUsername() string

Login interface implementation

func (Customer2) TableName

func (Customer2) TableName() string

TableName 用户 Customer2自定义表名 customer

type File

type File struct {
	Id        *int       `json:"id" form:"id" gorm:"primarykey;column:id;size:20;"`                      //id字段
	CreatedAt *time.Time `json:"createdAt" form:"createdAt" gorm:"column:created_at;"`                   //createdAt字段
	UpdatedAt *time.Time `json:"updatedAt" form:"updatedAt" gorm:"column:updated_at;"`                   //updatedAt字段
	DeletedAt *time.Time `json:"deletedAt" form:"deletedAt" gorm:"column:deleted_at;"`                   //deletedAt字段
	Name      *string    `json:"name" form:"name" gorm:"column:name;size:191;"`                          //name字段
	Duration  *int       `json:"duration" form:"duration" gorm:"comment:时长,毫秒;column:duration;size:19;"` //时长,毫秒
	UserId    *int       `json:"userId" form:"userId" gorm:"column:user_id;size:19;"`                    //userId字段
	Status    *string    `json:"status" form:"status" gorm:"column:status;size:191;"`                    //status字段
	Path      *string    `json:"path" form:"path" gorm:"comment:文件存储路径;column:path;size:191;"`           //文件存储路径
}

文件表 结构体 File

func (File) TableName

func (File) TableName() string

TableName 文件表 File自定义表名 file

type File2

type File2 struct {
	Id       *int    `json:"id" form:"id" gorm:"primarykey;column:id;size:20;"`                      //id字段
	Name     *string `json:"name" form:"name" gorm:"column:name;size:191;"`                          //name字段
	Duration *int    `json:"duration" form:"duration" gorm:"comment:时长,毫秒;column:duration;size:19;"` //时长,毫秒
	UserId   *int    `json:"userId" form:"userId" gorm:"column:user_id;size:19;"`                    //userId字段
	Status   *string `json:"status" form:"status" gorm:"column:status;size:191;"`                    //status字段
	Path     *string `json:"path" form:"path" gorm:"comment:文件存储路径;column:path;size:191;"`           //文件存储路径
}

文件表 结构体 File2

func (File2) TableName

func (File2) TableName() string

TableName 文件表 File2自定义表名 file

type LoginResponse

type LoginResponse struct {
	User      Customer2 `json:"user"`
	Token     string    `json:"token"`
	ExpiresAt int64     `json:"expiresAt"`
}

LoginResponse 登录响应结构体

type Session

type Session struct {
	global.GVA_MODEL
	UserId   *int       `json:"userId" form:"userId" gorm:"primarykey;column:user_id;" binding:"required"`       //用户ID
	Lang     *string    `json:"lang" form:"lang" gorm:"default:0;comment:时长,毫秒;column:lang;" binding:"required"` //语言
	KeepTime *time.Time `json:"keepTime" form:"keepTime" gorm:"index;comment:文件存储路径;column:keep_time;"`          //最近操作时间
}

用户会话 结构体 Session

func (Session) TableName

func (Session) TableName() string

TableName 用户会话 Session自定义表名 session

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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