Files
full/module/ec/mall/pb/staff.pb.go

582 lines
18 KiB
Go
Raw Permalink Normal View History

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.35.1
// source: module/ec/mall/proto/staff.proto
package mall
import (
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 LoginRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
VerifyCode string `protobuf:"bytes,4,opt,name=verify_code,proto3" json:"verify_code,omitempty"`
LoginGenre int32 `protobuf:"varint,5,opt,name=login_genre,proto3" json:"login_genre,omitempty"` // 登陆类型: 1 账密; 2 手机验证码
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LoginRequest) Reset() {
*x = LoginRequest{}
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LoginRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoginRequest) ProtoMessage() {}
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
mi := &file_module_ec_mall_proto_staff_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 LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) Descriptor() ([]byte, []int) {
return file_module_ec_mall_proto_staff_proto_rawDescGZIP(), []int{0}
}
func (x *LoginRequest) GetAccount() string {
if x != nil {
return x.Account
}
return ""
}
func (x *LoginRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *LoginRequest) GetPhone() string {
if x != nil {
return x.Phone
}
return ""
}
func (x *LoginRequest) GetVerifyCode() string {
if x != nil {
return x.VerifyCode
}
return ""
}
func (x *LoginRequest) GetLoginGenre() int32 {
if x != nil {
return x.LoginGenre
}
return 0
}
type LoginReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // token 授权码
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一标识
StoreIdentity string `protobuf:"bytes,3,opt,name=store_identity,proto3" json:"store_identity,omitempty"` // 店铺唯一标识
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 姓名
Account string `protobuf:"bytes,5,opt,name=account,proto3" json:"account,omitempty"` // 账号
Role string `protobuf:"bytes,6,opt,name=role,proto3" json:"role,omitempty"` // 角色
Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` // 状态
CreatedAt string `protobuf:"bytes,8,opt,name=created_at,proto3" json:"created_at,omitempty"` // 创建时间
StoreName string `protobuf:"bytes,9,opt,name=store_name,proto3" json:"store_name,omitempty"` // 店铺名称
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LoginReply) Reset() {
*x = LoginReply{}
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LoginReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoginReply) ProtoMessage() {}
func (x *LoginReply) ProtoReflect() protoreflect.Message {
mi := &file_module_ec_mall_proto_staff_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 LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) Descriptor() ([]byte, []int) {
return file_module_ec_mall_proto_staff_proto_rawDescGZIP(), []int{1}
}
func (x *LoginReply) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
func (x *LoginReply) GetIdentity() string {
if x != nil {
return x.Identity
}
return ""
}
func (x *LoginReply) GetStoreIdentity() string {
if x != nil {
return x.StoreIdentity
}
return ""
}
func (x *LoginReply) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *LoginReply) GetAccount() string {
if x != nil {
return x.Account
}
return ""
}
func (x *LoginReply) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
func (x *LoginReply) GetStatus() int32 {
if x != nil {
return x.Status
}
return 0
}
func (x *LoginReply) GetCreatedAt() string {
if x != nil {
return x.CreatedAt
}
return ""
}
func (x *LoginReply) GetStoreName() string {
if x != nil {
return x.StoreName
}
return ""
}
type SetAccountRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // 账号
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 密码
PasswordConfirmed string `protobuf:"bytes,3,opt,name=password_confirmed,proto3" json:"password_confirmed,omitempty"` // 确认密码
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetAccountRequest) Reset() {
*x = SetAccountRequest{}
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetAccountRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetAccountRequest) ProtoMessage() {}
func (x *SetAccountRequest) ProtoReflect() protoreflect.Message {
mi := &file_module_ec_mall_proto_staff_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 SetAccountRequest.ProtoReflect.Descriptor instead.
func (*SetAccountRequest) Descriptor() ([]byte, []int) {
return file_module_ec_mall_proto_staff_proto_rawDescGZIP(), []int{2}
}
func (x *SetAccountRequest) GetAccount() string {
if x != nil {
return x.Account
}
return ""
}
func (x *SetAccountRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *SetAccountRequest) GetPasswordConfirmed() string {
if x != nil {
return x.PasswordConfirmed
}
return ""
}
type StaffItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // id
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一标识
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 姓名
Account string `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"` // 账号
Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` // 密码
Profile string `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"` // 简介
Role string `protobuf:"bytes,7,opt,name=role,proto3" json:"role,omitempty"` // 角色
Phone string `protobuf:"bytes,8,opt,name=phone,proto3" json:"phone,omitempty"` // 手机号
Email string `protobuf:"bytes,9,opt,name=email,proto3" json:"email,omitempty"` // 邮箱
Status int32 `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"` // 状态默认为0-1禁止1为正常
Avatar string `protobuf:"bytes,11,opt,name=avatar,proto3" json:"avatar,omitempty"` // 头像
CreatedAt string `protobuf:"bytes,12,opt,name=created_at,proto3" json:"created_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StaffItem) Reset() {
*x = StaffItem{}
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StaffItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StaffItem) ProtoMessage() {}
func (x *StaffItem) ProtoReflect() protoreflect.Message {
mi := &file_module_ec_mall_proto_staff_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 StaffItem.ProtoReflect.Descriptor instead.
func (*StaffItem) Descriptor() ([]byte, []int) {
return file_module_ec_mall_proto_staff_proto_rawDescGZIP(), []int{3}
}
func (x *StaffItem) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *StaffItem) GetIdentity() string {
if x != nil {
return x.Identity
}
return ""
}
func (x *StaffItem) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *StaffItem) GetAccount() string {
if x != nil {
return x.Account
}
return ""
}
func (x *StaffItem) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *StaffItem) GetProfile() string {
if x != nil {
return x.Profile
}
return ""
}
func (x *StaffItem) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
func (x *StaffItem) GetPhone() string {
if x != nil {
return x.Phone
}
return ""
}
func (x *StaffItem) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *StaffItem) GetStatus() int32 {
if x != nil {
return x.Status
}
return 0
}
func (x *StaffItem) GetAvatar() string {
if x != nil {
return x.Avatar
}
return ""
}
func (x *StaffItem) GetCreatedAt() string {
if x != nil {
return x.CreatedAt
}
return ""
}
type StaffListReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Data []*StaffItem `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StaffListReply) Reset() {
*x = StaffListReply{}
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StaffListReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StaffListReply) ProtoMessage() {}
func (x *StaffListReply) ProtoReflect() protoreflect.Message {
mi := &file_module_ec_mall_proto_staff_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 StaffListReply.ProtoReflect.Descriptor instead.
func (*StaffListReply) Descriptor() ([]byte, []int) {
return file_module_ec_mall_proto_staff_proto_rawDescGZIP(), []int{4}
}
func (x *StaffListReply) GetData() []*StaffItem {
if x != nil {
return x.Data
}
return nil
}
func (x *StaffListReply) GetCount() int64 {
if x != nil {
return x.Count
}
return 0
}
var File_module_ec_mall_proto_staff_proto protoreflect.FileDescriptor
const file_module_ec_mall_proto_staff_proto_rawDesc = "" +
"\n" +
" module/ec/mall/proto/staff.proto\x12\x04mall\x1a module/ec/mall/proto/const.proto\"\x9e\x01\n" +
"\fLoginRequest\x12\x18\n" +
"\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x14\n" +
"\x05phone\x18\x03 \x01(\tR\x05phone\x12 \n" +
"\vverify_code\x18\x04 \x01(\tR\vverify_code\x12 \n" +
"\vlogin_genre\x18\x05 \x01(\x05R\vlogin_genre\"\x80\x02\n" +
"\n" +
"LoginReply\x12\x14\n" +
"\x05token\x18\x01 \x01(\tR\x05token\x12\x1a\n" +
"\bidentity\x18\x02 \x01(\tR\bidentity\x12&\n" +
"\x0estore_identity\x18\x03 \x01(\tR\x0estore_identity\x12\x12\n" +
"\x04name\x18\x04 \x01(\tR\x04name\x12\x18\n" +
"\aaccount\x18\x05 \x01(\tR\aaccount\x12\x12\n" +
"\x04role\x18\x06 \x01(\tR\x04role\x12\x16\n" +
"\x06status\x18\a \x01(\x05R\x06status\x12\x1e\n" +
"\n" +
"created_at\x18\b \x01(\tR\n" +
"created_at\x12\x1e\n" +
"\n" +
"store_name\x18\t \x01(\tR\n" +
"store_name\"y\n" +
"\x11SetAccountRequest\x12\x18\n" +
"\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
"\bpassword\x18\x02 \x01(\tR\bpassword\x12.\n" +
"\x12password_confirmed\x18\x03 \x01(\tR\x12password_confirmed\"\xab\x02\n" +
"\tStaffItem\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x12\n" +
"\x04name\x18\x03 \x01(\tR\x04name\x12\x18\n" +
"\aaccount\x18\x04 \x01(\tR\aaccount\x12\x1a\n" +
"\bpassword\x18\x05 \x01(\tR\bpassword\x12\x18\n" +
"\aprofile\x18\x06 \x01(\tR\aprofile\x12\x12\n" +
"\x04role\x18\a \x01(\tR\x04role\x12\x14\n" +
"\x05phone\x18\b \x01(\tR\x05phone\x12\x14\n" +
"\x05email\x18\t \x01(\tR\x05email\x12\x16\n" +
"\x06status\x18\n" +
" \x01(\x05R\x06status\x12\x16\n" +
"\x06avatar\x18\v \x01(\tR\x06avatar\x12\x1e\n" +
"\n" +
"created_at\x18\f \x01(\tR\n" +
"created_at\"K\n" +
"\x0eStaffListReply\x12#\n" +
"\x04data\x18\x01 \x03(\v2\x0f.mall.StaffItemR\x04data\x12\x14\n" +
"\x05count\x18\x02 \x01(\x03R\x05count2\xe0\x03\n" +
"\x05Staff\x12/\n" +
"\x05Login\x12\x12.mall.LoginRequest\x1a\x10.mall.LoginReply\"\x00\x12A\n" +
"\x05Fetch\x12 .ec_mall_blocks.MallFetchRequest\x1a\x14.mall.StaffListReply\"\x00\x12@\n" +
"\x06Create\x12\x0f.mall.StaffItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
"\x06Delete\x12\x1c.ec_mall_blocks.IdentRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12=\n" +
"\n" +
"GetProfile\x12\x1c.ec_mall_blocks.IdentRequest\x1a\x0f.mall.StaffItem\"\x00\x12D\n" +
"\n" +
"SetProfile\x12\x0f.mall.StaffItem\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00\x12M\n" +
"\vSetPassword\x12\x17.mall.SetAccountRequest\x1a#.ec_mall_blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
var (
file_module_ec_mall_proto_staff_proto_rawDescOnce sync.Once
file_module_ec_mall_proto_staff_proto_rawDescData []byte
)
func file_module_ec_mall_proto_staff_proto_rawDescGZIP() []byte {
file_module_ec_mall_proto_staff_proto_rawDescOnce.Do(func() {
file_module_ec_mall_proto_staff_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_staff_proto_rawDesc), len(file_module_ec_mall_proto_staff_proto_rawDesc)))
})
return file_module_ec_mall_proto_staff_proto_rawDescData
}
var file_module_ec_mall_proto_staff_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_module_ec_mall_proto_staff_proto_goTypes = []any{
(*LoginRequest)(nil), // 0: mall.LoginRequest
(*LoginReply)(nil), // 1: mall.LoginReply
(*SetAccountRequest)(nil), // 2: mall.SetAccountRequest
(*StaffItem)(nil), // 3: mall.StaffItem
(*StaffListReply)(nil), // 4: mall.StaffListReply
(*MallFetchRequest)(nil), // 5: ec_mall_blocks.MallFetchRequest
(*IdentRequest)(nil), // 6: ec_mall_blocks.IdentRequest
(*IdentityStatusReply)(nil), // 7: ec_mall_blocks.IdentityStatusReply
}
var file_module_ec_mall_proto_staff_proto_depIdxs = []int32{
3, // 0: mall.StaffListReply.data:type_name -> mall.StaffItem
0, // 1: mall.Staff.Login:input_type -> mall.LoginRequest
5, // 2: mall.Staff.Fetch:input_type -> ec_mall_blocks.MallFetchRequest
3, // 3: mall.Staff.Create:input_type -> mall.StaffItem
6, // 4: mall.Staff.Delete:input_type -> ec_mall_blocks.IdentRequest
6, // 5: mall.Staff.GetProfile:input_type -> ec_mall_blocks.IdentRequest
3, // 6: mall.Staff.SetProfile:input_type -> mall.StaffItem
2, // 7: mall.Staff.SetPassword:input_type -> mall.SetAccountRequest
1, // 8: mall.Staff.Login:output_type -> mall.LoginReply
4, // 9: mall.Staff.Fetch:output_type -> mall.StaffListReply
7, // 10: mall.Staff.Create:output_type -> ec_mall_blocks.IdentityStatusReply
7, // 11: mall.Staff.Delete:output_type -> ec_mall_blocks.IdentityStatusReply
3, // 12: mall.Staff.GetProfile:output_type -> mall.StaffItem
7, // 13: mall.Staff.SetProfile:output_type -> ec_mall_blocks.IdentityStatusReply
7, // 14: mall.Staff.SetPassword:output_type -> ec_mall_blocks.IdentityStatusReply
8, // [8:15] is the sub-list for method output_type
1, // [1:8] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
}
func init() { file_module_ec_mall_proto_staff_proto_init() }
func file_module_ec_mall_proto_staff_proto_init() {
if File_module_ec_mall_proto_staff_proto != nil {
return
}
file_module_ec_mall_proto_const_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_staff_proto_rawDesc), len(file_module_ec_mall_proto_staff_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_module_ec_mall_proto_staff_proto_goTypes,
DependencyIndexes: file_module_ec_mall_proto_staff_proto_depIdxs,
MessageInfos: file_module_ec_mall_proto_staff_proto_msgTypes,
}.Build()
File_module_ec_mall_proto_staff_proto = out.File
file_module_ec_mall_proto_staff_proto_goTypes = nil
file_module_ec_mall_proto_staff_proto_depIdxs = nil
}