Skip to content

workshop content#1

Open
therizk wants to merge 1 commit intomasterfrom
workshop
Open

workshop content#1
therizk wants to merge 1 commit intomasterfrom
workshop

Conversation

@therizk
Copy link
Owner

@therizk therizk commented Dec 16, 2020

No description provided.


const (
// Collection queries
QueryGetNilaiSiswaByID = `select nim, mapel_id, nilai, sekolah, kelas

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mungkin bisa dirapikan querynya

return resp, errors.AddTrace(err)
}

detailSekolah, err := nilai.GetDetailSekolah(ctx, nilai.Sekolah[0])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kasih pengecekan len sekolah

return resp, errors.AddTrace(err)
}

detailSekolah, err := nilai.GetDetailSekolah(ctx, nilai.Sekolah[0])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flow GetDetailSekolah sama mappingGetNilaiSiswa bisa di taro diluar if aja. sakolanya dipake di ketiga flow ifnya

)

func (s *server) GetNilaiSiswa(ctx context.Context, req *pb.GetNilaiSiswaRequest) (resp *pb.GetNilaiSiswaResponse, err error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kayanya kurang tracer.StartSpanFromContext

return resp, errors.AddTrace(err)
}

detailSekolah, err := nilai.GetDetailSekolah(ctx, nilai.Sekolah[0])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ini functionnya kok gak ada?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants