新增门店 ip配置
This commit is contained in:
@ -2,6 +2,7 @@ package model
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
type Store struct {
|
||||
@ -17,6 +18,16 @@ type Store struct {
|
||||
NetbarAccount string `json:"netbarAccount" orm:"netbar_account" dc:"网吧网关账号"`
|
||||
}
|
||||
|
||||
type StoreIps struct {
|
||||
Id int64 `json:"id" orm:"id" description:"主键ID"` // 主键ID
|
||||
StoreId int64 `json:"storeId" orm:"store_id" description:"关联门店ID"` // 关联门店ID
|
||||
IpAddress string `json:"ipAddress" orm:"ip_address" description:"IP地址(支持IPv4或IPv6)"` // IP地址(支持IPv4或IPv6)
|
||||
Remark string `json:"remark" orm:"remark" description:"备注"` // 备注
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
}
|
||||
|
||||
type StoreCreateIn struct {
|
||||
OperatorId int64
|
||||
OperatorRole string
|
||||
@ -59,3 +70,43 @@ type StoreDeleteIn struct {
|
||||
OperatorId int
|
||||
OperatorRole string
|
||||
}
|
||||
|
||||
type IPListIn struct {
|
||||
StoreId int64 `json:"storeId" dc:"IP列表ID"`
|
||||
Page int `json:"page"`
|
||||
Size int `json:"size"`
|
||||
}
|
||||
|
||||
type IPListout struct {
|
||||
List interface{} `json:"list"`
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
|
||||
type IPUpdateIn struct {
|
||||
Id int64 `json:"id" dc:"IP列表ID"`
|
||||
Ip string `json:"ip" dc:"IP地址"`
|
||||
StoreId int `json:"storeId" dc:"门店ID"`
|
||||
Remark string `json:"remark" dc:"备注"`
|
||||
}
|
||||
|
||||
type IPUpdateOut struct {
|
||||
Success bool `json:"success"`
|
||||
}
|
||||
|
||||
type IPDeleteIn struct {
|
||||
Id int64
|
||||
}
|
||||
|
||||
type IPDeleteOut struct {
|
||||
Success bool `json:"success"`
|
||||
}
|
||||
|
||||
type IPCreateIn struct {
|
||||
Ip string `json:"ip" dc:"IP地址"`
|
||||
StoreId int `json:"storeId" dc:"门店ID"`
|
||||
Remark string `json:"remark" dc:"备注"`
|
||||
}
|
||||
|
||||
type IPCreateOut struct {
|
||||
Success bool `json:"success"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user