mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-12-12 19:26:07 +08:00
更新2.1.2版本,优化部门、角色权限,增加上下级关系;增加登录、系统、短信日志;优化省市区编码
This commit is contained in:
@@ -18,6 +18,8 @@ type AdminDept struct {
|
||||
Leader string `json:"leader" description:"负责人"`
|
||||
Phone string `json:"phone" description:"联系电话"`
|
||||
Email string `json:"email" description:"邮箱"`
|
||||
Level int `json:"level" description:"关系树等级"`
|
||||
Tree string `json:"tree" description:"关系树"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Status int `json:"status" description:"部门状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
// SysLog is the golang structure for table sys_log.
|
||||
type SysLog struct {
|
||||
Id int64 `json:"id" description:"日志ID"`
|
||||
ReqId string `json:"reqId" description:"对外ID"`
|
||||
AppId string `json:"appId" description:"应用ID"`
|
||||
MerchantId uint64 `json:"merchantId" description:"商户ID"`
|
||||
MemberId int64 `json:"memberId" description:"用户ID"`
|
||||
@@ -27,10 +28,9 @@ type SysLog struct {
|
||||
ErrorCode int `json:"errorCode" description:"报错code"`
|
||||
ErrorMsg string `json:"errorMsg" description:"报错信息"`
|
||||
ErrorData *gjson.Json `json:"errorData" description:"报错日志"`
|
||||
ReqId string `json:"reqId" description:"对外ID"`
|
||||
Timestamp int64 `json:"timestamp" description:"响应时间"`
|
||||
UserAgent string `json:"userAgent" description:"UA信息"`
|
||||
TakeUpTime int64 `json:"takeUpTime" description:"请求耗时"`
|
||||
Timestamp int64 `json:"timestamp" description:"响应时间"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
|
||||
24
server/internal/model/entity/sys_login_log.go
Normal file
24
server/internal/model/entity/sys_login_log.go
Normal file
@@ -0,0 +1,24 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysLoginLog is the golang structure for table sys_login_log.
|
||||
type SysLoginLog struct {
|
||||
Id int64 `json:"id" description:"日志ID"`
|
||||
ReqId string `json:"reqId" description:"请求ID"`
|
||||
MemberId int64 `json:"memberId" description:"用户ID"`
|
||||
Username string `json:"username" description:"用户名"`
|
||||
Response *gjson.Json `json:"response" description:"响应数据"`
|
||||
LoginAt *gtime.Time `json:"loginAt" description:"登录时间"`
|
||||
ErrMsg string `json:"errMsg" description:"错误提示"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
}
|
||||
@@ -10,19 +10,16 @@ import (
|
||||
|
||||
// SysProvinces is the golang structure for table sys_provinces.
|
||||
type SysProvinces struct {
|
||||
Id int64 `json:"id" description:"省市区ID"`
|
||||
Title string `json:"title" description:"栏目名称"`
|
||||
ShortTitle string `json:"shortTitle" description:"缩写"`
|
||||
Areacode int `json:"areacode" description:"区域编码"`
|
||||
Zipcode int `json:"zipcode" description:"邮政编码"`
|
||||
Pinyin string `json:"pinyin" description:"拼音"`
|
||||
Lng string `json:"lng" description:"经度"`
|
||||
Lat string `json:"lat" description:"纬度"`
|
||||
Pid int64 `json:"pid" description:"父栏目"`
|
||||
Level int `json:"level" description:"关系树等级"`
|
||||
Tree string `json:"tree" description:"关系"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
Id int64 `json:"id" description:"省市区ID"`
|
||||
Title string `json:"title" description:"栏目名称"`
|
||||
Pinyin string `json:"pinyin" description:"拼音"`
|
||||
Lng string `json:"lng" description:"经度"`
|
||||
Lat string `json:"lat" description:"纬度"`
|
||||
Pid int64 `json:"pid" description:"父栏目"`
|
||||
Level int `json:"level" description:"关系树等级"`
|
||||
Tree string `json:"tree" description:"关系"`
|
||||
Sort int `json:"sort" description:"排序"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
}
|
||||
|
||||
24
server/internal/model/entity/sys_serve_log.go
Normal file
24
server/internal/model/entity/sys_serve_log.go
Normal file
@@ -0,0 +1,24 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/encoding/gjson"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysServeLog is the golang structure for table sys_serve_log.
|
||||
type SysServeLog struct {
|
||||
Id int64 `json:"id" description:"日志ID"`
|
||||
TraceId string `json:"traceId" description:"链路ID"`
|
||||
LevelFormat string `json:"levelFormat" description:"日志级别"`
|
||||
Content string `json:"content" description:"日志内容"`
|
||||
Stack *gjson.Json `json:"stack" description:"打印堆栈"`
|
||||
Line string `json:"line" description:"调用行"`
|
||||
TriggerNs int64 `json:"triggerNs" description:"触发时间(ns)"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
}
|
||||
22
server/internal/model/entity/sys_sms_log.go
Normal file
22
server/internal/model/entity/sys_sms_log.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysSmsLog is the golang structure for table sys_sms_log.
|
||||
type SysSmsLog struct {
|
||||
Id int64 `json:"id" description:"主键"`
|
||||
Event string `json:"event" description:"事件"`
|
||||
Mobile string `json:"mobile" description:"手机号"`
|
||||
Code string `json:"code" description:"验证码或短信内容"`
|
||||
Times int64 `json:"times" description:"验证次数"`
|
||||
Ip string `json:"ip" description:"ip地址"`
|
||||
Status int `json:"status" description:"状态(1未验证,2已验证)"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
}
|
||||
Reference in New Issue
Block a user