code_mysql_db_gorpc_service

package
v1.0.2-dev-10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: MulanPSL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_mysql_db_gorpc_proto_pb_employee_proto_proto protoreflect.FileDescriptor

Functions

func NewEmployeeEndpoints

func NewEmployeeEndpoints() []*api.Endpoint

func RegisterEmployeeHandler

func RegisterEmployeeHandler(s server.Server, hdlr EmployeeHandler, opts ...server.HandlerOption) error

Types

type EmployeeHandler

type EmployeeHandler interface {
	// 根据 Id 获取
	FindById(context.Context, *RequestEmployee, *IchubResultEmployee) error
	// 根据主键删除
	DeleteById(context.Context, *RequestEmployee, *PageResultEmployee) error
	//
	//主键Id为nil or 0新增,!= nil 修改
	Save(context.Context, *MessageEmployee, *IchubResultEmployee) error
	// 通用查询
	Query(context.Context, *PageRequestEmployee, *PageResultEmployee) error
	FindByIds(context.Context, *RequestEmployee, *PageResultEmployee) error
}

type EmployeeService

type EmployeeService interface {
	// 根据 Id 获取
	FindById(ctx context.Context, in *RequestEmployee, opts ...client.CallOption) (*IchubResultEmployee, error)
	// 根据主键删除
	DeleteById(ctx context.Context, in *RequestEmployee, opts ...client.CallOption) (*PageResultEmployee, error)
	//
	//主键Id为nil or 0新增,!= nil 修改
	Save(ctx context.Context, in *MessageEmployee, opts ...client.CallOption) (*IchubResultEmployee, error)
	// 通用查询
	Query(ctx context.Context, in *PageRequestEmployee, opts ...client.CallOption) (*PageResultEmployee, error)
	FindByIds(ctx context.Context, in *RequestEmployee, opts ...client.CallOption) (*PageResultEmployee, error)
}

func NewEmployeeService

func NewEmployeeService(name string, c client.Client) EmployeeService

type EmptyEmployee

type EmptyEmployee struct {
	// contains filtered or unexported fields
}

func (*EmptyEmployee) Descriptor deprecated

func (*EmptyEmployee) Descriptor() ([]byte, []int)

Deprecated: Use EmptyEmployee.ProtoReflect.Descriptor instead.

func (*EmptyEmployee) ProtoMessage

func (*EmptyEmployee) ProtoMessage()

func (*EmptyEmployee) ProtoReflect

func (x *EmptyEmployee) ProtoReflect() protoreflect.Message

func (*EmptyEmployee) Reset

func (x *EmptyEmployee) Reset()

func (*EmptyEmployee) String

func (x *EmptyEmployee) String() string

type IchubResultEmployee

type IchubResultEmployee struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Pkey []byte `protobuf:"bytes,3,opt,name=pkey,proto3" json:"pkey,omitempty"`
	// contains filtered or unexported fields
}

func (*IchubResultEmployee) Descriptor deprecated

func (*IchubResultEmployee) Descriptor() ([]byte, []int)

Deprecated: Use IchubResultEmployee.ProtoReflect.Descriptor instead.

func (*IchubResultEmployee) GetCode

func (x *IchubResultEmployee) GetCode() int32

func (*IchubResultEmployee) GetMsg

func (x *IchubResultEmployee) GetMsg() string

func (*IchubResultEmployee) GetPkey

func (x *IchubResultEmployee) GetPkey() []byte

func (*IchubResultEmployee) ProtoMessage

func (*IchubResultEmployee) ProtoMessage()

func (*IchubResultEmployee) ProtoReflect

func (x *IchubResultEmployee) ProtoReflect() protoreflect.Message

func (*IchubResultEmployee) Reset

func (x *IchubResultEmployee) Reset()

func (*IchubResultEmployee) String

func (x *IchubResultEmployee) String() string

type MessageEmployee

