feat: edit pagination api.

This commit is contained in:
tx7do
2024-12-15 12:12:46 +08:00
parent 612a81089c
commit a24d01286b
17 changed files with 494 additions and 1651 deletions

View File

@@ -1,6 +1,6 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc-gen-go v1.35.2
// protoc (unknown)
// source: conf/v1/kratos_conf_authn.proto
@@ -32,11 +32,9 @@ type Authentication struct {
func (x *Authentication) Reset() {
*x = Authentication{}
if protoimpl.UnsafeEnabled {
mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Authentication) String() string {
@@ -47,7 +45,7 @@ func (*Authentication) ProtoMessage() {}
func (x *Authentication) ProtoReflect() protoreflect.Message {
mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
@@ -81,11 +79,9 @@ type Authentication_Jwt struct {
func (x *Authentication_Jwt) Reset() {
*x = Authentication_Jwt{}
if protoimpl.UnsafeEnabled {
mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Authentication_Jwt) String() string {
@@ -96,7 +92,7 @@ func (*Authentication_Jwt) ProtoMessage() {}
func (x *Authentication_Jwt) ProtoReflect() protoreflect.Message {
mi := &file_conf_v1_kratos_conf_authn_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
@@ -165,7 +161,7 @@ func file_conf_v1_kratos_conf_authn_proto_rawDescGZIP() []byte {
}
var file_conf_v1_kratos_conf_authn_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_conf_v1_kratos_conf_authn_proto_goTypes = []interface{}{
var file_conf_v1_kratos_conf_authn_proto_goTypes = []any{
(*Authentication)(nil), // 0: conf.Authentication
(*Authentication_Jwt)(nil), // 1: conf.Authentication.Jwt
}
@@ -183,33 +179,7 @@ func file_conf_v1_kratos_conf_authn_proto_init() {
if File_conf_v1_kratos_conf_authn_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_conf_v1_kratos_conf_authn_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Authentication); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_conf_v1_kratos_conf_authn_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Authentication_Jwt); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_conf_v1_kratos_conf_authn_proto_msgTypes[0].OneofWrappers = []interface{}{}
file_conf_v1_kratos_conf_authn_proto_msgTypes[0].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{