Documentation ¶
Index ¶
- Variables
- type Server
- func (s *Server) Authenticate(ctx context.Context, req *pb.AuthenticateRequest) (reply *pb.AuthenticateReply, err error)
- func (s *Server) Close() (err error)
- func (s *Server) CreateCaseData(ctx context.Context, req *pb.CreateCaseDataRequest) (data *pb.CaseData, err error)
- func (s *Server) CreateClass(ctx context.Context, req *pb.CreateClassRequest) (data *pb.Class, err error)
- func (s *Server) CreateMeasureDetail(ctx context.Context, req *pb.CreateMeasureDetailRequest) (data *pb.MeasureDetail, err error)
- func (s *Server) CreateMeasureResult(ctx context.Context, req *pb.CreateMeasureResultRequest) (data *pb.MeasureResult, err error)
- func (s *Server) CreateMoveData(ctx context.Context, req *pb.CreateMoveDataRequest) (data *pb.MoveData, err error)
- func (s *Server) CreateMovePrescription(ctx context.Context, req *pb.CreateMovePrescriptionRequest) (data *pb.MovePrescription, err error)
- func (s *Server) CreatePersonal(ctx context.Context, req *pb.CreatePersonalRequest) (data *pb.Personal, err error)
- func (s *Server) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (user *pb.User, err error)
- func (s *Server) CreateWork(ctx context.Context, req *pb.CreateWorkRequest) (data *pb.Work, err error)
- func (s *Server) CreateWorkSubmit(ctx context.Context, req *pb.CreateWorkSubmitRequest) (data *pb.WorkSubmit, err error)
- func (s *Server) DeleteCaseData(ctx context.Context, req *pb.DeleteCaseDataRequest) (data *pb.CaseData, err error)
- func (s *Server) DeleteClass(ctx context.Context, req *pb.DeleteClassRequest) (data *pb.Class, err error)
- func (s *Server) DeleteMeasureDetail(ctx context.Context, req *pb.DeleteMeasureDetailRequest) (data *pb.MeasureDetail, err error)
- func (s *Server) DeleteMeasureResult(ctx context.Context, req *pb.DeleteMeasureResultRequest) (data *pb.MeasureResult, err error)
- func (s *Server) DeleteMoveData(ctx context.Context, req *pb.DeleteMoveDataRequest) (data *pb.MoveData, err error)
- func (s *Server) DeleteMovePrescription(ctx context.Context, req *pb.DeleteMovePrescriptionRequest) (data *pb.MovePrescription, err error)
- func (s *Server) DeletePersonal(ctx context.Context, req *pb.DeletePersonalRequest) (data *pb.Personal, err error)
- func (s *Server) DeleteUser(ctx context.Context, req *pb.DeleteUserRequest) (user *pb.User, err error)
- func (s *Server) DeleteWork(ctx context.Context, req *pb.DeleteWorkRequest) (data *pb.Work, err error)
- func (s *Server) DeleteWorkSubmit(ctx context.Context, req *pb.DeleteWorkSubmitRequest) (data *pb.WorkSubmit, err error)
- func (s *Server) GetCaseData(ctx context.Context, req *pb.GetCaseDataRequest) (data *pb.CaseData, err error)
- func (s *Server) GetCaseDatas(ctx context.Context, req *pb.GetCaseDatasRequest) (reply *pb.GetCaseDatasReply, err error)
- func (s *Server) GetClass(ctx context.Context, req *pb.GetClassRequest) (data *pb.Class, err error)
- func (s *Server) GetClasses(ctx context.Context, req *pb.GetClassesRequest) (reply *pb.GetClassesReply, err error)
- func (s *Server) GetMeasureDetail(ctx context.Context, req *pb.GetMeasureDetailRequest) (data *pb.MeasureDetail, err error)
- func (s *Server) GetMeasureDetails(ctx context.Context, req *pb.GetMeasureDetailsRequest) (reply *pb.GetMeasureDetailsReply, err error)
- func (s *Server) GetMeasureResult(ctx context.Context, req *pb.GetMeasureResultRequest) (data *pb.MeasureResult, err error)
- func (s *Server) GetMeasureResults(ctx context.Context, req *pb.GetMeasureResultsRequest) (reply *pb.GetMeasureResultsReply, err error)
- func (s *Server) GetMoveData(ctx context.Context, req *pb.GetMoveDataRequest) (data *pb.MoveData, err error)
- func (s *Server) GetMoveDatas(ctx context.Context, req *pb.GetMoveDatasRequest) (reply *pb.GetMoveDatasReply, err error)
- func (s *Server) GetMovePrescription(ctx context.Context, req *pb.GetMovePrescriptionRequest) (data *pb.MovePrescription, err error)
- func (s *Server) GetMovePrescriptions(ctx context.Context, req *pb.GetMovePrescriptionsRequest) (reply *pb.GetMovePrescriptionsReply, err error)
- func (s *Server) GetPersonal(ctx context.Context, req *pb.GetPersonalRequest) (data *pb.Personal, err error)
- func (s *Server) GetPersonals(ctx context.Context, req *pb.GetPersonalsRequest) (reply *pb.GetPersonalsReply, err error)
- func (s *Server) GetUser(ctx context.Context, req *pb.GetUserRequest) (user *pb.User, err error)
- func (s *Server) GetUsers(ctx context.Context, req *pb.GetUsersRequest) (reply *pb.GetUsersReply, err error)
- func (s *Server) GetWork(ctx context.Context, req *pb.GetWorkRequest) (data *pb.Work, err error)
- func (s *Server) GetWorkSubmit(ctx context.Context, req *pb.GetWorkSubmitRequest) (data *pb.WorkSubmit, err error)
- func (s *Server) GetWorkSubmits(ctx context.Context, req *pb.GetWorkSubmitsRequest) (reply *pb.GetWorkSubmitsReply, err error)
- func (s *Server) GetWorks(ctx context.Context, req *pb.GetWorksRequest) (reply *pb.GetWorksReply, err error)
- func (s *Server) Login(ctx context.Context, req *pb.LoginRequest) (reply *pb.LoginReply, err error)
- func (s *Server) ModifyUserPassword(ctx context.Context, req *pb.ModifyUserPasswordRequest) (reply *pb.ModifyUserPasswordReply, err error)
- func (s *Server) Serve() (err error)
- func (s *Server) UpdateCaseData(ctx context.Context, req *pb.UpdateCaseDataRequest) (data *pb.CaseData, err error)
- func (s *Server) UpdateClass(ctx context.Context, req *pb.UpdateClassRequest) (data *pb.Class, err error)
- func (s *Server) UpdateMeasureDetail(ctx context.Context, req *pb.UpdateMeasureDetailRequest) (data *pb.MeasureDetail, err error)
- func (s *Server) UpdateMeasureResult(ctx context.Context, req *pb.UpdateMeasureResultRequest) (data *pb.MeasureResult, err error)
- func (s *Server) UpdateMoveData(ctx context.Context, req *pb.UpdateMoveDataRequest) (data *pb.MoveData, err error)
- func (s *Server) UpdateMovePrescription(ctx context.Context, req *pb.UpdateMovePrescriptionRequest) (data *pb.MovePrescription, err error)
- func (s *Server) UpdatePersonal(ctx context.Context, req *pb.UpdatePersonalRequest) (data *pb.Personal, err error)
- func (s *Server) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (user *pb.User, err error)
- func (s *Server) UpdateWork(ctx context.Context, req *pb.UpdateWorkRequest) (data *pb.Work, err error)
- func (s *Server) UpdateWorkSubmit(ctx context.Context, req *pb.UpdateWorkSubmitRequest) (data *pb.WorkSubmit, err error)
Constants ¶
This section is empty.
Variables ¶
var (
// RoleRoot 超级管理员角色
RoleRoot = "root"
)
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { pb.UnimplementedUserManagerServer pb.UnimplementedPersonalManagerServer pb.UnimplementedCaseDataManagerServer pb.UnimplementedClassManagerServer pb.UnimplementedMeasureDetailManagerServer pb.UnimplementedMeasureResultManagerServer pb.UnimplementedMoveDataManagerServer pb.UnimplementedMovePrescriptionManagerServer pb.UnimplementedWorkManagerServer pb.UnimplementedWorkSubmitManagerServer LogLevel string `long:"log-level" description:"the log level of logrus" default:"debug" env:"LOG_LEVEL"` // contains filtered or unexported fields }
func (*Server) Authenticate ¶
func (s *Server) Authenticate(ctx context.Context, req *pb.AuthenticateRequest) (reply *pb.AuthenticateReply, err error)
Authenticate 认证
func (*Server) CreateCaseData ¶
func (s *Server) CreateCaseData(ctx context.Context, req *pb.CreateCaseDataRequest) (data *pb.CaseData, err error)
CreateCaseData ...
func (*Server) CreateClass ¶
func (s *Server) CreateClass(ctx context.Context, req *pb.CreateClassRequest) (data *pb.Class, err error)
CreateClass ...
func (*Server) CreateMeasureDetail ¶
func (s *Server) CreateMeasureDetail(ctx context.Context, req *pb.CreateMeasureDetailRequest) (data *pb.MeasureDetail, err error)
CreateMeasureDetail ...
func (*Server) CreateMeasureResult ¶
func (s *Server) CreateMeasureResult(ctx context.Context, req *pb.CreateMeasureResultRequest) (data *pb.MeasureResult, err error)
CreateMeasureResult ...
func (*Server) CreateMoveData ¶
func (s *Server) CreateMoveData(ctx context.Context, req *pb.CreateMoveDataRequest) (data *pb.MoveData, err error)
CreateMoveData ...
func (*Server) CreateMovePrescription ¶
func (s *Server) CreateMovePrescription(ctx context.Context, req *pb.CreateMovePrescriptionRequest) (data *pb.MovePrescription, err error)
CreateMovePrescription ...
func (*Server) CreatePersonal ¶
func (s *Server) CreatePersonal(ctx context.Context, req *pb.CreatePersonalRequest) (data *pb.Personal, err error)
CreatePersonal 创建用户
func (*Server) CreateUser ¶
func (s *Server) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (user *pb.User, err error)
CreateUser 创建用户
func (*Server) CreateWork ¶
func (s *Server) CreateWork(ctx context.Context, req *pb.CreateWorkRequest) (data *pb.Work, err error)
CreateWork ...
func (*Server) CreateWorkSubmit ¶
func (s *Server) CreateWorkSubmit(ctx context.Context, req *pb.CreateWorkSubmitRequest) (data *pb.WorkSubmit, err error)
CreateWorkSubmit ...
func (*Server) DeleteCaseData ¶
func (s *Server) DeleteCaseData(ctx context.Context, req *pb.DeleteCaseDataRequest) (data *pb.CaseData, err error)
DeleteCaseData ...
func (*Server) DeleteClass ¶
func (s *Server) DeleteClass(ctx context.Context, req *pb.DeleteClassRequest) (data *pb.Class, err error)
DeleteClass ...
func (*Server) DeleteMeasureDetail ¶
func (s *Server) DeleteMeasureDetail(ctx context.Context, req *pb.DeleteMeasureDetailRequest) (data *pb.MeasureDetail, err error)
DeleteMeasureDetail ...
func (*Server) DeleteMeasureResult ¶
func (s *Server) DeleteMeasureResult(ctx context.Context, req *pb.DeleteMeasureResultRequest) (data *pb.MeasureResult, err error)
DeleteMeasureResult ...
func (*Server) DeleteMoveData ¶
func (s *Server) DeleteMoveData(ctx context.Context, req *pb.DeleteMoveDataRequest) (data *pb.MoveData, err error)
DeleteMoveData ...
func (*Server) DeleteMovePrescription ¶
func (s *Server) DeleteMovePrescription(ctx context.Context, req *pb.DeleteMovePrescriptionRequest) (data *pb.MovePrescription, err error)
DeleteMovePrescription ...
func (*Server) DeletePersonal ¶
func (s *Server) DeletePersonal(ctx context.Context, req *pb.DeletePersonalRequest) (data *pb.Personal, err error)
DeletePersonal 删除用户
func (*Server) DeleteUser ¶
func (s *Server) DeleteUser(ctx context.Context, req *pb.DeleteUserRequest) (user *pb.User, err error)
DeleteUser 删除用户
func (*Server) DeleteWork ¶
func (s *Server) DeleteWork(ctx context.Context, req *pb.DeleteWorkRequest) (data *pb.Work, err error)
DeleteWork ...
func (*Server) DeleteWorkSubmit ¶
func (s *Server) DeleteWorkSubmit(ctx context.Context, req *pb.DeleteWorkSubmitRequest) (data *pb.WorkSubmit, err error)
DeleteWorkSubmit ...
func (*Server) GetCaseData ¶
func (s *Server) GetCaseData(ctx context.Context, req *pb.GetCaseDataRequest) (data *pb.CaseData, err error)
GetCaseData ...
func (*Server) GetCaseDatas ¶
func (s *Server) GetCaseDatas(ctx context.Context, req *pb.GetCaseDatasRequest) (reply *pb.GetCaseDatasReply, err error)
GetCaseDatas ...
func (*Server) GetClasses ¶
func (s *Server) GetClasses(ctx context.Context, req *pb.GetClassesRequest) (reply *pb.GetClassesReply, err error)
GetClasses ...
func (*Server) GetMeasureDetail ¶
func (s *Server) GetMeasureDetail(ctx context.Context, req *pb.GetMeasureDetailRequest) (data *pb.MeasureDetail, err error)
GetMeasureDetail ...
func (*Server) GetMeasureDetails ¶
func (s *Server) GetMeasureDetails(ctx context.Context, req *pb.GetMeasureDetailsRequest) (reply *pb.GetMeasureDetailsReply, err error)
GetMeasureDetails ...
func (*Server) GetMeasureResult ¶
func (s *Server) GetMeasureResult(ctx context.Context, req *pb.GetMeasureResultRequest) (data *pb.MeasureResult, err error)
GetMeasureResult ...
func (*Server) GetMeasureResults ¶
func (s *Server) GetMeasureResults(ctx context.Context, req *pb.GetMeasureResultsRequest) (reply *pb.GetMeasureResultsReply, err error)
GetMeasureResults ...
func (*Server) GetMoveData ¶
func (s *Server) GetMoveData(ctx context.Context, req *pb.GetMoveDataRequest) (data *pb.MoveData, err error)
GetMoveData ...
func (*Server) GetMoveDatas ¶
func (s *Server) GetMoveDatas(ctx context.Context, req *pb.GetMoveDatasRequest) (reply *pb.GetMoveDatasReply, err error)
GetMoveDatas ...
func (*Server) GetMovePrescription ¶
func (s *Server) GetMovePrescription(ctx context.Context, req *pb.GetMovePrescriptionRequest) (data *pb.MovePrescription, err error)
GetMovePrescription ...
func (*Server) GetMovePrescriptions ¶
func (s *Server) GetMovePrescriptions(ctx context.Context, req *pb.GetMovePrescriptionsRequest) (reply *pb.GetMovePrescriptionsReply, err error)
GetMovePrescriptions ...
func (*Server) GetPersonal ¶
func (s *Server) GetPersonal(ctx context.Context, req *pb.GetPersonalRequest) (data *pb.Personal, err error)
GetPersonal 获取用户信息
func (*Server) GetPersonals ¶
func (s *Server) GetPersonals(ctx context.Context, req *pb.GetPersonalsRequest) (reply *pb.GetPersonalsReply, err error)
GetPersonals
func (*Server) GetUsers ¶
func (s *Server) GetUsers(ctx context.Context, req *pb.GetUsersRequest) (reply *pb.GetUsersReply, err error)
GetUsers
func (*Server) GetWorkSubmit ¶
func (s *Server) GetWorkSubmit(ctx context.Context, req *pb.GetWorkSubmitRequest) (data *pb.WorkSubmit, err error)
GetWorkSubmit ...
func (*Server) GetWorkSubmits ¶
func (s *Server) GetWorkSubmits(ctx context.Context, req *pb.GetWorkSubmitsRequest) (reply *pb.GetWorkSubmitsReply, err error)
GetWorkSubmits ...
func (*Server) GetWorks ¶
func (s *Server) GetWorks(ctx context.Context, req *pb.GetWorksRequest) (reply *pb.GetWorksReply, err error)
GetWorks ...
func (*Server) Login ¶
func (s *Server) Login(ctx context.Context, req *pb.LoginRequest) (reply *pb.LoginReply, err error)
Login 用户登录
func (*Server) ModifyUserPassword ¶
func (s *Server) ModifyUserPassword(ctx context.Context, req *pb.ModifyUserPasswordRequest) (reply *pb.ModifyUserPasswordReply, err error)
用户修改密码
func (*Server) UpdateCaseData ¶
func (s *Server) UpdateCaseData(ctx context.Context, req *pb.UpdateCaseDataRequest) (data *pb.CaseData, err error)
UpdateCaseData ...
func (*Server) UpdateClass ¶
func (s *Server) UpdateClass(ctx context.Context, req *pb.UpdateClassRequest) (data *pb.Class, err error)
UpdateClass ...
func (*Server) UpdateMeasureDetail ¶
func (s *Server) UpdateMeasureDetail(ctx context.Context, req *pb.UpdateMeasureDetailRequest) (data *pb.MeasureDetail, err error)
UpdateMeasureDetail ...
func (*Server) UpdateMeasureResult ¶
func (s *Server) UpdateMeasureResult(ctx context.Context, req *pb.UpdateMeasureResultRequest) (data *pb.MeasureResult, err error)
UpdateMeasureResult ...
func (*Server) UpdateMoveData ¶
func (s *Server) UpdateMoveData(ctx context.Context, req *pb.UpdateMoveDataRequest) (data *pb.MoveData, err error)
UpdateMoveData ...
func (*Server) UpdateMovePrescription ¶
func (s *Server) UpdateMovePrescription(ctx context.Context, req *pb.UpdateMovePrescriptionRequest) (data *pb.MovePrescription, err error)
UpdateMovePrescription ...
func (*Server) UpdatePersonal ¶
func (s *Server) UpdatePersonal(ctx context.Context, req *pb.UpdatePersonalRequest) (data *pb.Personal, err error)
UpdatePersonal 更新用户信息
func (*Server) UpdateUser ¶
func (s *Server) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (user *pb.User, err error)
UpdateUser 更新用户信息
func (*Server) UpdateWork ¶
func (s *Server) UpdateWork(ctx context.Context, req *pb.UpdateWorkRequest) (data *pb.Work, err error)
UpdateWork ...
func (*Server) UpdateWorkSubmit ¶
func (s *Server) UpdateWorkSubmit(ctx context.Context, req *pb.UpdateWorkSubmitRequest) (data *pb.WorkSubmit, err error)
UpdateWorkSubmit ...