Files
gjs c33fbdb422
CI / changes (push) Successful in 4s
CI / docker-bff (push) Successful in 3m21s
CI / docker-product (push) Successful in 3m39s
CI / docker-admin (push) Successful in 3m34s
CI / docker-user (push) Successful in 3m29s
CI / docker-ad (push) Successful in 3m29s
fix admin login log
2026-08-21 16:07:03 +08:00

602 lines
17 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v4.25.8
// source: lonelog/lonelog.proto
package lonelog
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type ItemsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
AdminId int64 `protobuf:"varint,5,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"`
ServiceId int64 `protobuf:"varint,6,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
Time []string `protobuf:"bytes,7,rep,name=time,proto3" json:"time,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ItemsRequest) Reset() {
*x = ItemsRequest{}
mi := &file_lonelog_lonelog_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ItemsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ItemsRequest) ProtoMessage() {}
func (x *ItemsRequest) ProtoReflect() protoreflect.Message {
mi := &file_lonelog_lonelog_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ItemsRequest.ProtoReflect.Descriptor instead.
func (*ItemsRequest) Descriptor() ([]byte, []int) {
return file_lonelog_lonelog_proto_rawDescGZIP(), []int{0}
}
func (x *ItemsRequest) GetPage() int32 {
if x != nil {
return x.Page
}
return 0
}
func (x *ItemsRequest) GetSize() int32 {
if x != nil {
return x.Size
}
return 0
}
func (x *ItemsRequest) GetType() int32 {
if x != nil {
return x.Type
}
return 0
}
func (x *ItemsRequest) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *ItemsRequest) GetAdminId() int64 {
if x != nil {
return x.AdminId
}
return 0
}
func (x *ItemsRequest) GetServiceId() int64 {
if x != nil {
return x.ServiceId
}
return 0
}
func (x *ItemsRequest) GetTime() []string {
if x != nil {
return x.Time
}
return nil
}
type Response struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Response) Reset() {
*x = Response{}
mi := &file_lonelog_lonelog_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Response) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Response) ProtoMessage() {}
func (x *Response) ProtoReflect() protoreflect.Message {
mi := &file_lonelog_lonelog_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Response.ProtoReflect.Descriptor instead.
func (*Response) Descriptor() ([]byte, []int) {
return file_lonelog_lonelog_proto_rawDescGZIP(), []int{1}
}
func (x *Response) GetCode() int32 {
if x != nil {
return x.Code
}
return 0
}
func (x *Response) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *Response) GetData() string {
if x != nil {
return x.Data
}
return ""
}
type ActionLog struct {
state protoimpl.MessageState `protogen:"open.v1"`
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
AdminId int64 `protobuf:"varint,2,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"`
AdminName string `protobuf:"bytes,3,opt,name=admin_name,json=adminName,proto3" json:"admin_name,omitempty"`
Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
ModuleName string `protobuf:"bytes,5,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
Ip string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"`
BrowserInfo string `protobuf:"bytes,7,opt,name=browser_info,json=browserInfo,proto3" json:"browser_info,omitempty"`
BrowserName string `protobuf:"bytes,8,opt,name=browser_name,json=browserName,proto3" json:"browser_name,omitempty"`
BrowserVersion string `protobuf:"bytes,9,opt,name=browser_version,json=browserVersion,proto3" json:"browser_version,omitempty"`
Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"`
CreateTime string `protobuf:"bytes,11,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ActionLog) Reset() {
*x = ActionLog{}
mi := &file_lonelog_lonelog_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ActionLog) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ActionLog) ProtoMessage() {}
func (x *ActionLog) ProtoReflect() protoreflect.Message {
mi := &file_lonelog_lonelog_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ActionLog.ProtoReflect.Descriptor instead.
func (*ActionLog) Descriptor() ([]byte, []int) {
return file_lonelog_lonelog_proto_rawDescGZIP(), []int{2}
}
func (x *ActionLog) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *ActionLog) GetAdminId() int64 {
if x != nil {
return x.AdminId
}
return 0
}
func (x *ActionLog) GetAdminName() string {
if x != nil {
return x.AdminName
}
return ""
}
func (x *ActionLog) GetType() int32 {
if x != nil {
return x.Type
}
return 0
}
func (x *ActionLog) GetModuleName() string {
if x != nil {
return x.ModuleName
}
return ""
}
func (x *ActionLog) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *ActionLog) GetBrowserInfo() string {
if x != nil {
return x.BrowserInfo
}
return ""
}
func (x *ActionLog) GetBrowserName() string {
if x != nil {
return x.BrowserName
}
return ""
}
func (x *ActionLog) GetBrowserVersion() string {
if x != nil {
return x.BrowserVersion
}
return ""
}
func (x *ActionLog) GetReason() string {
if x != nil {
return x.Reason
}
return ""
}
func (x *ActionLog) GetCreateTime() string {
if x != nil {
return x.CreateTime
}
return ""
}
type LoginLog struct {
state protoimpl.MessageState `protogen:"open.v1"`
AdminId int64 `protobuf:"varint,1,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"`
Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
BrowserInfo string `protobuf:"bytes,4,opt,name=browser_info,json=browserInfo,proto3" json:"browser_info,omitempty"`
BrowserName string `protobuf:"bytes,5,opt,name=browser_name,json=browserName,proto3" json:"browser_name,omitempty"`
BrowserVersion string `protobuf:"bytes,6,opt,name=browser_version,json=browserVersion,proto3" json:"browser_version,omitempty"`
Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
CreateTime string `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
Reason string `protobuf:"bytes,9,opt,name=reason,proto3" json:"reason,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LoginLog) Reset() {
*x = LoginLog{}
mi := &file_lonelog_lonelog_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LoginLog) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoginLog) ProtoMessage() {}
func (x *LoginLog) ProtoReflect() protoreflect.Message {
mi := &file_lonelog_lonelog_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LoginLog.ProtoReflect.Descriptor instead.
func (*LoginLog) Descriptor() ([]byte, []int) {
return file_lonelog_lonelog_proto_rawDescGZIP(), []int{3}
}
func (x *LoginLog) GetAdminId() int64 {
if x != nil {
return x.AdminId
}
return 0
}
func (x *LoginLog) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *LoginLog) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *LoginLog) GetBrowserInfo() string {
if x != nil {
return x.BrowserInfo
}
return ""
}
func (x *LoginLog) GetBrowserName() string {
if x != nil {
return x.BrowserName
}
return ""
}
func (x *LoginLog) GetBrowserVersion() string {
if x != nil {
return x.BrowserVersion
}
return ""
}
func (x *LoginLog) GetStatus() int32 {
if x != nil {
return x.Status
}
return 0
}
func (x *LoginLog) GetCreateTime() string {
if x != nil {
return x.CreateTime
}
return ""
}
func (x *LoginLog) GetReason() string {
if x != nil {
return x.Reason
}
return ""
}
type ItemsLoginRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
AdminId int64 `protobuf:"varint,4,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"`
Time []string `protobuf:"bytes,5,rep,name=time,proto3" json:"time,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ItemsLoginRequest) Reset() {
*x = ItemsLoginRequest{}
mi := &file_lonelog_lonelog_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ItemsLoginRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ItemsLoginRequest) ProtoMessage() {}
func (x *ItemsLoginRequest) ProtoReflect() protoreflect.Message {
mi := &file_lonelog_lonelog_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ItemsLoginRequest.ProtoReflect.Descriptor instead.
func (*ItemsLoginRequest) Descriptor() ([]byte, []int) {
return file_lonelog_lonelog_proto_rawDescGZIP(), []int{4}
}
func (x *ItemsLoginRequest) GetPage() int32 {
if x != nil {
return x.Page
}
return 0
}
func (x *ItemsLoginRequest) GetSize() int32 {
if x != nil {
return x.Size
}
return 0
}
func (x *ItemsLoginRequest) GetIp() string {
if x != nil {
return x.Ip
}
return ""
}
func (x *ItemsLoginRequest) GetAdminId() int64 {
if x != nil {
return x.AdminId
}
return 0
}
func (x *ItemsLoginRequest) GetTime() []string {
if x != nil {
return x.Time
}
return nil
}
var File_lonelog_lonelog_proto protoreflect.FileDescriptor
const file_lonelog_lonelog_proto_rawDesc = "" +
"\n" +
"\x15lonelog/lonelog.proto\x12\alonelog\x1a\x1cgoogle/api/annotations.proto\"\xa8\x01\n" +
"\fItemsRequest\x12\x12\n" +
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x12\n" +
"\x04size\x18\x02 \x01(\x05R\x04size\x12\x12\n" +
"\x04type\x18\x03 \x01(\x05R\x04type\x12\x0e\n" +
"\x02ip\x18\x04 \x01(\tR\x02ip\x12\x19\n" +
"\badmin_id\x18\x05 \x01(\x03R\aadminId\x12\x1d\n" +
"\n" +
"service_id\x18\x06 \x01(\x03R\tserviceId\x12\x12\n" +
"\x04time\x18\a \x03(\tR\x04time\"D\n" +
"\bResponse\x12\x12\n" +
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" +
"\x03msg\x18\x02 \x01(\tR\x03msg\x12\x12\n" +
"\x04data\x18\x03 \x01(\tR\x04data\"\xcc\x02\n" +
"\tActionLog\x12\x18\n" +
"\acontent\x18\x01 \x01(\tR\acontent\x12\x19\n" +
"\badmin_id\x18\x02 \x01(\x03R\aadminId\x12\x1d\n" +
"\n" +
"admin_name\x18\x03 \x01(\tR\tadminName\x12\x12\n" +
"\x04type\x18\x04 \x01(\x05R\x04type\x12\x1f\n" +
"\vmodule_name\x18\x05 \x01(\tR\n" +
"moduleName\x12\x0e\n" +
"\x02ip\x18\x06 \x01(\tR\x02ip\x12!\n" +
"\fbrowser_info\x18\a \x01(\tR\vbrowserInfo\x12!\n" +
"\fbrowser_name\x18\b \x01(\tR\vbrowserName\x12'\n" +
"\x0fbrowser_version\x18\t \x01(\tR\x0ebrowserVersion\x12\x16\n" +
"\x06reason\x18\n" +
" \x01(\tR\x06reason\x12\x1f\n" +
"\vcreate_time\x18\v \x01(\tR\n" +
"createTime\"\x89\x02\n" +
"\bLoginLog\x12\x19\n" +
"\badmin_id\x18\x01 \x01(\x03R\aadminId\x12\x0e\n" +
"\x02ip\x18\x02 \x01(\tR\x02ip\x12\x12\n" +
"\x04name\x18\x03 \x01(\tR\x04name\x12!\n" +
"\fbrowser_info\x18\x04 \x01(\tR\vbrowserInfo\x12!\n" +
"\fbrowser_name\x18\x05 \x01(\tR\vbrowserName\x12'\n" +
"\x0fbrowser_version\x18\x06 \x01(\tR\x0ebrowserVersion\x12\x16\n" +
"\x06status\x18\a \x01(\x05R\x06status\x12\x1f\n" +
"\vcreate_time\x18\b \x01(\tR\n" +
"createTime\x12\x16\n" +
"\x06reason\x18\t \x01(\tR\x06reason\"z\n" +
"\x11ItemsLoginRequest\x12\x12\n" +
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x12\n" +
"\x04size\x18\x02 \x01(\x05R\x04size\x12\x0e\n" +
"\x02ip\x18\x03 \x01(\tR\x02ip\x12\x19\n" +
"\badmin_id\x18\x04 \x01(\x03R\aadminId\x12\x12\n" +
"\x04time\x18\x05 \x03(\tR\x04time2\x9b\x02\n" +
"\aLonelog\x12R\n" +
"\x05Items\x12\x15.lonelog.ItemsRequest\x1a\x11.lonelog.Response\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\x12\x14/admin/v3/log/action\x12V\n" +
"\n" +
"LoginItems\x12\x15.lonelog.ItemsRequest\x1a\x11.lonelog.Response\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\x12\x13/admin/v3/log/login\x122\n" +
"\tActionAdd\x12\x12.lonelog.ActionLog\x1a\x11.lonelog.Response\x120\n" +
"\bLoginAdd\x12\x11.lonelog.LoginLog\x1a\x11.lonelog.ResponseB\x1bZ\x19lone-services/rpc/lonelogb\x06proto3"
var (
file_lonelog_lonelog_proto_rawDescOnce sync.Once
file_lonelog_lonelog_proto_rawDescData []byte
)
func file_lonelog_lonelog_proto_rawDescGZIP() []byte {
file_lonelog_lonelog_proto_rawDescOnce.Do(func() {
file_lonelog_lonelog_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_lonelog_lonelog_proto_rawDesc), len(file_lonelog_lonelog_proto_rawDesc)))
})
return file_lonelog_lonelog_proto_rawDescData
}
var file_lonelog_lonelog_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_lonelog_lonelog_proto_goTypes = []any{
(*ItemsRequest)(nil), // 0: lonelog.ItemsRequest
(*Response)(nil), // 1: lonelog.Response
(*ActionLog)(nil), // 2: lonelog.ActionLog
(*LoginLog)(nil), // 3: lonelog.LoginLog
(*ItemsLoginRequest)(nil), // 4: lonelog.ItemsLoginRequest
}
var file_lonelog_lonelog_proto_depIdxs = []int32{
0, // 0: lonelog.Lonelog.Items:input_type -> lonelog.ItemsRequest
0, // 1: lonelog.Lonelog.LoginItems:input_type -> lonelog.ItemsRequest
2, // 2: lonelog.Lonelog.ActionAdd:input_type -> lonelog.ActionLog
3, // 3: lonelog.Lonelog.LoginAdd:input_type -> lonelog.LoginLog
1, // 4: lonelog.Lonelog.Items:output_type -> lonelog.Response
1, // 5: lonelog.Lonelog.LoginItems:output_type -> lonelog.Response
1, // 6: lonelog.Lonelog.ActionAdd:output_type -> lonelog.Response
1, // 7: lonelog.Lonelog.LoginAdd:output_type -> lonelog.Response
4, // [4:8] is the sub-list for method output_type
0, // [0:4] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_lonelog_lonelog_proto_init() }
func file_lonelog_lonelog_proto_init() {
if File_lonelog_lonelog_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_lonelog_lonelog_proto_rawDesc), len(file_lonelog_lonelog_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_lonelog_lonelog_proto_goTypes,
DependencyIndexes: file_lonelog_lonelog_proto_depIdxs,
MessageInfos: file_lonelog_lonelog_proto_msgTypes,
}.Build()
File_lonelog_lonelog_proto = out.File
file_lonelog_lonelog_proto_goTypes = nil
file_lonelog_lonelog_proto_depIdxs = nil
}