mo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.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 AedUserLogin

type AedUserLogin struct {
	// CreateTime 创建时间
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	// CreateUser 数据创建者
	CreateUser string `gorm:"column:create_user" json:"create_user"`
	// Email 邮箱
	Email string `gorm:"column:email" json:"email"`
	// ID column comments
	ID int `gorm:"primary_key;column:id" json:"id"`
	// LastLogintime 最后登录时间
	LastLogintime time.Time `gorm:"column:last_logintime" json:"last_logintime"`
	// LoginName 登录用户名
	LoginName string `gorm:"column:login_name" json:"login_name"`
	// LoginPassword 登录密码
	LoginPassword string `gorm:"column:login_password" json:"login_password"`
	// LoginType 登录方式
	LoginType string `gorm:"column:login_type" json:"login_type"`
	// Mobile 手机号
	Mobile string `gorm:"column:mobile" json:"mobile"`
	// Openid openid
	Openid string `gorm:"column:openid" json:"openid"`
	// QqUnionid qq登录的unionid
	QqUnionid string `gorm:"column:qq_unionid" json:"qq_unionid"`
	// Salt 用于加密的salt
	Salt string `gorm:"column:salt" json:"salt"`
	// SubID 返回给应用的sub_id
	SubID string `gorm:"column:sub_id" json:"sub_id"`
	// Summary 备注
	Summary string `gorm:"column:summary" json:"summary"`
	// UpdateTime 更新时间
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	// UpdateUser 数据更新者
	UpdateUser string `gorm:"column:update_user" json:"update_user"`
	// WxUnionid 微信登录的unionid
	WxUnionid string `gorm:"column:wx_unionid" json:"wx_unionid"`
	// 此用户是否实名认证过
	IsPersonVerified int `gorm:"column:is_person_verified" json:"is_person_verified"`
	// 是否企业认证过
	IsCompanyVerified int `gorm:"column:is_company_verified" json:"is_company_verified"`
}

AedUserLogin aed用户登录表

func (*AedUserLogin) TableName

func (a *AedUserLogin) TableName() string

TableName sets the insert table name for this struct type

type Application

type Application struct {
	// Appid appid
	Appid string `gorm:"column:appid" json:"appid"`
	// ApplicationFlag 应用标识,唯一
	ApplicationFlag string `gorm:"column:application_flag" json:"application_flag"`
	// ApplicationName 应用名称
	ApplicationName string `gorm:"column:application_name" json:"application_name"`
	// CreateTime 创建时间
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	// CreateUser 数据创建者
	CreateUser string `gorm:"column:create_user" json:"create_user"`
	// ID column comments
	ID int `gorm:"primary_key;column:id" json:"id"`
	// IsCompanyVerified 0不启用企业认证  1启用企业认证,企业认证指和对方企业对接信息
	IsCompanyVerified int `gorm:"column:is_company_verified" json:"is_company_verified"`
	// IsPersonVerified 0不启用实名认证 1启用实名认证
	IsPersonVerified int `gorm:"column:is_person_verified" json:"is_person_verified"`
	// LoginConfig 登录配置,使用数组键值对来匹配登录方式
	LoginConfig interface{} `gorm:"column:login_config" json:"login_config"`
	// Summary 备注
	Summary string `gorm:"column:summary" json:"summary"`
	// Token 应用令牌
	Token string `gorm:"column:token" json:"token"`
	// UpdateTime 更新时间
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	// UpdateUser 数据修改者
	UpdateUser string `gorm:"column:update_user" json:"update_user"`
}

Application 应用信息表

func (*Application) TableName

func (a *Application) TableName() string

TableName sets the insert table name for this struct type

type Company

type Company struct {
	// CompanyFlag 公司标识,唯一值
	CompanyFlag string `gorm:"column:company_flag" json:"company_flag"`
	// CompanyName 公司名称
	CompanyName string `gorm:"column:company_name" json:"company_name"`
	// CreateTime 添加时间
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	// CreateUser 数据添加者
	CreateUser string `gorm:"column:create_user" json:"create_user"`
	// ID column comments
	ID int `gorm:"primary_key;column:id" json:"id"`
	// Summary 备注
	Summary string `gorm:"column:summary" json:"summary"`
	// UpdateTime 修改时间
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	// UpdateUser 数据修改者
	UpdateUser string `gorm:"column:update_user" json:"update_user"`
}

