Skip to content

workshop content#1

Open
yellowragz wants to merge 1 commit intomasterfrom
workshop
Open

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

Conversation

@yellowragz
Copy link
Owner

No description provided.

)

const (
// Collection queries
Copy link
Owner Author

Choose a reason for hiding this comment

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

bisa dipisah file queries.go indent querynya dibenerin, syntax sqlnya di uppercase aja

"github.com/tokopedia/tokopoints/tracer"
)

func GetNilaiSiswa(ctx context.Context, nim int64, sekolah, kelas string, mapel_id int64) (resp GetNilaiSiswaResponse, err error) {
Copy link
Owner Author

Choose a reason for hiding this comment

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

paramnya bisa jd satu struct terpisah GetNilaiSiswaParam

return resp, errors.AddTrace(err)
}

detailSekolah, err := nilai.GetDetailSekolah(ctx, nilai.Sekolah[0])
Copy link
Owner Author

Choose a reason for hiding this comment

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

GetDetailSekolah dan mappingGetNilaiSiswa bisa taruh setelah if else biar ga redundant

pb "github.com/tokopedia/grpc/code-review-workshop/proto"
)

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

Choose a reason for hiding this comment

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

param ctx klo ga dipake bisa dihilangkan

"github.com/tokopedia/code-review-workshop/tracer"
)

type NilaiSiswa struct {
Copy link
Owner Author

Choose a reason for hiding this comment

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

struct nya bisa dipisah file types.go

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