type MessageEmployee struct {
	Id             int32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	DepartmentId   int32   `protobuf:"varint,2,opt,name=departmentId,proto3" json:"departmentId,omitempty"`
	Name           string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Gender         string  `protobuf:"bytes,4,opt,name=gender,proto3" json:"gender,omitempty"`
	Birthday       int64   `protobuf:"varint,5,opt,name=birthday,proto3" json:"birthday,omitempty"`
	IdCard         string  `protobuf:"bytes,6,opt,name=idCard,proto3" json:"idCard,omitempty"`
	Wedlock        string  `protobuf:"bytes,7,opt,name=wedlock,proto3" json:"wedlock,omitempty"`
	NationId       int32   `protobuf:"varint,8,opt,name=nationId,proto3" json:"nationId,omitempty"`
	NativePlace    string  `protobuf:"bytes,9,opt,name=nativePlace,proto3" json:"nativePlace,omitempty"`
	PoliticId      int32   `protobuf:"varint,10,opt,name=politicId,proto3" json:"politicId,omitempty"`
	Email          string  `protobuf:"bytes,11,opt,name=email,proto3" json:"email,omitempty"`
	Phone          string  `protobuf:"bytes,12,opt,name=phone,proto3" json:"phone,omitempty"`
	Address        string  `protobuf:"bytes,13,opt,name=address,proto3" json:"address,omitempty"`
	JobLevelId     int32   `protobuf:"varint,14,opt,name=jobLevelId,proto3" json:"jobLevelId,omitempty"`
	PosId          int32   `protobuf:"varint,15,opt,name=posId,proto3" json:"posId,omitempty"`
	EngageForm     string  `protobuf:"bytes,16,opt,name=engageForm,proto3" json:"engageForm,omitempty"`
	TiptopDegree   string  `protobuf:"bytes,17,opt,name=tiptopDegree,proto3" json:"tiptopDegree,omitempty"`
	Specialty      string  `protobuf:"bytes,18,opt,name=specialty,proto3" json:"specialty,omitempty"`
	School         string  `protobuf:"bytes,19,opt,name=school,proto3" json:"school,omitempty"`
	BeginDate      int64   `protobuf:"varint,20,opt,name=beginDate,proto3" json:"beginDate,omitempty"`
	WorkState      string  `protobuf:"bytes,21,opt,name=workState,proto3" json:"workState,omitempty"`
	Code           string  `protobuf:"bytes,22,opt,name=code,proto3" json:"code,omitempty"`
	ContractTerm   float64 `protobuf:"fixed64,23,opt,name=contractTerm,proto3" json:"contractTerm,omitempty"`
	ConversionTime int64   `protobuf:"varint,24,opt,name=conversionTime,proto3" json:"conversionTime,omitempty"`
	NotWokDate     int64   `protobuf:"varint,25,opt,name=notWokDate,proto3" json:"notWokDate,omitempty"`
	BeginContract  int64   `protobuf:"varint,26,opt,name=beginContract,proto3" json:"beginContract,omitempty"`
	EndContract    int64   `protobuf:"varint,27,opt,name=endContract,proto3" json:"endContract,omitempty"`
	WorkAge        int32   `protobuf:"varint,28,opt,name=workAge,proto3" json:"workAge,omitempty"`
	WorkId         string  `protobuf:"bytes,29,opt,name=workId,proto3" json:"workId,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageEmployee) Descriptor deprecated

func (*MessageEmployee) Descriptor() ([]byte, []int)

Deprecated: Use MessageEmployee.ProtoReflect.Descriptor instead.

func (*MessageEmployee) GetAddress

func (x *MessageEmployee) GetAddress() string

func (*MessageEmployee) GetBeginContract

func (x *MessageEmployee) GetBeginContract() int64

func (*MessageEmployee) GetBeginDate

func (x *MessageEmployee) GetBeginDate() int64

func (*MessageEmployee) GetBirthday

func (x *MessageEmployee) GetBirthday() int64

func (*MessageEmployee) GetCode

func (x *MessageEmployee) GetCode() string

func (*MessageEmployee) GetContractTerm

func (x *MessageEmployee) GetContractTerm() float64

func (*MessageEmployee) GetConversionTime

func (x *MessageEmployee) GetConversionTime() int64

func (*MessageEmployee) GetDepartmentId

func (x *MessageEmployee) GetDepartmentId() int32

func (*MessageEmployee) GetEmail

func (x *MessageEmployee) GetEmail() string

func (*MessageEmployee) GetEndContract

func (x *MessageEmployee) GetEndContract() int64

func (*MessageEmployee) GetEngageForm

func (x *MessageEmployee) GetEngageForm() string

func (*MessageEmployee) GetGender

func (x *MessageEmployee) GetGender() string

func (*MessageEmployee) GetId

func (x *MessageEmployee) GetId() int32

func (*MessageEmployee) GetIdCard

func (x *MessageEmployee) GetIdCard() string

func (*MessageEmployee) GetJobLevelId

func (x *MessageEmployee) GetJobLevelId() int32

func (*MessageEmployee) GetName

func (x *MessageEmployee) GetName() string

func (*MessageEmployee) GetNationId

func (x *MessageEmployee) GetNationId() int32

func (*MessageEmployee) GetNativePlace

func (x *MessageEmployee) GetNativePlace() string

func (*MessageEmployee) GetNotWokDate

func (x *MessageEmployee) GetNotWokDate() int64

func (*MessageEmployee) GetPhone

func (x *MessageEmployee) GetPhone() string

func (*MessageEmployee) GetPoliticId

func (x *MessageEmployee) GetPoliticId() int32

func (*MessageEmployee) GetPosId

func (x *MessageEmployee) GetPosId() int32

func (*MessageEmployee) GetSchool

func (x *MessageEmployee) GetSchool() string

func (*MessageEmployee) GetSpecialty

func (x *MessageEmployee) GetSpecialty() string

func (*MessageEmployee) GetTiptopDegree

func (x *MessageEmployee) GetTiptopDegree() string

func (*MessageEmployee) GetWedlock

func (x *MessageEmployee) GetWedlock() string

func (*MessageEmployee) GetWorkAge

func (x *MessageEmployee) GetWorkAge() int32

func (*MessageEmployee) GetWorkId

func (x *MessageEmployee) GetWorkId() string

func (*MessageEmployee) GetWorkState

func (x *MessageEmployee) GetWorkState() string

func (*MessageEmployee) ProtoMessage

func (*MessageEmployee) ProtoMessage()

func (*MessageEmployee) ProtoReflect

func (x *MessageEmployee) ProtoReflect() protoreflect.Message

func (*MessageEmployee) Reset

func (x *MessageEmployee) Reset()

func (*MessageEmployee) String

func (x *MessageEmployee) String() string

type PageRequestEmployee

type PageRequestEmployee struct {
	PageCurrent int32  `protobuf:"varint,1,opt,name=pageCurrent,proto3" json:"pageCurrent,omitempty"`
	PageSize    int32  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Total       int32  `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	Count       int32  `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
	Data        string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*PageRequestEmployee) Descriptor deprecated

func (*PageRequestEmployee) Descriptor() ([]byte, []int)

Deprecated: Use PageRequestEmployee.ProtoReflect.Descriptor instead.

func (*PageRequestEmployee) GetCount

func (x *PageRequestEmployee) GetCount() int32

func (*PageRequestEmployee) GetData

func (x *PageRequestEmployee) GetData() string

func (*PageRequestEmployee) GetPageCurrent

func (x *PageRequestEmployee) GetPageCurrent() int32

func (*PageRequestEmployee) GetPageSize

func (x *PageRequestEmployee) GetPageSize() int32

func (*PageRequestEmployee) GetTotal

func (x *PageRequestEmployee) GetTotal() int32

func (*PageRequestEmployee) ProtoMessage

func (*PageRequestEmployee) ProtoMessage()

func (*PageRequestEmployee) ProtoReflect

func (x *PageRequestEmployee) ProtoReflect() protoreflect.Message

func (*PageRequestEmployee) Reset

func (x *PageRequestEmployee) Reset()

func (*PageRequestEmployee) String

func (x *PageRequestEmployee) String() string

type PageResultEmployee

type PageResultEmployee struct {
	Code        int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg         string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	PageCurrent int32  `protobuf:"varint,3,opt,name=pageCurrent,proto3" json:"pageCurrent,omitempty"`
	PageSize    int32  `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Total       int32  `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"`
	Count       int32  `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"`
	Data        string `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*PageResultEmployee) Descriptor deprecated

func (*PageResultEmployee) Descriptor() ([]byte, []int)

Deprecated: Use PageResultEmployee.ProtoReflect.Descriptor instead.

func (*PageResultEmployee) GetCode

func (x *PageResultEmployee) GetCode() int32

func (*PageResultEmployee) GetCount

func (x *PageResultEmployee) GetCount() int32

func (*PageResultEmployee) GetData

func (x *PageResultEmployee) GetData() string

func (*PageResultEmployee) GetMsg

func (x *PageResultEmployee) GetMsg() string

func (*PageResultEmployee) GetPageCurrent

func (x *PageResultEmployee) GetPageCurrent() int32

func (*PageResultEmployee) GetPageSize

func (x *PageResultEmployee) GetPageSize() int32

func (*PageResultEmployee) GetTotal

func (x *PageResultEmployee) GetTotal() int32

func (*PageResultEmployee) ProtoMessage

func (*PageResultEmployee) ProtoMessage()

func (*PageResultEmployee) ProtoReflect

func (x *PageResultEmployee) ProtoReflect() protoreflect.Message

func (*PageResultEmployee) Reset

func (x *PageResultEmployee) Reset()

func (*PageResultEmployee) String

func (x *PageResultEmployee) String() string

type RequestEmployee

type RequestEmployee struct {
	Id  int32  `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Ids string `protobuf:"bytes,2,opt,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestEmployee) Descriptor deprecated

func (*RequestEmployee) Descriptor() ([]byte, []int)

Deprecated: Use RequestEmployee.ProtoReflect.Descriptor instead.

func (*RequestEmployee) GetId

func (x *RequestEmployee) GetId() int32

func (*RequestEmployee) GetIds

func (x *RequestEmployee) GetIds() string

func (*RequestEmployee) ProtoMessage

func (*RequestEmployee) ProtoMessage()

func (*RequestEmployee) ProtoReflect

func (x *RequestEmployee) ProtoReflect() protoreflect.Message

func (*RequestEmployee) Reset

func (x *RequestEmployee) Reset()

func (*RequestEmployee) String

func (x *RequestEmployee) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL