example

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

README

示例模块 model层

  • 代码生成器
  • gorm 一对一关系 (无web页面)
  • gorm 一对多关系 (无web页面)
  • gorm 多对多关系 (无web页面)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	global.Model
	UserID          uint        `json:"sysUserId" gorm:"comment:管理ID"`
	Name            string      `json:"customerName" gorm:"comment:客户名"`
	Phone           string      `json:"customerPhoneData" gorm:"comment:客户手机号码"`
	UserAuthorityID string      `json:"sysUserAuthorityID" gorm:"comment:管理角色ID"`
	User            system.User `json:"sysUser" gorm:"comment:管理详情"`
}

func (*Customer) TableName

func (c *Customer) TableName() string

type File

type File struct {
	global.Model
	Key  string `json:"key" gorm:"comment:编号"`
	Url  string `json:"url" gorm:"comment:文件地址"`
	Tag  string `json:"tag" gorm:"comment:文件标签"`
	Name string `json:"name" gorm:"comment:文件名"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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