Company 公司表

func (*Company) TableName

func (c *Company) TableName() string

TableName sets the insert table name for this struct type

type Department

type Department struct {
	// CompanyFlag 公司标识
	CompanyFlag string `gorm:"column:company_flag" json:"company_flag"`
	// CreateTime 创建时间
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	// CreateUser 创建数据者
	CreateUser string `gorm:"column:create_user" json:"create_user"`
	// DepartmentID 组织架构id
	DepartmentID string `gorm:"column:department_id" json:"department_id"`
	// DepartmentName 组织架构名称
	DepartmentName string `gorm:"column:department_name" json:"department_name"`
	// ID column comments
	ID int `gorm:"primary_key;column:id" json:"id"`
	// Summary 备注
	Summary string `gorm:"column:summary" json:"summary"`
	// UpdateTime 更新时间
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	// UpdateUser 更新数据者
	UpdateUser string `gorm:"column:update_user" json:"update_user"`
}

Department 部门表

func (*Department) TableName

func (d *Department) TableName() string

TableName sets the insert table name for this struct type

type GongyiUserLogin

type GongyiUserLogin struct {
	// CreateTime 创建时间
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	// CreateUser 数据创建者
	CreateUser string `gorm:"column:create_user" json:"create_user"`
	// Email 邮箱
	Email string `gorm:"column:email" json:"email"`
	// ID column comments
	ID int `gorm:"primary_key;column:id" json:"id"`
	// LastLogintime 最后登录时间
	LastLogintime time.Time `gorm:"column:last_logintime" json:"last_logintime"`
	// LoginName 登录用户名
	LoginName string `gorm:"column:login_name" json:"login_name"`
	// LoginPassword 登录密码
	LoginPassword string `gorm:"column:login_password" json:"login_password"`
	// LoginType 登录方式
	LoginType string `gorm:"column:login_type" json:"login_type"`
	// Mobile 手机号
	Mobile string `gorm:"column:mobile" json:"mobile"`
	// Openid openid
	Openid string `gorm:"column:openid" json:"openid"`
	// QqUnionid qq登录的unionid
	QqUnionid string `gorm:"column:qq_unionid" json:"qq_unionid"`
	// Salt 用于加密的salt
	Salt string `gorm:"column:salt" json:"salt"`
	// SubID 返回给应用的sub_id
	SubID string `gorm:"column:sub_id" json:"sub_id"`
	// Summary 备注
	Summary string `gorm:"column:summary" json:"summary"`
	// UpdateTime 更新时间
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	// UpdateUser 数据更新者
	UpdateUser string `gorm:"column:update_user" json:"update_user"`
	// WxUnionid 微信登录的unionid
	WxUnionid string `gorm:"column:wx_unionid" json:"wx_unionid"`
	// 此用户是否实名认证过
	IsPersonVerified int `gorm:"column:is_person_verified" json:"is_person_verified"`
	// 是否企业认证过
	IsCompanyVerified int `gorm:"column:is_company_verified" json:"is_company_verified"`
}

GongyiUserLogin 公益小程序用户登录表

func (*GongyiUserLogin) TableName

func (g *GongyiUserLogin) TableName() string

TableName sets the insert table name for this struct type

type Person

type Person struct {
	// CreateTime 添加时间
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	// CreateUser 数据添加人
	CreateUser string `gorm:"column:create_user" json:"create_user"`
	// ID column comments
	ID int `gorm:"primary_key;column:id" json:"id"`
	// Idcard 身份证号,可以考虑加密
	Idcard string `gorm:"column:idcard" json:"idcard"`
	// PersonID 生成的user_id,唯一
	PersonID string `gorm:"column:person_id" json:"person_id"`
	// Sex 0女  1男  2保密
	Sex int `gorm:"column:sex" json:"sex"`
	// Mobile 用户实名时用的手机号
	Mobile string `gorm:"column:mobile" json:"mobile"`
	// Summary 备注
	Summary string `gorm:"column:summary" json:"summary"`
	// Truename 真实姓名
	Truename string `gorm:"column:truename" json:"truename"`
	// UpdateTime 更新时间
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	// UpdateUser 数据修改人
	UpdateUser string `gorm:"column:update_user" json:"update_user"`
}

