mchtmod

package
v0.0.0-...-0218ea2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ENABLE 商户为启用状态
	ENABLE = "00"

	// DISABLE 商户为停用状态
	DISABLE = "99"
)

Variables

View Source
var (

	// MerchantCreateVerify 创建商户参数效验
	MerchantCreateVerify = validator.Rules{
		"MerchantNo":   {validator.NotEmpty()},
		"MerchantName": {validator.NotEmpty()},
	}

	// MerchantUpdateVerify 更新商户参数效验
	MerchantUpdateVerify = validator.Rules{
		"ID": {validator.NotEmpty()},
	}
)

Functions

This section is empty.

Types

type Merchant

type Merchant struct {

	/** 主键id */
	ID string `json:"id"                         gorm:"column:id;primary_key;type:varchar(36)"`

	/** 创建时间 */
	CreateTime string `json:"createTime"                 gorm:"column:create_time;index;type:varchar(20)"`

	/** 修改时间 */
	UpdateTime string `json:"updateTime"                 gorm:"column:update_time;type:varchar(20)"`

	/** 商户编号 */
	MerchantNo string `json:"merchantNo"                 gorm:"column:merchant_no;comment:商户编号;type:varchar(32);"`

	/** 商户名称 */
	MerchantName string `json:"merchantName"               gorm:"column:merchant_name;comment:商户名称;type:varchar(100);"`

	/** 地址 */
	Address string `json:"address"                    gorm:"column:address;comment:地址;type:varchar(255);"`

	/** 商户等级 */
	Level uint `json:"level"                      gorm:"column:level;comment:商户等级;default:1"`

	/** 区域代码 */
	RegionCode string `json:"regionCode"                 gorm:"column:region_code;comment:区域代码;type:varchar(32);"`

	/** 区域名称 */
	RegionName string `json:"regionName"                 gorm:"column:region_name;comment:区域名称;type:varchar(32);"`

	/** 状态(00:正常,99:停用) */
	Status string `json:"status"                     gorm:"column:status;comment:状态(00:正常,99:停用);type:varchar(4);default:00"`

	/** 父商户ID */
	ParentId string `json:"parentId"                   gorm:"column:parent_id;comment:父商户ID;type:varchar(32)"`

	/** 子商户列表 */
	ChildMerchants []Merchant `json:"childMerchants"             gorm:"-"`

	/** 父商户名称 */
	ParentName string `json:"parentName"                 gorm:"-"`

	/** 商户密钥 */
	SelfPriKey string `json:"selfPriKey"                 gorm:"column:self_pri_key;comment:商户密钥;type:text"`
}

Merchant 商户结构体

func (Merchant) TableName

func (Merchant) TableName() string

TableName Merchant 表名

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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