Documentation ¶
Index ¶
- Variables
- func NewTaskServiceEndpoints() []*api.Endpoint
- func NewUserServiceEndpoints() []*api.Endpoint
- func RegisterTaskServiceHandler(s server.Server, hdlr TaskServiceHandler, opts ...server.HandlerOption) error
- func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
- type TaskDetailResponse
- func (*TaskDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TaskDetailResponse) GetCode() uint32
- func (x *TaskDetailResponse) GetTaskDetail() *TaskModel
- func (*TaskDetailResponse) ProtoMessage()
- func (x *TaskDetailResponse) ProtoReflect() protoreflect.Message
- func (x *TaskDetailResponse) Reset()
- func (x *TaskDetailResponse) String() string
- type TaskListResponse
- func (*TaskListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TaskListResponse) GetCode() uint32
- func (x *TaskListResponse) GetCount() uint32
- func (x *TaskListResponse) GetTaskList() []*TaskModel
- func (*TaskListResponse) ProtoMessage()
- func (x *TaskListResponse) ProtoReflect() protoreflect.Message
- func (x *TaskListResponse) Reset()
- func (x *TaskListResponse) String() string
- type TaskModel
- func (*TaskModel) Descriptor() ([]byte, []int)deprecated
- func (x *TaskModel) GetContent() string
- func (x *TaskModel) GetCreateTime() int64
- func (x *TaskModel) GetEndTime() int64
- func (x *TaskModel) GetId() uint64
- func (x *TaskModel) GetStartTime() int64
- func (x *TaskModel) GetStatus() int64
- func (x *TaskModel) GetTitle() string
- func (x *TaskModel) GetUid() uint64
- func (x *TaskModel) GetUpdateTime() int64
- func (*TaskModel) ProtoMessage()
- func (x *TaskModel) ProtoReflect() protoreflect.Message
- func (x *TaskModel) Reset()
- func (x *TaskModel) String() string
- type TaskRequest
- func (*TaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TaskRequest) GetContent() string
- func (x *TaskRequest) GetEndTime() int64
- func (x *TaskRequest) GetId() uint64
- func (x *TaskRequest) GetLimit() uint32
- func (x *TaskRequest) GetStart() uint32
- func (x *TaskRequest) GetStartTime() int64
- func (x *TaskRequest) GetStatus() int64
- func (x *TaskRequest) GetTitle() string
- func (x *TaskRequest) GetUid() uint64
- func (*TaskRequest) ProtoMessage()
- func (x *TaskRequest) ProtoReflect() protoreflect.Message
- func (x *TaskRequest) Reset()
- func (x *TaskRequest) String() string
- type TaskService
- type TaskServiceHandler
- type UserDetailResponse
- func (*UserDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserDetailResponse) GetCode() uint32
- func (x *UserDetailResponse) GetUserDetail() *UserModel
- func (*UserDetailResponse) ProtoMessage()
- func (x *UserDetailResponse) ProtoReflect() protoreflect.Message
- func (x *UserDetailResponse) Reset()
- func (x *UserDetailResponse) String() string
- type UserModel
- func (*UserModel) Descriptor() ([]byte, []int)deprecated
- func (x *UserModel) GetCreatedAt() int64
- func (x *UserModel) GetDeletedAt() int64
- func (x *UserModel) GetId() uint32
- func (x *UserModel) GetUpdatedAt() int64
- func (x *UserModel) GetUserName() string
- func (*UserModel) ProtoMessage()
- func (x *UserModel) ProtoReflect() protoreflect.Message
- func (x *UserModel) Reset()
- func (x *UserModel) String() string
- type UserRequest
- func (*UserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserRequest) GetPassword() string
- func (x *UserRequest) GetPasswordConfirm() string
- func (x *UserRequest) GetUserName() string
- func (*UserRequest) ProtoMessage()
- func (x *UserRequest) ProtoReflect() protoreflect.Message
- func (x *UserRequest) Reset()
- func (x *UserRequest) String() string
- type UserService
- type UserServiceHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var File_taskService_proto protoreflect.FileDescriptor
View Source
var File_userService_proto protoreflect.FileDescriptor
Functions ¶
func NewTaskServiceEndpoints ¶
func NewUserServiceEndpoints ¶
func RegisterTaskServiceHandler ¶
func RegisterTaskServiceHandler(s server.Server, hdlr TaskServiceHandler, opts ...server.HandlerOption) error
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(s server.Server, hdlr UserServiceHandler, opts ...server.HandlerOption) error
Types ¶
type TaskDetailResponse ¶
type TaskDetailResponse struct { // @inject_tag: json:"task_detail" TaskDetail *TaskModel `protobuf:"bytes,1,opt,name=task_detail,json=taskDetail,proto3" json:"task_detail"` // @inject_tag: json:"code" Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code"` // contains filtered or unexported fields }
func (*TaskDetailResponse) Descriptor
deprecated
func (*TaskDetailResponse) Descriptor() ([]byte, []int)
Deprecated: Use TaskDetailResponse.ProtoReflect.Descriptor instead.
func (*TaskDetailResponse) GetCode ¶
func (x *TaskDetailResponse) GetCode() uint32
func (*TaskDetailResponse) GetTaskDetail ¶
func (x *TaskDetailResponse) GetTaskDetail() *TaskModel
func (*TaskDetailResponse) ProtoMessage ¶
func (*TaskDetailResponse) ProtoMessage()
func (*TaskDetailResponse) ProtoReflect ¶
func (x *TaskDetailResponse) ProtoReflect() protoreflect.Message
func (*TaskDetailResponse) Reset ¶
func (x *TaskDetailResponse) Reset()
func (*TaskDetailResponse) String ¶
func (x *TaskDetailResponse) String() string
type TaskListResponse ¶
type TaskListResponse struct { // @inject_tag: json:"task_list" TaskList []*TaskModel `protobuf:"bytes,1,rep,name=task_list,json=taskList,proto3" json:"task_list"` // @inject_tag: json:"count" Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count"` // @inject_tag: json:"code" Code uint32 `protobuf:"varint,3,opt,name=code,proto3" json:"code"` // contains filtered or unexported fields }
func (*TaskListResponse) Descriptor
deprecated
func (*TaskListResponse) Descriptor() ([]byte, []int)
Deprecated: Use TaskListResponse.ProtoReflect.Descriptor instead.
func (*TaskListResponse) GetCode ¶
func (x *TaskListResponse) GetCode() uint32
func (*TaskListResponse) GetCount ¶
func (x *TaskListResponse) GetCount() uint32
func (*TaskListResponse) GetTaskList ¶
func (x *TaskListResponse) GetTaskList() []*TaskModel
func (*TaskListResponse) ProtoMessage ¶
func (*TaskListResponse) ProtoMessage()
func (*TaskListResponse) ProtoReflect ¶
func (x *TaskListResponse) ProtoReflect() protoreflect.Message
func (*TaskListResponse) Reset ¶
func (x *TaskListResponse) Reset()
func (*TaskListResponse) String ¶
func (x *TaskListResponse) String() string
type TaskModel ¶
type TaskModel struct { //@inject_tag: json:"id" form:"id" Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id"` //@inject_tag: json:"uid" form:"uid" Uid uint64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid" form:"uid"` //@inject_tag: json:"title" form:"title" Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title" form:"title"` //@inject_tag: json:"content" form:"content" Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content" form:"content"` //@inject_tag: json:"start_time" form:"start_time" StartTime int64 `protobuf:"varint,5,opt,name=start_time,json=startTime,proto3" json:"start_time" form:"start_time"` //@inject_tag: json:"end_time" form:"end_time" EndTime int64 `protobuf:"varint,6,opt,name=end_time,json=endTime,proto3" json:"end_time" form:"end_time"` //@inject_tag: json:"status" form:"status" Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status" form:"status"` //@inject_tag: json:"create_time" form:"create_time" CreateTime int64 `protobuf:"varint,8,opt,name=create_time,json=createTime,proto3" json:"create_time" form:"create_time"` //@inject_tag: json:"update_time" form:"update_time" UpdateTime int64 `protobuf:"varint,9,opt,name=update_time,json=updateTime,proto3" json:"update_time" form:"update_time"` // contains filtered or unexported fields }
func (*TaskModel) Descriptor
deprecated
func (*TaskModel) GetContent ¶
func (*TaskModel) GetCreateTime ¶
func (*TaskModel) GetEndTime ¶
func (*TaskModel) GetStartTime ¶
func (*TaskModel) GetUpdateTime ¶
func (*TaskModel) ProtoMessage ¶
func (*TaskModel) ProtoMessage()
func (*TaskModel) ProtoReflect ¶
func (x *TaskModel) ProtoReflect() protoreflect.Message
type TaskRequest ¶
type TaskRequest struct { //@inject_tag: json:"id" form:"id" Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id"` //@inject_tag: json:"uid" form:"uid" Uid uint64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid" form:"uid"` //@inject_tag: json:"title" form:"title" Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title" form:"title"` //@inject_tag: json:"content" form:"content" Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content" form:"content"` //@inject_tag: json:"start_time" form:"start_time" StartTime int64 `protobuf:"varint,5,opt,name=start_time,json=startTime,proto3" json:"start_time" form:"start_time"` //@inject_tag: json:"end_time" form:"end_time" EndTime int64 `protobuf:"varint,6,opt,name=end_time,json=endTime,proto3" json:"end_time" form:"end_time"` //@inject_tag: json:"status" form:"status" Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status" form:"status"` // @inject_tag: json:"start" form:"start" Start uint32 `protobuf:"varint,8,opt,name=start,proto3" json:"start" form:"start"` // @inject_tag: json:"limit" form:"limit" Limit uint32 `protobuf:"varint,9,opt,name=limit,proto3" json:"limit" form:"limit"` // contains filtered or unexported fields }
func (*TaskRequest) Descriptor
deprecated
func (*TaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use TaskRequest.ProtoReflect.Descriptor instead.
func (*TaskRequest) GetContent ¶
func (x *TaskRequest) GetContent() string
func (*TaskRequest) GetEndTime ¶
func (x *TaskRequest) GetEndTime() int64
func (*TaskRequest) GetId ¶
func (x *TaskRequest) GetId() uint64
func (*TaskRequest) GetLimit ¶
func (x *TaskRequest) GetLimit() uint32
func (*TaskRequest) GetStart ¶
func (x *TaskRequest) GetStart() uint32
func (*TaskRequest) GetStartTime ¶
func (x *TaskRequest) GetStartTime() int64
func (*TaskRequest) GetStatus ¶
func (x *TaskRequest) GetStatus() int64
func (*TaskRequest) GetTitle ¶
func (x *TaskRequest) GetTitle() string
func (*TaskRequest) GetUid ¶
func (x *TaskRequest) GetUid() uint64
func (*TaskRequest) ProtoMessage ¶
func (*TaskRequest) ProtoMessage()
func (*TaskRequest) ProtoReflect ¶
func (x *TaskRequest) ProtoReflect() protoreflect.Message
func (*TaskRequest) Reset ¶
func (x *TaskRequest) Reset()
func (*TaskRequest) String ¶
func (x *TaskRequest) String() string
type TaskService ¶
type TaskService interface { CreateTask(ctx context.Context, in *TaskRequest, opts ...client.CallOption) (*TaskDetailResponse, error) GetTasksList(ctx context.Context, in *TaskRequest, opts ...client.CallOption) (*TaskListResponse, error) GetTask(ctx context.Context, in *TaskRequest, opts ...client.CallOption) (*TaskDetailResponse, error) UpdateTask(ctx context.Context, in *TaskRequest, opts ...client.CallOption) (*TaskDetailResponse, error) DeleteTask(ctx context.Context, in *TaskRequest, opts ...client.CallOption) (*TaskDetailResponse, error) }
func NewTaskService ¶
func NewTaskService(name string, c client.Client) TaskService
type TaskServiceHandler ¶
type TaskServiceHandler interface { CreateTask(context.Context, *TaskRequest, *TaskDetailResponse) error GetTasksList(context.Context, *TaskRequest, *TaskListResponse) error GetTask(context.Context, *TaskRequest, *TaskDetailResponse) error UpdateTask(context.Context, *TaskRequest, *TaskDetailResponse) error DeleteTask(context.Context, *TaskRequest, *TaskDetailResponse) error }
type UserDetailResponse ¶
type UserDetailResponse struct { // @inject_tag: json:"user_detail" form:"user_detail" UserDetail *UserModel `protobuf:"bytes,1,opt,name=user_detail,json=userDetail,proto3" json:"user_detail" form:"user_detail"` // @inject_tag: json:"code" form:"code" Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code" form:"code"` // contains filtered or unexported fields }
func (*UserDetailResponse) Descriptor
deprecated
func (*UserDetailResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserDetailResponse.ProtoReflect.Descriptor instead.
func (*UserDetailResponse) GetCode ¶
func (x *UserDetailResponse) GetCode() uint32
func (*UserDetailResponse) GetUserDetail ¶
func (x *UserDetailResponse) GetUserDetail() *UserModel
func (*UserDetailResponse) ProtoMessage ¶
func (*UserDetailResponse) ProtoMessage()
func (*UserDetailResponse) ProtoReflect ¶
func (x *UserDetailResponse) ProtoReflect() protoreflect.Message
func (*UserDetailResponse) Reset ¶
func (x *UserDetailResponse) Reset()
func (*UserDetailResponse) String ¶
func (x *UserDetailResponse) String() string
type UserModel ¶
type UserModel struct { // @inject_tag: json:"id" form:"id" Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id"` // @inject_tag: json:"user_name" form:"user_name" UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name" form:"user_name"` // @inject_tag: json:"created_at" CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at"` // @inject_tag: json:"updated_at" UpdatedAt int64 `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at"` // @inject_tag: json:"deleted_at" DeletedAt int64 `protobuf:"varint,5,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at"` // contains filtered or unexported fields }
func (*UserModel) Descriptor
deprecated
func (*UserModel) GetCreatedAt ¶
func (*UserModel) GetDeletedAt ¶
func (*UserModel) GetUpdatedAt ¶
func (*UserModel) GetUserName ¶
func (*UserModel) ProtoMessage ¶
func (*UserModel) ProtoMessage()
func (*UserModel) ProtoReflect ¶
func (x *UserModel) ProtoReflect() protoreflect.Message
type UserRequest ¶
type UserRequest struct { // @inject_tag: name:"user_name" json:"user_name" form:"user_name" uri:"user_name" UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name" name:"user_name" form:"user_name" uri:"user_name"` // @inject_tag: name:"password" json:"password" form:"password" uri:"password" Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password" name:"password" form:"password" uri:"password"` // @inject_tag: name:"password_confirm" json:"password_confirm" form:"password_confirm" uri:"password_confirm" PasswordConfirm string `` /* 167-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UserRequest) Descriptor
deprecated
func (*UserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserRequest.ProtoReflect.Descriptor instead.
func (*UserRequest) GetPassword ¶
func (x *UserRequest) GetPassword() string
func (*UserRequest) GetPasswordConfirm ¶
func (x *UserRequest) GetPasswordConfirm() string
func (*UserRequest) GetUserName ¶
func (x *UserRequest) GetUserName() string
func (*UserRequest) ProtoMessage ¶
func (*UserRequest) ProtoMessage()
func (*UserRequest) ProtoReflect ¶
func (x *UserRequest) ProtoReflect() protoreflect.Message
func (*UserRequest) Reset ¶
func (x *UserRequest) Reset()
func (*UserRequest) String ¶
func (x *UserRequest) String() string
type UserService ¶
type UserService interface { UserLogin(ctx context.Context, in *UserRequest, opts ...client.CallOption) (*UserDetailResponse, error) UserRegister(ctx context.Context, in *UserRequest, opts ...client.CallOption) (*UserDetailResponse, error) }
func NewUserService ¶
func NewUserService(name string, c client.Client) UserService
type UserServiceHandler ¶
type UserServiceHandler interface { UserLogin(context.Context, *UserRequest, *UserDetailResponse) error UserRegister(context.Context, *UserRequest, *UserDetailResponse) error }
Click to show internal directories.
Click to hide internal directories.