feat: 登录日志登录时间修改字段类型
This commit is contained in:
parent
c4ab3c2ca3
commit
fac72b7014
@ -14,7 +14,7 @@ import (
|
||||
// 说明:切片为空表示不限定该条件;标量字符串为空时不参与筛选
|
||||
type GetUserLoginLogParam struct {
|
||||
Uid string `json:"uid"`
|
||||
EventTime string `json:"event_time"` // 形如 "2026-06"
|
||||
EventTime []string `json:"event_time"` // 区间 [开始, 结束]
|
||||
GameSign string `json:"game_sign"`
|
||||
ServerGroupId []string `json:"server_group_id"`
|
||||
GameId string `json:"game_id"`
|
||||
@ -31,7 +31,7 @@ type GetUserLoginLogParam struct {
|
||||
type GetUserLoginLogRequest struct {
|
||||
*requests.JsonRequest
|
||||
Uid string `position:"Json" field:"uid"`
|
||||
EventTime string `position:"Json" field:"event_time"`
|
||||
EventTime []string `position:"Json" field:"event_time"`
|
||||
GameSign string `position:"Json" field:"game_sign"`
|
||||
ServerGroupId []string `position:"Json" field:"server_group_id"`
|
||||
GameId string `position:"Json" field:"game_id"`
|
||||
@ -50,7 +50,7 @@ type GetUserLoginLogRequest struct {
|
||||
// - 标量字符串用 omitempty:空串时不出现在 JSON 中,避免被 DMS 当成真实筛选条件。
|
||||
type getUserLoginLogBody struct {
|
||||
Uid string `json:"uid,omitempty"`
|
||||
EventTime string `json:"event_time,omitempty"`
|
||||
EventTime []string `json:"event_time"`
|
||||
GameSign string `json:"game_sign,omitempty"`
|
||||
ServerGroupId []string `json:"server_group_id"`
|
||||
GameId string `json:"game_id,omitempty"`
|
||||
@ -67,7 +67,7 @@ type getUserLoginLogBody struct {
|
||||
func (request *GetUserLoginLogRequest) GetBodyReader() io.Reader {
|
||||
body := getUserLoginLogBody{
|
||||
Uid: request.Uid,
|
||||
EventTime: request.EventTime,
|
||||
EventTime: emptyStrSlice(request.EventTime),
|
||||
GameSign: request.GameSign,
|
||||
ServerGroupId: emptyStrSlice(request.ServerGroupId),
|
||||
GameId: request.GameId,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user