add: some user api and all api desc

This commit is contained in:
wwweww
2026-02-27 19:17:01 +08:00
parent a0c720eb2f
commit 5930fb0dde
156 changed files with 9457 additions and 1086 deletions
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v5.29.6
// protoc v3.19.4
// source: user_verifications.proto
package pb
@@ -284,16 +284,16 @@ func (*AddUserVerificationsResp) Descriptor() ([]byte, []int) {
type UpdateUserVerificationsReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //id
UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` //userId
Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` //role
Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` //status
Materials string `protobuf:"bytes,5,opt,name=materials,proto3" json:"materials,omitempty"` //materials
RejectReason string `protobuf:"bytes,6,opt,name=rejectReason,proto3" json:"rejectReason,omitempty"` //rejectReason
ReviewedBy int64 `protobuf:"varint,7,opt,name=reviewedBy,proto3" json:"reviewedBy,omitempty"` //reviewedBy
ReviewedAt int64 `protobuf:"varint,8,opt,name=reviewedAt,proto3" json:"reviewedAt,omitempty"` //reviewedAt
CreatedAt int64 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` //createdAt
UpdatedAt int64 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` //updatedAt
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //id
UserId *int64 `protobuf:"varint,2,opt,name=userId,proto3,oneof" json:"userId,omitempty"` //userId
Role *string `protobuf:"bytes,3,opt,name=role,proto3,oneof" json:"role,omitempty"` //role
Status *string `protobuf:"bytes,4,opt,name=status,proto3,oneof" json:"status,omitempty"` //status
Materials *string `protobuf:"bytes,5,opt,name=materials,proto3,oneof" json:"materials,omitempty"` //materials
RejectReason *string `protobuf:"bytes,6,opt,name=rejectReason,proto3,oneof" json:"rejectReason,omitempty"` //rejectReason
ReviewedBy int64 `protobuf:"varint,7,opt,name=reviewedBy,proto3" json:"reviewedBy,omitempty"` //reviewedBy
ReviewedAt int64 `protobuf:"varint,8,opt,name=reviewedAt,proto3" json:"reviewedAt,omitempty"` //reviewedAt
CreatedAt int64 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` //createdAt
UpdatedAt int64 `protobuf:"varint,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` //updatedAt
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -336,36 +336,36 @@ func (x *UpdateUserVerificationsReq) GetId() int64 {
}
func (x *UpdateUserVerificationsReq) GetUserId() int64 {
if x != nil {
return x.UserId
if x != nil && x.UserId != nil {
return *x.UserId
}
return 0
}
func (x *UpdateUserVerificationsReq) GetRole() string {
if x != nil {
return x.Role
if x != nil && x.Role != nil {
return *x.Role
}
return ""
}
func (x *UpdateUserVerificationsReq) GetStatus() string {
if x != nil {
return x.Status
if x != nil && x.Status != nil {
return *x.Status
}
return ""
}
func (x *UpdateUserVerificationsReq) GetMaterials() string {
if x != nil {
return x.Materials
if x != nil && x.Materials != nil {
return *x.Materials
}
return ""
}
func (x *UpdateUserVerificationsReq) GetRejectReason() string {
if x != nil {
return x.RejectReason
if x != nil && x.RejectReason != nil {
return *x.RejectReason
}
return ""
}
@@ -813,14 +813,14 @@ const file_user_verifications_proto_rawDesc = "" +
"reviewedAt\x12\x1c\n" +
"\tcreatedAt\x18\b \x01(\x03R\tcreatedAt\x12\x1c\n" +
"\tupdatedAt\x18\t \x01(\x03R\tupdatedAt\"\x1a\n" +
"\x18AddUserVerificationsResp\"\xae\x02\n" +
"\x18AddUserVerificationsResp\"\x85\x03\n" +
"\x1aUpdateUserVerificationsReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
"\x06userId\x18\x02 \x01(\x03R\x06userId\x12\x12\n" +
"\x04role\x18\x03 \x01(\tR\x04role\x12\x16\n" +
"\x06status\x18\x04 \x01(\tR\x06status\x12\x1c\n" +
"\tmaterials\x18\x05 \x01(\tR\tmaterials\x12\"\n" +
"\frejectReason\x18\x06 \x01(\tR\frejectReason\x12\x1e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1b\n" +
"\x06userId\x18\x02 \x01(\x03H\x00R\x06userId\x88\x01\x01\x12\x17\n" +
"\x04role\x18\x03 \x01(\tH\x01R\x04role\x88\x01\x01\x12\x1b\n" +
"\x06status\x18\x04 \x01(\tH\x02R\x06status\x88\x01\x01\x12!\n" +
"\tmaterials\x18\x05 \x01(\tH\x03R\tmaterials\x88\x01\x01\x12'\n" +
"\frejectReason\x18\x06 \x01(\tH\x04R\frejectReason\x88\x01\x01\x12\x1e\n" +
"\n" +
"reviewedBy\x18\a \x01(\x03R\n" +
"reviewedBy\x12\x1e\n" +
@@ -829,7 +829,13 @@ const file_user_verifications_proto_rawDesc = "" +
"reviewedAt\x12\x1c\n" +
"\tcreatedAt\x18\t \x01(\x03R\tcreatedAt\x12\x1c\n" +
"\tupdatedAt\x18\n" +
" \x01(\x03R\tupdatedAt\"\x1d\n" +
" \x01(\x03R\tupdatedAtB\t\n" +
"\a_userIdB\a\n" +
"\x05_roleB\t\n" +
"\a_statusB\f\n" +
"\n" +
"_materialsB\x0f\n" +
"\r_rejectReason\"\x1d\n" +
"\x1bUpdateUserVerificationsResp\")\n" +
"\x17DelUserVerificationsReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\"\x1a\n" +
@@ -916,6 +922,7 @@ func file_user_verifications_proto_init() {
if File_user_verifications_proto != nil {
return
}
file_user_verifications_proto_msgTypes[3].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.6.1
// - protoc v5.29.6
// - protoc v3.19.4
// source: user_verifications.proto
package pb