room.bm.go 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Code generated by protoc-gen-bm v0.1, DO NOT EDIT.
  2. // source: room.proto
  3. /*
  4. Package v1 is a generated blademaster stub package.
  5. This code was generated with go-common/app/tool/bmgen/protoc-gen-bm v0.1.
  6. It is generated from these files:
  7. room.proto
  8. */
  9. package v1
  10. import (
  11. "context"
  12. bm "go-common/library/net/http/blademaster"
  13. "go-common/library/net/http/blademaster/binding"
  14. )
  15. // to suppressed 'imported but not used warning'
  16. var _ *bm.Context
  17. var _ context.Context
  18. var _ binding.StructValidator
  19. var PathRoomMngGetSecondVerifyListWithPics = "/live.liveadmin.v1.roomMng/getSecondVerifyListWithPics"
  20. // =================
  21. // RoomMng Interface
  22. // =================
  23. type RoomMngBMServer interface {
  24. // 获取带有图片地址的二次审核列表
  25. // `method:"GET" internal:"true" `
  26. GetSecondVerifyListWithPics(ctx context.Context, req *RoomMngGetSecondVerifyListReq) (resp *RoomMngGetSecondVerifyListResp, err error)
  27. }
  28. var v1RoomMngSvc RoomMngBMServer
  29. func roomMngGetSecondVerifyListWithPics(c *bm.Context) {
  30. p := new(RoomMngGetSecondVerifyListReq)
  31. if err := c.BindWith(p, binding.Default(c.Request.Method, c.Request.Header.Get("Content-Type"))); err != nil {
  32. return
  33. }
  34. resp, err := v1RoomMngSvc.GetSecondVerifyListWithPics(c, p)
  35. c.JSON(resp, err)
  36. }
  37. // RegisterV1RoomMngService Register the blademaster route with middleware map
  38. // midMap is the middleware map, the key is defined in proto
  39. func RegisterV1RoomMngService(e *bm.Engine, svc RoomMngBMServer, midMap map[string]bm.HandlerFunc) {
  40. v1RoomMngSvc = svc
  41. e.GET("/xlive/internal/live-admin/v1/roomMng/getSecondVerifyListWithPics", roomMngGetSecondVerifyListWithPics)
  42. }
  43. // RegisterRoomMngBMServer Register the blademaster route
  44. func RegisterRoomMngBMServer(e *bm.Engine, server RoomMngBMServer) {
  45. v1RoomMngSvc = server
  46. e.GET("/live.liveadmin.v1.roomMng/getSecondVerifyListWithPics", roomMngGetSecondVerifyListWithPics)
  47. }