models

package
v0.0.0-...-179f7ef Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchTask

type BatchTask struct {
	Id          string `json:"id" gorm:"column:id"`
	ApiName     string `json:"api_name" gorm:"column:api_name"`
	Data        string `json:"data" gorm:"column:data"`
	Status      int    `json:"status" gorm:"column:status"`
	CreatedAt   string `json:"created_at" gorm:"column:created_at"`
	CompletedAt string `json:"completed_at" gorm:"column:completed_at"`
}

func (BatchTask) TableName

func (BatchTask) TableName() string

type Notification

type Notification struct {
	Id              string `json:"id" gorm:"column:id"`
	NotificationMsg string `json:"notification_msg" gorm:"column:notification_msg"`
	Object          string `json:"object" gorm:"column:object"`
	Operation       string `json:"operation" gorm:"column:operation"`
	CreatedAt       string `json:"created_at" gorm:"column:created_at"`
}

func (Notification) TableName

func (Notification) TableName() string

type NotificationLog

type NotificationLog struct {
	Id             string `json:"id" gorm:"column:id"`
	NotificationId string `json:"notification_id" gorm:"column:notification_id"`
	Error          string `json:"error" gorm:"column:error"`

	CreatedAt string `json:"created_at" gorm:"column:created_at"`
	// contains filtered or unexported fields
}

func (NotificationLog) TableName

func (NotificationLog) TableName() string

type ParamConf

type ParamConf struct {
	Type         string
	Required     bool
	EmptyAllowed bool
}

type Plan

type Plan struct {
	Id        string `json:"id" gorm:"column:id"`
	Title     string `json:"title" gorm:"column:title"`
	Status    int    `json:"status" gorm:"column:status"`
	Validity  int    `json:"validity" gorm:"column:validity"`
	Cost      int    `json:"cost" gorm:"column:cost"`
	CreatedAt string `json:"created_at" gorm:"column:created_at"`
	UpdatedAt string `json:"updated_at" gorm:"column:updated_at"`
}

func (Plan) TableName

func (Plan) TableName() string

type PlanMessage

type PlanMessage struct {
	Id        string `json:"id" gorm:"column:id"`
	PlanId    string `json:"plan_id" gorm:"plan_id"`
	Message   string `json:"message" gorm:"column:message"`
	Action    string `json:"action" gorm:"column:action"`
	CreatedAt string `json:"created_at" gorm:"column:created_at"`
	UpdatedAt string `json:"updated_at" gorm:"column:updated_at"`
}

func (PlanMessage) TableName

func (PlanMessage) TableName() string

type StatUserRegPerMonth

type StatUserRegPerMonth struct {
	Year  string `json:"year" gorm:"column:year"`
	Month string `json:"month" gorm:"column:month"`
	Count string `json:"count" gorm:"column:count"`
}

type TestResponse

type TestResponse struct {
	Data   string
	Result string
}

type User

type User struct {
	Id        string `json:"id" gorm:"column:id"`
	Email     string `json:"email" gorm:"column:email"`
	FirstName string `json:"first_name" gorm:"column:first_name"`
	LastName  string `json:"last_name" gorm:"column:last_name"`
	Password  string `json:"password" gorm:"column:password"`
	Verified  string `json:"verified" gorm:"column:verified"`
	IsAdmin   string `json:"is_admin" gorm:"column:is_admin"`
	CreatedAt string `json:"created_at" gorm:"column:created_at"`
	UpdatedAt string `json:"updated_at" gorm:"column:updated_at"`
}

func (User) TableName

func (User) TableName() string

type UserReduced

type UserReduced struct {
	Id        string `json:"id" gorm:"column:id"`
	Email     string `json:"email" gorm:"column:email"`
	FirstName string `json:"first_name" gorm:"column:first_name"`
	LastName  string `json:"last_name" gorm:"column:last_name"`
	IsAdmin   string `json:"is_admin" gorm:"column:is_admin"`
	Verified  string `json:"verified" gorm:"column:verified"`
	CreatedAt string `json:"created_at" gorm:"column:created_at"`
	UpdatedAt string `json:"updated_at" gorm:"column:updated_at"`
}

type UsersLogin

type UsersLogin struct {
	UserId    string `json:"user_id" gorm:"column:user_id"`
	Token     string `json:"token" gorm:"token"`
	CreatedAt string `json:"created_at" gorm:"column:created_at"`
}

func (UsersLogin) TableName

func (UsersLogin) TableName() string

Jump to

Keyboard shortcuts

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