models

package
v0.0.0-...-7921cfe Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type G4Data

type G4Data struct {
	ErrorCode int    `json:"error_code"`
	Message   string `json:"message"`
	DataU     []User `json:"datau,omitempty"`
	DataT     []Text `json:"datat,omitempty"`
}

type Text

type Text struct {
	gorm.Model
	TextId   int    `json:"text_id"`
	TextData string `json:"text"`
}

type User

type User struct {
	gorm.Model
	ID       int    `gorm:"primary_key" json:"id"`
	UserName string `json:"user_name"`

	AvatarUrl  string `json:"avatar_url"`
	ActiveDays int    `json:"active_days"`
	TextCount  int    `json:"text_count"`
	TextId     int    `gorm:"unique" json:"text_id"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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