Create & Init Project...
This commit is contained in:
28
app/admin/main/passport/model/BUILD
Normal file
28
app/admin/main/passport/model/BUILD
Normal file
@ -0,0 +1,28 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load(
|
||||
"@io_bazel_rules_go//go:def.bzl",
|
||||
"go_library",
|
||||
)
|
||||
|
||||
go_library(
|
||||
name = "go_default_library",
|
||||
srcs = ["model.go"],
|
||||
importpath = "go-common/app/admin/main/passport/model",
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "package-srcs",
|
||||
srcs = glob(["**"]),
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "all-srcs",
|
||||
srcs = [":package-srcs"],
|
||||
tags = ["automanaged"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
54
app/admin/main/passport/model/model.go
Normal file
54
app/admin/main/passport/model/model.go
Normal file
@ -0,0 +1,54 @@
|
||||
package model
|
||||
|
||||
// DecryptBindLogParam DecryptBindLogParam
|
||||
type DecryptBindLogParam struct {
|
||||
EncryptText []string `form:"text,split" validate:"min=1"` // 密文字段,','分割
|
||||
}
|
||||
|
||||
// UserBindLogReq UserBindLogReq
|
||||
type UserBindLogReq struct {
|
||||
// Action value : telBindLog or emailBindLog
|
||||
Action string `form:"action"`
|
||||
Mid int64 `form:"mid"`
|
||||
//Query search tel or email
|
||||
Query string `form:"query"`
|
||||
Page int `form:"page"`
|
||||
Size int `form:"size"`
|
||||
From int64 `form:"from"`
|
||||
To int64 `form:"to"`
|
||||
}
|
||||
|
||||
// EsRes EsRes
|
||||
type EsRes struct {
|
||||
Page Page `json:"page"`
|
||||
Result []*UserActLogEs `json:"result"`
|
||||
}
|
||||
|
||||
// Page Page
|
||||
type Page struct {
|
||||
Num int `json:"num"`
|
||||
Size int `json:"size"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
|
||||
// UserActLogEs UserActLogEs
|
||||
type UserActLogEs struct {
|
||||
Mid int64 `json:"mid"`
|
||||
Str0 string `json:"str_0"`
|
||||
ExtraData string `json:"extra_data"`
|
||||
CTime string `json:"ctime"`
|
||||
}
|
||||
|
||||
// UserBindLogRes UserBindLogRes
|
||||
type UserBindLogRes struct {
|
||||
Page Page `json:"page"`
|
||||
Result []*UserBindLog `json:"result"`
|
||||
}
|
||||
|
||||
// UserBindLog UserBindLog
|
||||
type UserBindLog struct {
|
||||
Mid int64 `json:"mid"`
|
||||
Phone string `json:"phone"`
|
||||
EMail string `json:"email"`
|
||||
Time string `json:"time"`
|
||||
}
|
Reference in New Issue
Block a user