Person 用户实名表

func (*Person) TableName

func (p *Person) TableName() string

TableName sets the insert table name for this struct type

type Response

type Response struct {
	Code   int         `json:"code"`
	Data   interface{} `json:"data,omitempty"`
	ErrMsg interface{} `json:"errmsg,omitempty"`
}

Response 接口输出类

func NewDefaultResponse

func NewDefaultResponse() *Response

NewDefaultResponse 默认 Response

func NewResponse

func NewResponse(code int, data interface{}, err interface{}) *Response

NewResponse 自定义 Response

type UserBase

type UserBase struct {
	// ApplicationFlag 应用标识
	ApplicationFlag string `gorm:"column:application_flag" json:"application_flag"`
	// CreateTime 创建时间
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	// CreateUser 数据创建者
	CreateUser string `gorm:"column:create_user" json:"create_user"`
	// ID column comments
	ID int `gorm:"primary_key;column:id" json:"id"`
	// PersonID person表中的person_id
	PersonID string `gorm:"column:person_id" json:"person_id"`
	// SubID sub_id
	SubID string `gorm:"column:sub_id" json:"sub_id"`
	// Summary 备注
	Summary string `gorm:"column:summary" json:"summary"`
	// UpdateTime 更新时间
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	// UpdateUser 数据更新者
	UpdateUser string `gorm:"column:update_user" json:"update_user"`
	//  是否有效
	IsValid int `gorm:"is_valid"  json:"is_valid"`
}

UserBase 用户基础表

func (*UserBase) TableName

func (u *UserBase) TableName() string

TableName sets the insert table name for this struct type

type UserCompany

type UserCompany struct {
	// CompanyFlag 公司标识
	CompanyFlag string `gorm:"column:company_flag" json:"company_flag"`
	// CompanyName 公司名称
	CompanyName string `gorm:"column:company_name" json:"company_name"`
	// CreateTime 创建时间
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	// CreateUser 数据创建者
	CreateUser string `gorm:"column:create_user" json:"create_user"`
	// ID column comments
	ID int `gorm:"primary_key;column:id" json:"id"`
	// PersonID person表中的person_id
	PersonID string `gorm:"column:person_id" json:"person_id"`
	// SubID sub_id
	SubID string `gorm:"column:sub_id" json:"sub_id"`
	// Summary 备注
	Summary string `gorm:"column:summary" json:"summary"`
	// UpdateTime 更新时间
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	// UpdateUser 数据更新者
	UpdateUser string `gorm:"column:update_user" json:"update_user"`
}

UserCompany 用户公司表

func (*UserCompany) TableName

func (u *UserCompany) TableName() string

TableName sets the insert table name for this struct type

type UserDepartment

type UserDepartment struct {
	// BgID 组织架构bgid
	BgID int `gorm:"column:bg_id" json:"bg_id"`
	// BgName 组织架构bg名称
	BgName string `gorm:"column:bg_name" json:"bg_name"`
	// CompanyFlag 公司标识
	CompanyFlag string `gorm:"column:company_flag" json:"company_flag"`
	// CompanyName 公司名称
	CompanyName string `gorm:"column:company_name" json:"company_name"`
	// CreateTime 添加时间
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	// CreateUser 数据添加人
	CreateUser string `gorm:"column:create_user" json:"create_user"`
	// DepartmentID 组织架构id(总)
	DepartmentID string `gorm:"column:department_id" json:"department_id"`
	// DepartmentName 组织架构名称(总)
	DepartmentName string `gorm:"column:department_name" json:"department_name"`
	// DeptID 组织架构部门id
	DeptID int `gorm:"column:dept_id" json:"dept_id"`
	// DeptName 组织架构部门名称
	DeptName string `gorm:"column:dept_name" json:"dept_name"`
	// ID column comments
	ID int `gorm:"primary_key;column:id" json:"id"`
	// PersonID 对应自然人的person_id
	PersonID string `gorm:"column:person_id" json:"person_id"`
	// SubID sub_id
	SubID string `gorm:"column:sub_id" json:"sub_id"`
	// Summary 备注
	Summary string `gorm:"column:summary" json:"summary"`
	// UpdateTime 更新时间
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	// UpdateUser 数据更新人
	UpdateUser string `gorm:"column:update_user" json:"update_user"`
}

