Compare commits

..

7 Commits

Author SHA1 Message Date
yuguojian
a1b4fe772c Merge branch '增加用户类型' 2025-06-09 09:55:53 +08:00
yuguojian
431fd441a7 更新日志类型 2025-06-09 09:55:50 +08:00
LiHouse
f6a19bd7e9 添加用户注销结构 2025-05-22 17:35:38 +08:00
yuguojian
07ff135eea 更新日志类型 2025-05-22 16:13:29 +08:00
zhongqiang
eeed182985 增加日志类型 2025-05-22 15:43:14 +08:00
yuguojian
d233f3a1a3 更新日志类型 2025-05-19 14:57:31 +08:00
yuguojian
6bf054e1e8 更新日志类型命名 2025-05-16 15:27:20 +08:00
2 changed files with 21 additions and 11 deletions

View File

@ -11,20 +11,25 @@ import (
type LogType = string
const (
LogTypeOrder LogType = "order" // 订单
LogTypeProduct LogType = "product" // 商品
LogTypeMerchant LogType = "merchant" // 商家
LogTypeMerchantUser LogType = "merchant_user" // 商家用户
LogTypePay LogType = "pay" // 支付
LogTypeUser LogType = "user" // 用户
LogTypeGPS LogType = "gps" // gps
LogTypeSMS LogType = "sms" // 短信
LogTypeIP LogType = "ip" // ip信息
LogTypeSystem LogType = "system" // 系统、日志、定时任务初始化、定时任务、mq初始化等
LogTypeOrder LogType = "order" // 订单
LogTypeProduct LogType = "product" // 商品
LogTypeMerchant LogType = "merchant" // 商家
LogTypeMerchantRedPack LogType = "merchant_red_pack" // 商家红包
LogTypePay LogType = "pay" // 支付
LogTypeUser LogType = "user" // 用户
LogTypeUserRedPack LogType = "user_red_pack" // 用户红包
LogTypeGPS LogType = "gps" // gps
LogTypeSMS LogType = "sms" // 短信
LogTypeIP LogType = "ip" // ip信息
LogTypeAdmin LogType = "admin" // 管理员操作,例如登录、退出、修改密码、修改用户信息、修改角色信息、审核等
LogTypeSystem LogType = "system" // 系统、日志、定时任务初始化、定时任务、mq初始化等
LogTypeSystemRedPack LogType = "system_red_pack" // 系统红包
LogTypeActivity LogType = "activity" // 活动
LogTypeJJT LogType = "jjt" // 交易所
)
type LogInfo struct {
InfoType LogType `json:"info_type"` // 日志类型,按被操作对象划分
LogType LogType `json:"log_type"` // 日志类型,按被操作对象划分
Operator *Operator `json:"operator,omitempty"` // 操作人,系统操作不用填写操作人,写日志类型就可以
ObjectorID int `json:"objector_id,omitempty"` // 被操作对象ID如果是gps短信等服务则为0
Title string `json:"title"` // 必填,标题,做什么事情

5
rabbitmq_user.go Normal file
View File

@ -0,0 +1,5 @@
package common_structure
type UserLogout struct {
UserID uint `json:"user_id"`
}