Add Category
This commit is contained in:
parent
82f72fc3eb
commit
4cade376b9
@ -138,10 +138,12 @@ func (h *CategoryHandler) GetCategory(c *gin.Context) {
|
|||||||
|
|
||||||
func (h *CategoryHandler) ListCategories(c *gin.Context) {
|
func (h *CategoryHandler) ListCategories(c *gin.Context) {
|
||||||
ctx := c.Request.Context()
|
ctx := c.Request.Context()
|
||||||
|
contextInfo := appcontext.FromGinContext(ctx)
|
||||||
|
|
||||||
req := &contract.ListCategoriesRequest{
|
req := &contract.ListCategoriesRequest{
|
||||||
Page: 1,
|
Page: 1,
|
||||||
Limit: 10,
|
Limit: 10,
|
||||||
|
OrganizationID: &contextInfo.OrganizationID,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse query parameters
|
// Parse query parameters
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user