www_ichub_gowebcode_srv_service

package
v0.0.0-...-c47cd45 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 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_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, *IDRequestEmployee, *IchubResultEmployee) error
	// 根据主键删除
	DeleteById(context.Context, *IDRequestEmployee, *PageResultEmployee) error
	//
	//主键Id为nil or 0新增,!= nil 修改
	Save(context.Context, *MessageEmployee, *IchubResultEmployee) error
	// 通用查询
	Query(context.Context, *PageRequestEmployee, *PageResultEmployee) error
	FindByIds(context.Context, *IdsRequestEmployee, *PageResultEmployee) error
}

type EmployeeService

type EmployeeService interface {
	// 根据 Id 获取
	FindById(ctx context.Context, in *IDRequestEmployee, opts ...client.CallOption) (*IchubResultEmployee, error)
	// 根据主键删除
	DeleteById(ctx context.Context, in *IDRequestEmployee, 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 *IdsRequestEmployee, 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 IDRequestEmployee

type IDRequestEmployee struct {
	Id int32 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

func (*IDRequestEmployee) Descriptor deprecated

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

Deprecated: Use IDRequestEmployee.ProtoReflect.Descriptor instead.

func (*IDRequestEmployee) GetId

func (x *IDRequestEmployee) GetId() int32

func (*IDRequestEmployee) ProtoMessage

func (*IDRequestEmployee) ProtoMessage()

func (*IDRequestEmployee) ProtoReflect

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

func (*IDRequestEmployee) Reset

func (x *IDRequestEmployee) Reset()

func (*IDRequestEmployee) String

func (x *IDRequestEmployee) 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 IdsRequestEmployee

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

func (*IdsRequestEmployee) Descriptor deprecated

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

Deprecated: Use IdsRequestEmployee.ProtoReflect.Descriptor instead.

func (*IdsRequestEmployee) GetIds

func (x *IdsRequestEmployee) GetIds() string

func (*IdsRequestEmployee) ProtoMessage

func (*IdsRequestEmployee) ProtoMessage()

func (*IdsRequestEmployee) ProtoReflect

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

func (*IdsRequestEmployee) Reset

func (x *IdsRequestEmployee) Reset()

func (*IdsRequestEmployee) String

func (x *IdsRequestEmployee) String() string

type MessageEmployee

type MessageEmployee struct {
	Id             int32   `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"`
	DepartmentId   int32   `protobuf:"varint,6,opt,name=departmentId,proto3" json:"departmentId,omitempty"`
	Name           string  `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
	Gender         string  `protobuf:"bytes,8,opt,name=gender,proto3" json:"gender,omitempty"`
	Birthday       int64   `protobuf:"varint,9,opt,name=birthday,proto3" json:"birthday,omitempty"`
	IdCard         string  `protobuf:"bytes,10,opt,name=idCard,proto3" json:"idCard,omitempty"`
	Wedlock        string  `protobuf:"bytes,11,opt,name=wedlock,proto3" json:"wedlock,omitempty"`
	NationId       int32   `protobuf:"varint,12,opt,name=nationId,proto3" json:"nationId,omitempty"`
	NativePlace    string  `protobuf:"bytes,13,opt,name=nativePlace,proto3" json:"nativePlace,omitempty"`
	PoliticId      int32   `protobuf:"varint,14,opt,name=politicId,proto3" json:"politicId,omitempty"`
	Email          string  `protobuf:"bytes,15,opt,name=email,proto3" json:"email,omitempty"`
	Phone          string  `protobuf:"bytes,16,opt,name=phone,proto3" json:"phone,omitempty"`
	Address        string  `protobuf:"bytes,17,opt,name=address,proto3" json:"address,omitempty"`
	JobLevelId     int32   `protobuf:"varint,18,opt,name=jobLevelId,proto3" json:"jobLevelId,omitempty"`
	PosId          int32   `protobuf:"varint,19,opt,name=posId,proto3" json:"posId,omitempty"`
	EngageForm     string  `protobuf:"bytes,20,opt,name=engageForm,proto3" json:"engageForm,omitempty"`
	TiptopDegree   string  `protobuf:"bytes,21,opt,name=tiptopDegree,proto3" json:"tiptopDegree,omitempty"`
	Specialty      string  `protobuf:"bytes,22,opt,name=specialty,proto3" json:"specialty,omitempty"`
	School         string  `protobuf:"bytes,23,opt,name=school,proto3" json:"school,omitempty"`
	BeginDate      int64   `protobuf:"varint,24,opt,name=beginDate,proto3" json:"beginDate,omitempty"`
	WorkState      string  `protobuf:"bytes,25,opt,name=workState,proto3" json:"workState,omitempty"`
	Code           string  `protobuf:"bytes,26,opt,name=code,proto3" json:"code,omitempty"`
	ContractTerm   float64 `protobuf:"fixed64,27,opt,name=contractTerm,proto3" json:"contractTerm,omitempty"`
	ConversionTime int64   `protobuf:"varint,28,opt,name=conversionTime,proto3" json:"conversionTime,omitempty"`
	NotWokDate     int64   `protobuf:"varint,29,opt,name=notWokDate,proto3" json:"notWokDate,omitempty"`
	BeginContract  int64   `protobuf:"varint,30,opt,name=beginContract,proto3" json:"beginContract,omitempty"`
	EndContract    int64   `protobuf:"varint,31,opt,name=endContract,proto3" json:"endContract,omitempty"`
	WorkAge        int32   `protobuf:"varint,32,opt,name=workAge,proto3" json:"workAge,omitempty"`
	WorkId         string  `protobuf:"bytes,33,opt,name=workId,proto3" json:"workId,omitempty"`
	CreatedAt      int64   `protobuf:"varint,34,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt      int64   `protobuf:"varint,35,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	DeletedAt      int64   `protobuf:"varint,36,opt,name=deletedAt,proto3" json:"deletedAt,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) GetCreatedAt

func (x *MessageEmployee) GetCreatedAt() int64

func (*MessageEmployee) GetDeletedAt

func (x *MessageEmployee) GetDeletedAt() 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) GetUpdatedAt

func (x *MessageEmployee) GetUpdatedAt() int64

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 {
	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        []byte `protobuf:"bytes,7,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) GetCode

func (x *PageRequestEmployee) GetCode() int32

func (*PageRequestEmployee) GetCount

func (x *PageRequestEmployee) GetCount() int32

func (*PageRequestEmployee) GetData

func (x *PageRequestEmployee) GetData() []byte

func (*PageRequestEmployee) GetMsg

func (x *PageRequestEmployee) GetMsg() 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        []byte `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() []byte

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

Jump to

Keyboard shortcuts

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