dataobject

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Code generated by db2go. DO NOT EDIT.

Code generated by db2go. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var TableNameClasses = "classes" //班级表
View Source
var TableNameUsers = "users" //用户表

Functions

This section is empty.

Types

type ClassesDO

type ClassesDO struct {
	Id        int32  `json:"id" db:"id" `                                 //
	ClassNo   string `json:"class_no" db:"class_no" `                     //
	UserId    int32  `json:"user_id" db:"user_id" `                       //
	CreatedAt string `json:"created_at" db:"created_at" sqlca:"readonly"` //
	UpdatedAt string `json:"updated_at" db:"updated_at" sqlca:"readonly"` //
}

func (*ClassesDO) GetClassNo

func (do *ClassesDO) GetClassNo() string

func (*ClassesDO) GetCreatedAt

func (do *ClassesDO) GetCreatedAt() string

func (*ClassesDO) GetId

func (do *ClassesDO) GetId() int32

func (*ClassesDO) GetUpdatedAt

func (do *ClassesDO) GetUpdatedAt() string

func (*ClassesDO) GetUserId

func (do *ClassesDO) GetUserId() int32

func (*ClassesDO) SetClassNo

func (do *ClassesDO) SetClassNo(v string)

func (*ClassesDO) SetId

func (do *ClassesDO) SetId(v int32)

func (*ClassesDO) SetUserId

func (do *ClassesDO) SetUserId(v int32)

type UsersDO

type UsersDO struct {
	Id        int32   `json:"id" db:"id" `                                 //
	Name      string  `json:"name" db:"name" `                             //
	Phone     string  `json:"phone" db:"phone" `                           //
	Sex       int8    `json:"sex" db:"sex" `                               //
	Email     string  `json:"email" db:"email" `                           //
	Disable   int8    `json:"disable" db:"disable" `                       //
	CreatedAt string  `json:"created_at" db:"created_at" sqlca:"readonly"` //
	UpdatedAt string  `json:"updated_at" db:"updated_at" sqlca:"readonly"` //
	Balance   float64 `json:"balance" db:"balance" `                       //
}

func (*UsersDO) GetBalance

func (do *UsersDO) GetBalance() float64

func (*UsersDO) GetCreatedAt

func (do *UsersDO) GetCreatedAt() string

func (*UsersDO) GetDisable

func (do *UsersDO) GetDisable() int8

func (*UsersDO) GetEmail

func (do *UsersDO) GetEmail() string

func (*UsersDO) GetId

func (do *UsersDO) GetId() int32

func (*UsersDO) GetName

func (do *UsersDO) GetName() string

func (*UsersDO) GetPhone

func (do *UsersDO) GetPhone() string

func (*UsersDO) GetSex

func (do *UsersDO) GetSex() int8

func (*UsersDO) GetUpdatedAt

func (do *UsersDO) GetUpdatedAt() string

func (*UsersDO) SetBalance

func (do *UsersDO) SetBalance(v float64)

func (*UsersDO) SetDisable

func (do *UsersDO) SetDisable(v int8)

func (*UsersDO) SetEmail

func (do *UsersDO) SetEmail(v string)

func (*UsersDO) SetId

func (do *UsersDO) SetId(v int32)

func (*UsersDO) SetName

func (do *UsersDO) SetName(v string)

func (*UsersDO) SetPhone

func (do *UsersDO) SetPhone(v string)

func (*UsersDO) SetSex

func (do *UsersDO) SetSex(v int8)

Jump to

Keyboard shortcuts

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