|
@@ -23,6 +23,7 @@ func init() {
|
|
|
|
|
|
type Study struct {
|
|
|
basicClient pb.BasicClient
|
|
|
+ studyClient pb.StudyClient
|
|
|
}
|
|
|
|
|
|
func (s *Study) Setup() {
|
|
@@ -52,3 +53,12 @@ func (s *Study) GetSoftwareInfo() *pb.SoftwareInfoReply {
|
|
|
}
|
|
|
return r
|
|
|
}
|
|
|
+
|
|
|
+func (s *Study) CreateStudy(ctx context.Context, in *pb.StudyRequest) (*pb.StudyReply, error) {
|
|
|
+ r, err := s.studyClient.CreateStudy(context.Background(), in)
|
|
|
+ if err != nil {
|
|
|
+ slog.Error("[rpc]CreateStudy failed", "err", err)
|
|
|
+ return r, err
|
|
|
+ }
|
|
|
+ return r, nil
|
|
|
+}
|