UserDepartment 用户部门表

func (*UserDepartment) TableName

func (u *UserDepartment) TableName() string

TableName sets the insert table name for this struct type

type UserExt

type UserExt struct {
	// CreateTime 添加时间
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	// CreateUser 数据创建者
	CreateUser string `gorm:"column:create_user" json:"create_user"`
	// ID column comments
	ID int `gorm:"primary_key;column:id" json:"id"`
	// ObjName 用户其它额外信息健名
	ObjName string `gorm:"column:obj_name" json:"obj_name"`
	// ObjValue 用户其它额外信息健值
	ObjValue string `gorm:"column:obj_value" json:"obj_value"`
	// SubID 用于关联其它表的sub_id
	SubID string `gorm:"column:sub_id" json:"sub_id"`
	// Summary 备注
	Summary string `gorm:"column:summary" json:"summary"`
	// UpdateTime 更新时间
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	// UpdateUser 数据更新者
	UpdateUser string `gorm:"column:update_user" json:"update_user"`
}

UserExt 用户扩展表

func (*UserExt) TableName

func (u *UserExt) TableName() string

TableName sets the insert table name for this struct type

type VolunteerUserLogin

type VolunteerUserLogin struct {
	// CreateTime 创建时间
	CreateTime time.Time `gorm:"column:create_time" json:"create_time"`
	// CreateUser 数据创建者
	CreateUser string `gorm:"column:create_user" json:"create_user"`
	// Email 邮箱
	Email string `gorm:"column:email" json:"email"`
	// ID column comments
	ID int `gorm:"primary_key;column:id" json:"id"`
	// LastLogintime 最后登录时间
	LastLogintime time.Time `gorm:"column:last_logintime" json:"last_logintime"`
	// LoginName 登录用户名
	LoginName string `gorm:"column:login_name" json:"login_name"`
	// LoginPassword 登录密码
	LoginPassword string `gorm:"column:login_password" json:"login_password"`
	// LoginType 登录方式
	LoginType string `gorm:"column:login_type" json:"login_type"`
	// Mobile 手机号
	Mobile string `gorm:"column:mobile" json:"mobile"`
	// Openid openid
	Openid string `gorm:"column:openid" json:"openid"`
	// QqUnionid qq登录的unionid
	QqUnionid string `gorm:"column:qq_unionid" json:"qq_unionid"`
	// Salt 用于加密的salt
	Salt string `gorm:"column:salt" json:"salt"`
	// SubID 返回给应用的sub_id
	SubID string `gorm:"column:sub_id" json:"sub_id"`
	// Summary 备注
	Summary string `gorm:"column:summary" json:"summary"`
	// UpdateTime 更新时间
	UpdateTime time.Time `gorm:"column:update_time" json:"update_time"`
	// UpdateUser 数据更新者
	UpdateUser string `gorm:"column:update_user" json:"update_user"`
	// WxUnionid 微信登录的unionid
	WxUnionid string `gorm:"column:wx_unionid" json:"wx_unionid"`
	// 此用户是否实名认证过
	IsPersonVerified int `gorm:"column:is_person_verified" json:"is_person_verified"`
	// 是否企业认证过
	IsCompanyVerified int `gorm:"column:is_company_verified" json:"is_company_verified"`
}

VolunteerUserLogin 志愿者小程序用户登录表

func (*VolunteerUserLogin) TableName

func (v *VolunteerUserLogin) TableName() string

TableName sets the insert table name for this struct type

Jump to

Keyboard shortcuts

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