From 51693db30d0cdad6ae54dff6fc56597ea4758a79 Mon Sep 17 00:00:00 2001 From: mehdi Date: Wed, 15 May 2024 11:08:39 +0330 Subject: [PATCH] fix(niki): Completion of swagger --- delivery/http_server/admin/admin/login.go | 9 + delivery/http_server/admin/admin/register.go | 9 + .../http_server/admin/kind_box_req/accept.go | 11 + .../admin/kind_box_req/assign_sender_agent.go | 11 + .../http_server/admin/kind_box_req/deliver.go | 10 + .../http_server/admin/kind_box_req/get_all.go | 11 + .../http_server/admin/kind_box_req/reject.go | 11 + .../benefactor/address/add_address.go | 4 +- .../benefactor/address/get_all_cities.go | 2 +- .../benefactor/address/get_all_provinces.go | 2 +- .../http_server/benefactor/kind_box/get.go | 10 + .../benefactor/kind_box/get_all.go | 9 + .../benefactor/kind_box_req/add.go | 10 + .../benefactor/kind_box_req/get.go | 10 + docs/docs.go | 958 ++++++++++- docs/swagger.json | 958 ++++++++++- docs/swagger.yaml | 626 ++++++- main.go | 7 +- mise.log | 1520 +++++++++++++++++ 19 files changed, 4164 insertions(+), 24 deletions(-) diff --git a/delivery/http_server/admin/admin/login.go b/delivery/http_server/admin/admin/login.go index 5dd3021..3cf82f1 100644 --- a/delivery/http_server/admin/admin/login.go +++ b/delivery/http_server/admin/admin/login.go @@ -8,6 +8,15 @@ import ( "github.com/labstack/echo/v4" ) +// LoginByPhoneNumber godoc +// @Summary Login By PhoneNumber admin +// @Tags admin +// @Accept json +// @Produce json +// @Param Request body adminserviceparam.LoginWithPhoneNumberRequest true "Login By PhoneNumber admin" +// @Success 200 {object} adminserviceparam.LoginWithPhoneNumberResponse +// @Failure 400 {string} "Bad request" +// @Router /admins/login-by-phone [post] func (h Handler) LoginByPhoneNumber(c echo.Context) error { var req adminserviceparam.LoginWithPhoneNumberRequest diff --git a/delivery/http_server/admin/admin/register.go b/delivery/http_server/admin/admin/register.go index 6ba5a0f..2bd40bf 100644 --- a/delivery/http_server/admin/admin/register.go +++ b/delivery/http_server/admin/admin/register.go @@ -8,6 +8,15 @@ import ( "github.com/labstack/echo/v4" ) +// Register godoc +// @Summary super-admin register admin +// @Tags admin +// @Accept json +// @Produce json +// @Param Request body adminserviceparam.RegisterRequest true "super-admin register admin" +// @Success 200 {object} adminserviceparam.RegisterResponse +// @Failure 400 {string} "Bad request" +// @Router /admins/register [post] func (h Handler) Register(c echo.Context) error { var req adminserviceparam.RegisterRequest diff --git a/delivery/http_server/admin/kind_box_req/accept.go b/delivery/http_server/admin/kind_box_req/accept.go index 0f513af..807650b 100644 --- a/delivery/http_server/admin/kind_box_req/accept.go +++ b/delivery/http_server/admin/kind_box_req/accept.go @@ -10,6 +10,17 @@ import ( "github.com/labstack/echo/v4" ) +// Accept godoc +// @Summary admin Accept kindboxreq +// @Tags kindboxreq +// @Accept json +// @Produce json +// @Param id path int true "Id" +// @Param Request body param.KindBoxReqAcceptRequest true "admin Accept kindboxreq" +// @Success 200 {object} param.KindBoxReqAcceptResponse +// @Failure 400 {string} "Bad request" +// @Router /admin/kindboxreqs/accept-kind-box-req/{id} [patch] +// @Security AuthBearerAdmin func (h Handler) Accept(c echo.Context) error { var req param.KindBoxReqAcceptRequest if bErr := c.Bind(&req); bErr != nil { diff --git a/delivery/http_server/admin/kind_box_req/assign_sender_agent.go b/delivery/http_server/admin/kind_box_req/assign_sender_agent.go index 337a11b..49f9e40 100644 --- a/delivery/http_server/admin/kind_box_req/assign_sender_agent.go +++ b/delivery/http_server/admin/kind_box_req/assign_sender_agent.go @@ -10,6 +10,17 @@ import ( echo "github.com/labstack/echo/v4" ) +// AssignSenderAgent godoc +// @Summary admin AssignSenderAgent kindboxreq +// @Tags kindboxreq +// @Accept json +// @Produce json +// @Param id path int true "Id" +// @Param Request body param.AssignSenderRequest true "admin AssignSenderAgent kindboxreq" +// @Success 200 {object} param.DeliverKindBoxReqResponse +// @Failure 400 {string} "Bad request" +// @Router /admin/kindboxreqs/assign-sender-agent/{id} [patch] +// @Security AuthBearerAdmin func (h Handler) AssignSenderAgent(c echo.Context) error { var req param.AssignSenderRequest diff --git a/delivery/http_server/admin/kind_box_req/deliver.go b/delivery/http_server/admin/kind_box_req/deliver.go index 05dc5b5..dcf86a1 100644 --- a/delivery/http_server/admin/kind_box_req/deliver.go +++ b/delivery/http_server/admin/kind_box_req/deliver.go @@ -10,6 +10,16 @@ import ( echo "github.com/labstack/echo/v4" ) +// Deliver godoc +// @Summary admin Deliver kindboxreq +// @Tags kindboxreq +// @Accept json +// @Produce json +// @Param id path int true "Id" +// @Success 200 {object} param.DeliverKindBoxReqResponse +// @Failure 400 {string} "Bad request" +// @Router /admin/kindboxreqs/deliver-kind-box-req/{id} [patch] +// @Security AuthBearerAdmin func (h Handler) Deliver(c echo.Context) error { var req param.DeliverKindBoxReqRequest diff --git a/delivery/http_server/admin/kind_box_req/get_all.go b/delivery/http_server/admin/kind_box_req/get_all.go index f4b0573..705cead 100644 --- a/delivery/http_server/admin/kind_box_req/get_all.go +++ b/delivery/http_server/admin/kind_box_req/get_all.go @@ -10,6 +10,17 @@ import ( echo "github.com/labstack/echo/v4" ) +// GetAll godoc +// @Summary admin get All kindboxreq +// @Tags kindboxreq +// @Accept json +// @Produce json +// @Param page_number query int false "page_number" +// @Param page_size query int false "page_size" +// @Success 200 {object} param.KindBoxReqGetAllResponse +// @Failure 400 {string} "Bad request" +// @Router /admin/kindboxreqs/ [get] +// @Security AuthBearerAdmin func (h Handler) GetAll(c echo.Context) error { var req param.KindBoxReqGetAllRequest if bErr := c.Bind(&req); bErr != nil { diff --git a/delivery/http_server/admin/kind_box_req/reject.go b/delivery/http_server/admin/kind_box_req/reject.go index ee31f8d..2927703 100644 --- a/delivery/http_server/admin/kind_box_req/reject.go +++ b/delivery/http_server/admin/kind_box_req/reject.go @@ -10,6 +10,17 @@ import ( "github.com/labstack/echo/v4" ) +// Reject godoc +// @Summary admin Reject kindboxreq +// @Tags kindboxreq +// @Accept json +// @Produce json +// @Param id path int true "Id" +// @Param Request body param.KindBoxReqRejectRequest true "admin Reject kindboxreq" +// @Success 200 {object} param.KindBoxReqRejectResponse +// @Failure 400 {string} "Bad request" +// @Router /admin/kindboxreqs/reject-kind-box-req/{id} [patch] +// @Security AuthBearerAdmin func (h Handler) Reject(c echo.Context) error { var req param.KindBoxReqRejectRequest if bErr := c.Bind(&req); bErr != nil { diff --git a/delivery/http_server/benefactor/address/add_address.go b/delivery/http_server/benefactor/address/add_address.go index f228b40..2cb5657 100644 --- a/delivery/http_server/benefactor/address/add_address.go +++ b/delivery/http_server/benefactor/address/add_address.go @@ -11,14 +11,14 @@ import ( // AddAddress godoc // @Summary Add Address benefactor -// @Tags benefactor +// @Tags address // @Accept json // @Produce json // @Param Request body param.BenefactorAddAddressRequest true "Add Address benefactor" // @Success 200 {object} param.BenefactorAddAddressResponse // @Failure 400 {string} "Bad request" // @Router /address/ [post] -// @Security AuthBearer +// @Security AuthBearerBenefactor func (h Handler) AddAddress(c echo.Context) error { req := param.BenefactorAddAddressRequest{} if bErr := c.Bind(&req); bErr != nil { diff --git a/delivery/http_server/benefactor/address/get_all_cities.go b/delivery/http_server/benefactor/address/get_all_cities.go index cceb597..9bf9f7b 100644 --- a/delivery/http_server/benefactor/address/get_all_cities.go +++ b/delivery/http_server/benefactor/address/get_all_cities.go @@ -10,7 +10,7 @@ import ( // GetAllCities godoc // @Summary get all cities -// @Tags benefactor +// @Tags address // @Accept json // @Produce json // @Success 200 {object} addressparam.GetAllCitiesResponse diff --git a/delivery/http_server/benefactor/address/get_all_provinces.go b/delivery/http_server/benefactor/address/get_all_provinces.go index 2bc9b45..9d86632 100644 --- a/delivery/http_server/benefactor/address/get_all_provinces.go +++ b/delivery/http_server/benefactor/address/get_all_provinces.go @@ -10,7 +10,7 @@ import ( // GetAllProvinces godoc // @Summary get all provinces -// @Tags benefactor +// @Tags address // @Accept json // @Produce json // @Success 200 {object} addressparam.GetAllProvincesResponse diff --git a/delivery/http_server/benefactor/kind_box/get.go b/delivery/http_server/benefactor/kind_box/get.go index 096f99b..8a67719 100644 --- a/delivery/http_server/benefactor/kind_box/get.go +++ b/delivery/http_server/benefactor/kind_box/get.go @@ -8,6 +8,16 @@ import ( echo "github.com/labstack/echo/v4" ) +// Get godoc +// @Summary benefactor get kindbox +// @Tags kindbox +// @Accept json +// @Produce json +// @Param id path int true "id" +// @Success 200 {object} param.KindBoxGetResponse +// @Failure 400 {string} "Bad request" +// @Router /benefactor/kindboxes/{id} [get] +// @Security AuthBearerBenefactor func (h Handler) Get(c echo.Context) error { var req param.KindBoxGetRequest if bErr := c.Bind(&req); bErr != nil { diff --git a/delivery/http_server/benefactor/kind_box/get_all.go b/delivery/http_server/benefactor/kind_box/get_all.go index 52b2a21..5a87e28 100644 --- a/delivery/http_server/benefactor/kind_box/get_all.go +++ b/delivery/http_server/benefactor/kind_box/get_all.go @@ -8,6 +8,15 @@ import ( echo "github.com/labstack/echo/v4" ) +// GetAll godoc +// @Summary benefactor get All kindbox +// @Tags kindbox +// @Accept json +// @Produce json +// @Success 200 {object} param.KindBoxGetResponse +// @Failure 400 {string} "Bad request" +// @Router /benefactor/kindboxes/ [get] +// @Security AuthBearerBenefactor func (h Handler) GetAll(c echo.Context) error { var req param.KindBoxGetAllRequest if bErr := c.Bind(&req); bErr != nil { diff --git a/delivery/http_server/benefactor/kind_box_req/add.go b/delivery/http_server/benefactor/kind_box_req/add.go index a25fbb7..9994abc 100644 --- a/delivery/http_server/benefactor/kind_box_req/add.go +++ b/delivery/http_server/benefactor/kind_box_req/add.go @@ -11,6 +11,16 @@ import ( echo "github.com/labstack/echo/v4" ) +// Add godoc +// @Summary benefactor Add kindboxreq +// @Tags kindboxreq +// @Accept json +// @Produce json +// @Param Request body param.KindBoxReqAddRequest true "benefactor Add kindboxreq" +// @Success 200 {object} param.KindBoxReqAddResponse +// @Failure 400 {string} "Bad request" +// @Router /benefactor/kindboxreqs/ [post] +// @Security AuthBearerBenefactor func (h Handler) Add(c echo.Context) error { req := param.KindBoxReqAddRequest{} if err := c.Bind(&req); err != nil { diff --git a/delivery/http_server/benefactor/kind_box_req/get.go b/delivery/http_server/benefactor/kind_box_req/get.go index d320959..e1e75cd 100644 --- a/delivery/http_server/benefactor/kind_box_req/get.go +++ b/delivery/http_server/benefactor/kind_box_req/get.go @@ -9,6 +9,16 @@ import ( "github.com/labstack/echo/v4" ) +// Get godoc +// @Summary benefactor get kindboxreq +// @Tags kindboxreq +// @Accept json +// @Produce json +// @Param id path int true "Id" +// @Success 200 {object} param.KindBoxReqGetResponse +// @Failure 400 {string} "Bad request" +// @Router /benefactor/kindboxreqs/{id} [get] +// @Security AuthBearerBenefactor func (h Handler) Get(c echo.Context) error { var req param.KindBoxReqGetRequest if bErr := echo.PathParamsBinder(c).Uint("id", &req.KindBoxReqID).BindError(); bErr != nil { diff --git a/docs/docs.go b/docs/docs.go index f433bd4..c179811 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -19,7 +19,7 @@ const docTemplate = `{ "post": { "security": [ { - "AuthBearer": [] + "AuthBearerBenefactor": [] } ], "consumes": [ @@ -29,7 +29,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "benefactor" + "address" ], "summary": "Add Address benefactor", "parameters": [ @@ -68,7 +68,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "benefactor" + "address" ], "summary": "get all cities", "responses": { @@ -96,7 +96,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "benefactor" + "address" ], "summary": "get all provinces", "responses": { @@ -115,6 +115,487 @@ const docTemplate = `{ } } }, + "/admin/kindboxreqs/": { + "get": { + "security": [ + { + "AuthBearerAdmin": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "admin get All kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "page_number", + "name": "page_number", + "in": "query" + }, + { + "type": "integer", + "description": "page_size", + "name": "page_size", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.KindBoxReqGetAllResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admin/kindboxreqs/accept-kind-box-req/{id}": { + "patch": { + "security": [ + { + "AuthBearerAdmin": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "admin Accept kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "Id", + "name": "id", + "in": "path", + "required": true + }, + { + "description": "admin Accept kindboxreq", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.KindBoxReqAcceptRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.KindBoxReqAcceptResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admin/kindboxreqs/assign-sender-agent/{id}": { + "patch": { + "security": [ + { + "AuthBearerAdmin": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "admin AssignSenderAgent kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "Id", + "name": "id", + "in": "path", + "required": true + }, + { + "description": "admin AssignSenderAgent kindboxreq", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.AssignSenderRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.DeliverKindBoxReqResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admin/kindboxreqs/deliver-kind-box-req/{id}": { + "patch": { + "security": [ + { + "AuthBearerAdmin": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "admin Deliver kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "Id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.DeliverKindBoxReqResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admin/kindboxreqs/reject-kind-box-req/{id}": { + "patch": { + "security": [ + { + "AuthBearerAdmin": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "admin Reject kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "Id", + "name": "id", + "in": "path", + "required": true + }, + { + "description": "admin Reject kindboxreq", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.KindBoxReqRejectRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.KindBoxReqRejectResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admins/login-by-phone": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "admin" + ], + "summary": "Login By PhoneNumber admin", + "parameters": [ + { + "description": "Login By PhoneNumber admin", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminserviceparam.LoginWithPhoneNumberRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminserviceparam.LoginWithPhoneNumberResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admins/register": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "admin" + ], + "summary": "super-admin register admin", + "parameters": [ + { + "description": "super-admin register admin", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminserviceparam.RegisterRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminserviceparam.RegisterResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/benefactor/kindboxes/": { + "get": { + "security": [ + { + "AuthBearerBenefactor": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindbox" + ], + "summary": "benefactor get All kindbox", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/benefactorkindboxparam.KindBoxGetResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/benefactor/kindboxes/{id}": { + "get": { + "security": [ + { + "AuthBearerBenefactor": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindbox" + ], + "summary": "benefactor get kindbox", + "parameters": [ + { + "type": "integer", + "description": "id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/benefactorkindboxparam.KindBoxGetResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/benefactor/kindboxreqs/": { + "post": { + "security": [ + { + "AuthBearerBenefactor": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "benefactor Add kindboxreq", + "parameters": [ + { + "description": "benefactor Add kindboxreq", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/benefactorkindboxreqparam.KindBoxReqAddRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/benefactorkindboxreqparam.KindBoxReqAddResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/benefactor/kindboxreqs/{id}": { + "get": { + "security": [ + { + "AuthBearerBenefactor": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "benefactor get kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "Id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/benefactorkindboxreqparam.KindBoxReqGetResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, "/benefactor/login-register": { "post": { "consumes": [ @@ -258,6 +739,181 @@ const docTemplate = `{ } } }, + "adminkindboxreqparam.AssignSenderRequest": { + "type": "object", + "properties": { + "kind_box_req_id": { + "type": "integer" + }, + "sender_agent_id": { + "type": "integer" + } + } + }, + "adminkindboxreqparam.DeliverKindBoxReqResponse": { + "type": "object" + }, + "adminkindboxreqparam.KindBoxReqAcceptRequest": { + "type": "object", + "properties": { + "count_accepted": { + "type": "integer" + }, + "id": { + "type": "integer" + } + } + }, + "adminkindboxreqparam.KindBoxReqAcceptResponse": { + "type": "object", + "properties": { + "count_accepted": { + "type": "integer" + }, + "count_requested": { + "type": "integer" + }, + "deliver_address_id": { + "type": "integer" + }, + "deliver_refer_date": { + "type": "string" + }, + "kind_box_req_id": { + "type": "integer" + }, + "kind_box_req_status": { + "$ref": "#/definitions/entity.KindBoxReqStatus" + } + } + }, + "adminkindboxreqparam.KindBoxReqGetAllResponse": { + "type": "object", + "properties": { + "allKindBoxReq": { + "type": "array", + "items": { + "$ref": "#/definitions/entity.KindBoxReq" + } + }, + "pagination": { + "$ref": "#/definitions/param.PaginationResponse" + } + } + }, + "adminkindboxreqparam.KindBoxReqRejectRequest": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "id": { + "type": "integer" + } + } + }, + "adminkindboxreqparam.KindBoxReqRejectResponse": { + "type": "object", + "properties": { + "benefactor_id": { + "type": "integer" + }, + "count_requested": { + "type": "integer" + }, + "deliver_address_id": { + "type": "integer" + }, + "deliver_refer_date": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "kind_box_type": { + "$ref": "#/definitions/entity.KindBoxType" + }, + "status": { + "$ref": "#/definitions/entity.KindBoxReqStatus" + } + } + }, + "adminserviceparam.LoginWithPhoneNumberRequest": { + "type": "object", + "properties": { + "password": { + "type": "string" + }, + "phone_number": { + "type": "string" + } + } + }, + "adminserviceparam.LoginWithPhoneNumberResponse": { + "type": "object", + "properties": { + "admin": { + "$ref": "#/definitions/entity.Admin" + }, + "tokens": { + "$ref": "#/definitions/adminserviceparam.Tokens" + } + } + }, + "adminserviceparam.RegisterRequest": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "email": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "gender": { + "$ref": "#/definitions/entity.Gender" + }, + "last_name": { + "type": "string" + }, + "password": { + "type": "string" + }, + "phone_number": { + "type": "string" + }, + "role": { + "$ref": "#/definitions/entity.AdminRole" + }, + "status": { + "$ref": "#/definitions/entity.AdminStatus" + } + } + }, + "adminserviceparam.RegisterResponse": { + "type": "object", + "properties": { + "admin": { + "$ref": "#/definitions/entity.Admin" + } + } + }, + "adminserviceparam.Tokens": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "refresh_token": { + "type": "string" + } + } + }, "benefactoreparam.BenefactroInfo": { "type": "object", "properties": { @@ -336,6 +992,122 @@ const docTemplate = `{ } } }, + "benefactorkindboxparam.KindBoxGetResponse": { + "type": "object", + "properties": { + "amount": { + "type": "integer" + }, + "benefactorID": { + "type": "integer" + }, + "deliverAddressID": { + "type": "integer" + }, + "deliverReferDate": { + "type": "string" + }, + "deliveredAt": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "kindBoxReqID": { + "type": "integer" + }, + "receiverAgentID": { + "type": "integer" + }, + "returnAddressID": { + "type": "integer" + }, + "returnReferDate": { + "type": "string" + }, + "returnedAt": { + "type": "string" + }, + "senderAgentID": { + "type": "integer" + }, + "serialNumber": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/entity.KindBoxStatus" + }, + "type": { + "$ref": "#/definitions/entity.KindBoxType" + } + } + }, + "benefactorkindboxreqparam.KindBoxReqAddRequest": { + "type": "object", + "properties": { + "benefactor_id": { + "type": "integer" + }, + "count_requested": { + "type": "integer" + }, + "deliver_address_id": { + "type": "integer" + }, + "deliver_refer_date": { + "type": "string" + }, + "type_id": { + "$ref": "#/definitions/entity.KindBoxType" + } + } + }, + "benefactorkindboxreqparam.KindBoxReqAddResponse": { + "type": "object", + "properties": { + "kind_box_req": { + "$ref": "#/definitions/entity.KindBoxReq" + } + } + }, + "benefactorkindboxreqparam.KindBoxReqGetResponse": { + "type": "object", + "properties": { + "benefactorID": { + "type": "integer" + }, + "countAccepted": { + "type": "integer" + }, + "countRequested": { + "type": "integer" + }, + "deliverAddressID": { + "type": "integer" + }, + "deliverReferDate": { + "type": "string" + }, + "deliveredAt": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "kindBoxType": { + "$ref": "#/definitions/entity.KindBoxType" + }, + "senderAgentID": { + "type": "integer" + }, + "status": { + "$ref": "#/definitions/entity.KindBoxReqStatus" + } + } + }, "entity.Address": { "type": "object", "properties": { @@ -368,6 +1140,65 @@ const docTemplate = `{ } } }, + "entity.Admin": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "email": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "gender": { + "$ref": "#/definitions/entity.Gender" + }, + "id": { + "type": "integer" + }, + "lastName": { + "type": "string" + }, + "password": { + "type": "string" + }, + "phoneNumber": { + "type": "string" + }, + "role": { + "$ref": "#/definitions/entity.AdminRole" + }, + "status": { + "$ref": "#/definitions/entity.AdminStatus" + } + } + }, + "entity.AdminRole": { + "type": "integer", + "enum": [ + 1, + 2, + 3 + ], + "x-enum-varnames": [ + "AdminSuperAdminRole", + "AdminAdminRole", + "AdminAgentRole" + ] + }, + "entity.AdminStatus": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-varnames": [ + "AdminActiveStatus", + "AdminInactiveStatus" + ] + }, "entity.City": { "type": "object", "properties": { @@ -382,6 +1213,102 @@ const docTemplate = `{ } } }, + "entity.Gender": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-varnames": [ + "MaleGender", + "FemaleGender" + ] + }, + "entity.KindBoxReq": { + "type": "object", + "properties": { + "benefactorID": { + "type": "integer" + }, + "countAccepted": { + "type": "integer" + }, + "countRequested": { + "type": "integer" + }, + "deliverAddressID": { + "type": "integer" + }, + "deliverReferDate": { + "type": "string" + }, + "deliveredAt": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "kindBoxType": { + "$ref": "#/definitions/entity.KindBoxType" + }, + "senderAgentID": { + "type": "integer" + }, + "status": { + "$ref": "#/definitions/entity.KindBoxReqStatus" + } + } + }, + "entity.KindBoxReqStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ], + "x-enum-varnames": [ + "KindBoxReqPendingStatus", + "KindBoxReqAcceptedStatus", + "KindBoxReqAssignedSenderAgentStatus", + "KindBoxReqRejectedStatus", + "KindBoxReqDeliveredStatus" + ] + }, + "entity.KindBoxStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ], + "x-enum-varnames": [ + "KindBoxDeliveredStatus", + "KindBoxReadyToReturnStatus", + "KindBoxAssignedReceiverAgentStatus", + "KindBoxReturnedStatus", + "KindBoxEnumeratedStatus" + ] + }, + "entity.KindBoxType": { + "type": "integer", + "enum": [ + 1, + 2, + 3 + ], + "x-enum-varnames": [ + "KindBoxOnTable", + "KindBoxCylindrical", + "KindBoxStandUp" + ] + }, "entity.Province": { "type": "object", "properties": { @@ -392,12 +1319,31 @@ const docTemplate = `{ "type": "string" } } + }, + "param.PaginationResponse": { + "type": "object", + "properties": { + "pageNumber": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "total": { + "type": "integer" + } + } } }, "securityDefinitions": { - "AuthBearer": { + "AuthBearerAdmin": { "type": "apiKey", - "name": "Authorization", + "name": "Authorization admin", + "in": "header" + }, + "AuthBearerBenefactor": { + "type": "apiKey", + "name": "Authorization Benefactor", "in": "header" } } diff --git a/docs/swagger.json b/docs/swagger.json index 734e84d..120bbcd 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -8,7 +8,7 @@ "post": { "security": [ { - "AuthBearer": [] + "AuthBearerBenefactor": [] } ], "consumes": [ @@ -18,7 +18,7 @@ "application/json" ], "tags": [ - "benefactor" + "address" ], "summary": "Add Address benefactor", "parameters": [ @@ -57,7 +57,7 @@ "application/json" ], "tags": [ - "benefactor" + "address" ], "summary": "get all cities", "responses": { @@ -85,7 +85,7 @@ "application/json" ], "tags": [ - "benefactor" + "address" ], "summary": "get all provinces", "responses": { @@ -104,6 +104,487 @@ } } }, + "/admin/kindboxreqs/": { + "get": { + "security": [ + { + "AuthBearerAdmin": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "admin get All kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "page_number", + "name": "page_number", + "in": "query" + }, + { + "type": "integer", + "description": "page_size", + "name": "page_size", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.KindBoxReqGetAllResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admin/kindboxreqs/accept-kind-box-req/{id}": { + "patch": { + "security": [ + { + "AuthBearerAdmin": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "admin Accept kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "Id", + "name": "id", + "in": "path", + "required": true + }, + { + "description": "admin Accept kindboxreq", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.KindBoxReqAcceptRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.KindBoxReqAcceptResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admin/kindboxreqs/assign-sender-agent/{id}": { + "patch": { + "security": [ + { + "AuthBearerAdmin": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "admin AssignSenderAgent kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "Id", + "name": "id", + "in": "path", + "required": true + }, + { + "description": "admin AssignSenderAgent kindboxreq", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.AssignSenderRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.DeliverKindBoxReqResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admin/kindboxreqs/deliver-kind-box-req/{id}": { + "patch": { + "security": [ + { + "AuthBearerAdmin": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "admin Deliver kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "Id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.DeliverKindBoxReqResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admin/kindboxreqs/reject-kind-box-req/{id}": { + "patch": { + "security": [ + { + "AuthBearerAdmin": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "admin Reject kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "Id", + "name": "id", + "in": "path", + "required": true + }, + { + "description": "admin Reject kindboxreq", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.KindBoxReqRejectRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminkindboxreqparam.KindBoxReqRejectResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admins/login-by-phone": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "admin" + ], + "summary": "Login By PhoneNumber admin", + "parameters": [ + { + "description": "Login By PhoneNumber admin", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminserviceparam.LoginWithPhoneNumberRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminserviceparam.LoginWithPhoneNumberResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/admins/register": { + "post": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "admin" + ], + "summary": "super-admin register admin", + "parameters": [ + { + "description": "super-admin register admin", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminserviceparam.RegisterRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/adminserviceparam.RegisterResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/benefactor/kindboxes/": { + "get": { + "security": [ + { + "AuthBearerBenefactor": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindbox" + ], + "summary": "benefactor get All kindbox", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/benefactorkindboxparam.KindBoxGetResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/benefactor/kindboxes/{id}": { + "get": { + "security": [ + { + "AuthBearerBenefactor": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindbox" + ], + "summary": "benefactor get kindbox", + "parameters": [ + { + "type": "integer", + "description": "id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/benefactorkindboxparam.KindBoxGetResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/benefactor/kindboxreqs/": { + "post": { + "security": [ + { + "AuthBearerBenefactor": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "benefactor Add kindboxreq", + "parameters": [ + { + "description": "benefactor Add kindboxreq", + "name": "Request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/benefactorkindboxreqparam.KindBoxReqAddRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/benefactorkindboxreqparam.KindBoxReqAddResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, + "/benefactor/kindboxreqs/{id}": { + "get": { + "security": [ + { + "AuthBearerBenefactor": [] + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "kindboxreq" + ], + "summary": "benefactor get kindboxreq", + "parameters": [ + { + "type": "integer", + "description": "Id", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/benefactorkindboxreqparam.KindBoxReqGetResponse" + } + }, + "400": { + "description": "Bad request", + "schema": { + "type": "string" + } + } + } + } + }, "/benefactor/login-register": { "post": { "consumes": [ @@ -247,6 +728,181 @@ } } }, + "adminkindboxreqparam.AssignSenderRequest": { + "type": "object", + "properties": { + "kind_box_req_id": { + "type": "integer" + }, + "sender_agent_id": { + "type": "integer" + } + } + }, + "adminkindboxreqparam.DeliverKindBoxReqResponse": { + "type": "object" + }, + "adminkindboxreqparam.KindBoxReqAcceptRequest": { + "type": "object", + "properties": { + "count_accepted": { + "type": "integer" + }, + "id": { + "type": "integer" + } + } + }, + "adminkindboxreqparam.KindBoxReqAcceptResponse": { + "type": "object", + "properties": { + "count_accepted": { + "type": "integer" + }, + "count_requested": { + "type": "integer" + }, + "deliver_address_id": { + "type": "integer" + }, + "deliver_refer_date": { + "type": "string" + }, + "kind_box_req_id": { + "type": "integer" + }, + "kind_box_req_status": { + "$ref": "#/definitions/entity.KindBoxReqStatus" + } + } + }, + "adminkindboxreqparam.KindBoxReqGetAllResponse": { + "type": "object", + "properties": { + "allKindBoxReq": { + "type": "array", + "items": { + "$ref": "#/definitions/entity.KindBoxReq" + } + }, + "pagination": { + "$ref": "#/definitions/param.PaginationResponse" + } + } + }, + "adminkindboxreqparam.KindBoxReqRejectRequest": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "id": { + "type": "integer" + } + } + }, + "adminkindboxreqparam.KindBoxReqRejectResponse": { + "type": "object", + "properties": { + "benefactor_id": { + "type": "integer" + }, + "count_requested": { + "type": "integer" + }, + "deliver_address_id": { + "type": "integer" + }, + "deliver_refer_date": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "kind_box_type": { + "$ref": "#/definitions/entity.KindBoxType" + }, + "status": { + "$ref": "#/definitions/entity.KindBoxReqStatus" + } + } + }, + "adminserviceparam.LoginWithPhoneNumberRequest": { + "type": "object", + "properties": { + "password": { + "type": "string" + }, + "phone_number": { + "type": "string" + } + } + }, + "adminserviceparam.LoginWithPhoneNumberResponse": { + "type": "object", + "properties": { + "admin": { + "$ref": "#/definitions/entity.Admin" + }, + "tokens": { + "$ref": "#/definitions/adminserviceparam.Tokens" + } + } + }, + "adminserviceparam.RegisterRequest": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "email": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "gender": { + "$ref": "#/definitions/entity.Gender" + }, + "last_name": { + "type": "string" + }, + "password": { + "type": "string" + }, + "phone_number": { + "type": "string" + }, + "role": { + "$ref": "#/definitions/entity.AdminRole" + }, + "status": { + "$ref": "#/definitions/entity.AdminStatus" + } + } + }, + "adminserviceparam.RegisterResponse": { + "type": "object", + "properties": { + "admin": { + "$ref": "#/definitions/entity.Admin" + } + } + }, + "adminserviceparam.Tokens": { + "type": "object", + "properties": { + "access_token": { + "type": "string" + }, + "refresh_token": { + "type": "string" + } + } + }, "benefactoreparam.BenefactroInfo": { "type": "object", "properties": { @@ -325,6 +981,122 @@ } } }, + "benefactorkindboxparam.KindBoxGetResponse": { + "type": "object", + "properties": { + "amount": { + "type": "integer" + }, + "benefactorID": { + "type": "integer" + }, + "deliverAddressID": { + "type": "integer" + }, + "deliverReferDate": { + "type": "string" + }, + "deliveredAt": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "kindBoxReqID": { + "type": "integer" + }, + "receiverAgentID": { + "type": "integer" + }, + "returnAddressID": { + "type": "integer" + }, + "returnReferDate": { + "type": "string" + }, + "returnedAt": { + "type": "string" + }, + "senderAgentID": { + "type": "integer" + }, + "serialNumber": { + "type": "string" + }, + "status": { + "$ref": "#/definitions/entity.KindBoxStatus" + }, + "type": { + "$ref": "#/definitions/entity.KindBoxType" + } + } + }, + "benefactorkindboxreqparam.KindBoxReqAddRequest": { + "type": "object", + "properties": { + "benefactor_id": { + "type": "integer" + }, + "count_requested": { + "type": "integer" + }, + "deliver_address_id": { + "type": "integer" + }, + "deliver_refer_date": { + "type": "string" + }, + "type_id": { + "$ref": "#/definitions/entity.KindBoxType" + } + } + }, + "benefactorkindboxreqparam.KindBoxReqAddResponse": { + "type": "object", + "properties": { + "kind_box_req": { + "$ref": "#/definitions/entity.KindBoxReq" + } + } + }, + "benefactorkindboxreqparam.KindBoxReqGetResponse": { + "type": "object", + "properties": { + "benefactorID": { + "type": "integer" + }, + "countAccepted": { + "type": "integer" + }, + "countRequested": { + "type": "integer" + }, + "deliverAddressID": { + "type": "integer" + }, + "deliverReferDate": { + "type": "string" + }, + "deliveredAt": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "kindBoxType": { + "$ref": "#/definitions/entity.KindBoxType" + }, + "senderAgentID": { + "type": "integer" + }, + "status": { + "$ref": "#/definitions/entity.KindBoxReqStatus" + } + } + }, "entity.Address": { "type": "object", "properties": { @@ -357,6 +1129,65 @@ } } }, + "entity.Admin": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "email": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "gender": { + "$ref": "#/definitions/entity.Gender" + }, + "id": { + "type": "integer" + }, + "lastName": { + "type": "string" + }, + "password": { + "type": "string" + }, + "phoneNumber": { + "type": "string" + }, + "role": { + "$ref": "#/definitions/entity.AdminRole" + }, + "status": { + "$ref": "#/definitions/entity.AdminStatus" + } + } + }, + "entity.AdminRole": { + "type": "integer", + "enum": [ + 1, + 2, + 3 + ], + "x-enum-varnames": [ + "AdminSuperAdminRole", + "AdminAdminRole", + "AdminAgentRole" + ] + }, + "entity.AdminStatus": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-varnames": [ + "AdminActiveStatus", + "AdminInactiveStatus" + ] + }, "entity.City": { "type": "object", "properties": { @@ -371,6 +1202,102 @@ } } }, + "entity.Gender": { + "type": "integer", + "enum": [ + 1, + 2 + ], + "x-enum-varnames": [ + "MaleGender", + "FemaleGender" + ] + }, + "entity.KindBoxReq": { + "type": "object", + "properties": { + "benefactorID": { + "type": "integer" + }, + "countAccepted": { + "type": "integer" + }, + "countRequested": { + "type": "integer" + }, + "deliverAddressID": { + "type": "integer" + }, + "deliverReferDate": { + "type": "string" + }, + "deliveredAt": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "kindBoxType": { + "$ref": "#/definitions/entity.KindBoxType" + }, + "senderAgentID": { + "type": "integer" + }, + "status": { + "$ref": "#/definitions/entity.KindBoxReqStatus" + } + } + }, + "entity.KindBoxReqStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ], + "x-enum-varnames": [ + "KindBoxReqPendingStatus", + "KindBoxReqAcceptedStatus", + "KindBoxReqAssignedSenderAgentStatus", + "KindBoxReqRejectedStatus", + "KindBoxReqDeliveredStatus" + ] + }, + "entity.KindBoxStatus": { + "type": "integer", + "enum": [ + 1, + 2, + 3, + 4, + 5 + ], + "x-enum-varnames": [ + "KindBoxDeliveredStatus", + "KindBoxReadyToReturnStatus", + "KindBoxAssignedReceiverAgentStatus", + "KindBoxReturnedStatus", + "KindBoxEnumeratedStatus" + ] + }, + "entity.KindBoxType": { + "type": "integer", + "enum": [ + 1, + 2, + 3 + ], + "x-enum-varnames": [ + "KindBoxOnTable", + "KindBoxCylindrical", + "KindBoxStandUp" + ] + }, "entity.Province": { "type": "object", "properties": { @@ -381,12 +1308,31 @@ "type": "string" } } + }, + "param.PaginationResponse": { + "type": "object", + "properties": { + "pageNumber": { + "type": "integer" + }, + "pageSize": { + "type": "integer" + }, + "total": { + "type": "integer" + } + } } }, "securityDefinitions": { - "AuthBearer": { + "AuthBearerAdmin": { "type": "apiKey", - "name": "Authorization", + "name": "Authorization admin", + "in": "header" + }, + "AuthBearerBenefactor": { + "type": "apiKey", + "name": "Authorization Benefactor", "in": "header" } } diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 2161826..c1ff468 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -42,6 +42,119 @@ definitions: $ref: '#/definitions/entity.Province' type: array type: object + adminkindboxreqparam.AssignSenderRequest: + properties: + kind_box_req_id: + type: integer + sender_agent_id: + type: integer + type: object + adminkindboxreqparam.DeliverKindBoxReqResponse: + type: object + adminkindboxreqparam.KindBoxReqAcceptRequest: + properties: + count_accepted: + type: integer + id: + type: integer + type: object + adminkindboxreqparam.KindBoxReqAcceptResponse: + properties: + count_accepted: + type: integer + count_requested: + type: integer + deliver_address_id: + type: integer + deliver_refer_date: + type: string + kind_box_req_id: + type: integer + kind_box_req_status: + $ref: '#/definitions/entity.KindBoxReqStatus' + type: object + adminkindboxreqparam.KindBoxReqGetAllResponse: + properties: + allKindBoxReq: + items: + $ref: '#/definitions/entity.KindBoxReq' + type: array + pagination: + $ref: '#/definitions/param.PaginationResponse' + type: object + adminkindboxreqparam.KindBoxReqRejectRequest: + properties: + description: + type: string + id: + type: integer + type: object + adminkindboxreqparam.KindBoxReqRejectResponse: + properties: + benefactor_id: + type: integer + count_requested: + type: integer + deliver_address_id: + type: integer + deliver_refer_date: + type: string + description: + type: string + id: + type: integer + kind_box_type: + $ref: '#/definitions/entity.KindBoxType' + status: + $ref: '#/definitions/entity.KindBoxReqStatus' + type: object + adminserviceparam.LoginWithPhoneNumberRequest: + properties: + password: + type: string + phone_number: + type: string + type: object + adminserviceparam.LoginWithPhoneNumberResponse: + properties: + admin: + $ref: '#/definitions/entity.Admin' + tokens: + $ref: '#/definitions/adminserviceparam.Tokens' + type: object + adminserviceparam.RegisterRequest: + properties: + description: + type: string + email: + type: string + first_name: + type: string + gender: + $ref: '#/definitions/entity.Gender' + last_name: + type: string + password: + type: string + phone_number: + type: string + role: + $ref: '#/definitions/entity.AdminRole' + status: + $ref: '#/definitions/entity.AdminStatus' + type: object + adminserviceparam.RegisterResponse: + properties: + admin: + $ref: '#/definitions/entity.Admin' + type: object + adminserviceparam.Tokens: + properties: + access_token: + type: string + refresh_token: + type: string + type: object benefactoreparam.BenefactroInfo: properties: first_name: @@ -95,6 +208,82 @@ definitions: refresh_token: type: string type: object + benefactorkindboxparam.KindBoxGetResponse: + properties: + amount: + type: integer + benefactorID: + type: integer + deliverAddressID: + type: integer + deliverReferDate: + type: string + deliveredAt: + type: string + id: + type: integer + kindBoxReqID: + type: integer + receiverAgentID: + type: integer + returnAddressID: + type: integer + returnReferDate: + type: string + returnedAt: + type: string + senderAgentID: + type: integer + serialNumber: + type: string + status: + $ref: '#/definitions/entity.KindBoxStatus' + type: + $ref: '#/definitions/entity.KindBoxType' + type: object + benefactorkindboxreqparam.KindBoxReqAddRequest: + properties: + benefactor_id: + type: integer + count_requested: + type: integer + deliver_address_id: + type: integer + deliver_refer_date: + type: string + type_id: + $ref: '#/definitions/entity.KindBoxType' + type: object + benefactorkindboxreqparam.KindBoxReqAddResponse: + properties: + kind_box_req: + $ref: '#/definitions/entity.KindBoxReq' + type: object + benefactorkindboxreqparam.KindBoxReqGetResponse: + properties: + benefactorID: + type: integer + countAccepted: + type: integer + countRequested: + type: integer + deliverAddressID: + type: integer + deliverReferDate: + type: string + deliveredAt: + type: string + description: + type: string + id: + type: integer + kindBoxType: + $ref: '#/definitions/entity.KindBoxType' + senderAgentID: + type: integer + status: + $ref: '#/definitions/entity.KindBoxReqStatus' + type: object entity.Address: properties: address: @@ -116,6 +305,47 @@ definitions: provinceID: type: integer type: object + entity.Admin: + properties: + description: + type: string + email: + type: string + firstName: + type: string + gender: + $ref: '#/definitions/entity.Gender' + id: + type: integer + lastName: + type: string + password: + type: string + phoneNumber: + type: string + role: + $ref: '#/definitions/entity.AdminRole' + status: + $ref: '#/definitions/entity.AdminStatus' + type: object + entity.AdminRole: + enum: + - 1 + - 2 + - 3 + type: integer + x-enum-varnames: + - AdminSuperAdminRole + - AdminAdminRole + - AdminAgentRole + entity.AdminStatus: + enum: + - 1 + - 2 + type: integer + x-enum-varnames: + - AdminActiveStatus + - AdminInactiveStatus entity.City: properties: id: @@ -125,6 +355,77 @@ definitions: provinceID: type: integer type: object + entity.Gender: + enum: + - 1 + - 2 + type: integer + x-enum-varnames: + - MaleGender + - FemaleGender + entity.KindBoxReq: + properties: + benefactorID: + type: integer + countAccepted: + type: integer + countRequested: + type: integer + deliverAddressID: + type: integer + deliverReferDate: + type: string + deliveredAt: + type: string + description: + type: string + id: + type: integer + kindBoxType: + $ref: '#/definitions/entity.KindBoxType' + senderAgentID: + type: integer + status: + $ref: '#/definitions/entity.KindBoxReqStatus' + type: object + entity.KindBoxReqStatus: + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + type: integer + x-enum-varnames: + - KindBoxReqPendingStatus + - KindBoxReqAcceptedStatus + - KindBoxReqAssignedSenderAgentStatus + - KindBoxReqRejectedStatus + - KindBoxReqDeliveredStatus + entity.KindBoxStatus: + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + type: integer + x-enum-varnames: + - KindBoxDeliveredStatus + - KindBoxReadyToReturnStatus + - KindBoxAssignedReceiverAgentStatus + - KindBoxReturnedStatus + - KindBoxEnumeratedStatus + entity.KindBoxType: + enum: + - 1 + - 2 + - 3 + type: integer + x-enum-varnames: + - KindBoxOnTable + - KindBoxCylindrical + - KindBoxStandUp entity.Province: properties: id: @@ -132,6 +433,15 @@ definitions: name: type: string type: object + param.PaginationResponse: + properties: + pageNumber: + type: integer + pageSize: + type: integer + total: + type: integer + type: object info: contact: {} paths: @@ -158,10 +468,10 @@ paths: schema: type: string security: - - AuthBearer: [] + - AuthBearerBenefactor: [] summary: Add Address benefactor tags: - - benefactor + - address /address/cities: get: consumes: @@ -179,7 +489,7 @@ paths: type: string summary: get all cities tags: - - benefactor + - address /address/provinces: get: consumes: @@ -197,7 +507,307 @@ paths: type: string summary: get all provinces tags: - - benefactor + - address + /admin/kindboxreqs/: + get: + consumes: + - application/json + parameters: + - description: page_number + in: query + name: page_number + type: integer + - description: page_size + in: query + name: page_size + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/adminkindboxreqparam.KindBoxReqGetAllResponse' + "400": + description: Bad request + schema: + type: string + security: + - AuthBearerAdmin: [] + summary: admin get All kindboxreq + tags: + - kindboxreq + /admin/kindboxreqs/accept-kind-box-req/{id}: + patch: + consumes: + - application/json + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: admin Accept kindboxreq + in: body + name: Request + required: true + schema: + $ref: '#/definitions/adminkindboxreqparam.KindBoxReqAcceptRequest' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/adminkindboxreqparam.KindBoxReqAcceptResponse' + "400": + description: Bad request + schema: + type: string + security: + - AuthBearerAdmin: [] + summary: admin Accept kindboxreq + tags: + - kindboxreq + /admin/kindboxreqs/assign-sender-agent/{id}: + patch: + consumes: + - application/json + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: admin AssignSenderAgent kindboxreq + in: body + name: Request + required: true + schema: + $ref: '#/definitions/adminkindboxreqparam.AssignSenderRequest' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/adminkindboxreqparam.DeliverKindBoxReqResponse' + "400": + description: Bad request + schema: + type: string + security: + - AuthBearerAdmin: [] + summary: admin AssignSenderAgent kindboxreq + tags: + - kindboxreq + /admin/kindboxreqs/deliver-kind-box-req/{id}: + patch: + consumes: + - application/json + parameters: + - description: Id + in: path + name: id + required: true + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/adminkindboxreqparam.DeliverKindBoxReqResponse' + "400": + description: Bad request + schema: + type: string + security: + - AuthBearerAdmin: [] + summary: admin Deliver kindboxreq + tags: + - kindboxreq + /admin/kindboxreqs/reject-kind-box-req/{id}: + patch: + consumes: + - application/json + parameters: + - description: Id + in: path + name: id + required: true + type: integer + - description: admin Reject kindboxreq + in: body + name: Request + required: true + schema: + $ref: '#/definitions/adminkindboxreqparam.KindBoxReqRejectRequest' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/adminkindboxreqparam.KindBoxReqRejectResponse' + "400": + description: Bad request + schema: + type: string + security: + - AuthBearerAdmin: [] + summary: admin Reject kindboxreq + tags: + - kindboxreq + /admins/login-by-phone: + post: + consumes: + - application/json + parameters: + - description: Login By PhoneNumber admin + in: body + name: Request + required: true + schema: + $ref: '#/definitions/adminserviceparam.LoginWithPhoneNumberRequest' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/adminserviceparam.LoginWithPhoneNumberResponse' + "400": + description: Bad request + schema: + type: string + summary: Login By PhoneNumber admin + tags: + - admin + /admins/register: + post: + consumes: + - application/json + parameters: + - description: super-admin register admin + in: body + name: Request + required: true + schema: + $ref: '#/definitions/adminserviceparam.RegisterRequest' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/adminserviceparam.RegisterResponse' + "400": + description: Bad request + schema: + type: string + summary: super-admin register admin + tags: + - admin + /benefactor/kindboxes/: + get: + consumes: + - application/json + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/benefactorkindboxparam.KindBoxGetResponse' + "400": + description: Bad request + schema: + type: string + security: + - AuthBearerBenefactor: [] + summary: benefactor get All kindbox + tags: + - kindbox + /benefactor/kindboxes/{id}: + get: + consumes: + - application/json + parameters: + - description: id + in: path + name: id + required: true + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/benefactorkindboxparam.KindBoxGetResponse' + "400": + description: Bad request + schema: + type: string + security: + - AuthBearerBenefactor: [] + summary: benefactor get kindbox + tags: + - kindbox + /benefactor/kindboxreqs/: + post: + consumes: + - application/json + parameters: + - description: benefactor Add kindboxreq + in: body + name: Request + required: true + schema: + $ref: '#/definitions/benefactorkindboxreqparam.KindBoxReqAddRequest' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/benefactorkindboxreqparam.KindBoxReqAddResponse' + "400": + description: Bad request + schema: + type: string + security: + - AuthBearerBenefactor: [] + summary: benefactor Add kindboxreq + tags: + - kindboxreq + /benefactor/kindboxreqs/{id}: + get: + consumes: + - application/json + parameters: + - description: Id + in: path + name: id + required: true + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/benefactorkindboxreqparam.KindBoxReqGetResponse' + "400": + description: Bad request + schema: + type: string + security: + - AuthBearerBenefactor: [] + summary: benefactor get kindboxreq + tags: + - kindboxreq /benefactor/login-register: post: consumes: @@ -249,8 +859,12 @@ paths: tags: - benefactor securityDefinitions: - AuthBearer: + AuthBearerAdmin: in: header - name: Authorization + name: Authorization admin + type: apiKey + AuthBearerBenefactor: + in: header + name: Authorization Benefactor type: apiKey swagger: "2.0" diff --git a/main.go b/main.go index 8b3e01d..5ef4f9b 100644 --- a/main.go +++ b/main.go @@ -26,9 +26,12 @@ func parseFlags() bool { return *migrateFlag } -// @securityDefinitions.apikey AuthBearer +// @securityDefinitions.apikey AuthBearerBenefactor // @in header -// @name Authorization +// @name Authorization Benefactor +// @securityDefinitions.apikey AuthBearerAdmin +// @in header +// @name Authorization admin func main() { migrate := parseFlags() diff --git a/mise.log b/mise.log index d5d7585..9f475b0 100644 --- a/mise.log +++ b/mise.log @@ -2517,3 +2517,1523 @@ "MISE_TRACE": "0", }, } +13:06:39 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +13:06:39 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +13:07:10 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +13:07:10 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +13:08:07 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +13:08:07 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:42:18 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:42:18 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:43:09 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:43:09 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:43:10 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:43:10 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:45:29 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:45:29 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:45:31 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:45:31 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:47:20 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:47:20 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:47:22 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:47:22 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:47:33 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:47:33 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:47:34 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:47:34 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:47:42 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:47:42 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:47:55 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:47:55 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:47:57 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:47:57 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:51:11 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:51:11 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:51:13 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:51:13 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:52:18 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:52:18 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:52:20 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:52:20 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:54:27 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:54:27 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:54:28 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:54:28 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:56:01 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:56:01 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:56:03 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:56:03 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:56:59 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:56:59 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:57:00 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:57:00 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:58:11 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:58:11 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:58:13 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:58:13 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:59:38 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:59:38 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +06:59:40 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +06:59:40 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:00:58 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:00:58 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:00:59 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:00:59 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:03:13 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:03:13 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:03:15 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:03:15 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:03:57 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:03:57 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:03:59 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:03:59 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:04:29 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:04:29 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:04:31 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:04:31 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:06:58 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:06:58 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:07:00 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:07:00 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:07:01 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:07:01 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:07:22 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:07:22 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:09:40 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:09:40 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:09:41 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:09:41 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:09:43 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:09:43 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:10:06 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:10:06 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:10:08 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:10:08 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:10:23 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:10:23 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:10:57 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:10:57 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:10:59 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:10:59 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:11:30 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:11:30 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:11:31 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:11:31 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:15:44 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:15:44 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:15:45 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:15:45 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:16:25 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:16:25 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:16:26 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:16:26 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:16:37 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:16:37 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:16:40 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:16:40 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:16:51 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:16:51 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:16:53 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:16:53 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:17:09 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:17:09 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:17:10 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:17:10 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:21:16 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:21:16 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:21:17 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:21:17 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:21:49 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:21:49 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:22:50 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:22:50 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:22:51 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:22:51 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:23:33 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:23:33 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:23:34 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:23:34 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:27:24 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:27:24 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:27:25 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:27:25 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:28:42 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:28:42 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:28:44 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:28:44 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:30:56 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:30:56 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:30:57 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:30:57 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:33:04 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:33:04 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:33:05 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:33:05 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:36:31 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:36:31 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:36:32 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:36:32 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:36:52 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:36:52 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +} +07:37:01 [DEBUG] mise::cli: ARGS: /home/mehdi/.local/bin/mise hook-env -s bash +07:37:01 [DEBUG] mise::config: Config { + Config Files: [ + "~/go/src/niki/.mise.toml", + "~/.config/mise/config.toml", + ], + Env: { + "GO_ENV": "GOLANG_MISE", + "MISE_USE_TOML": "1", + "RUST_BACKTRACE": "0", + "MISE_VERBOSE": "0", + "MISE_LOG_FILE": "./mise.log", + "MISE_LOG_FILE_LEVEL": "debug", + "MISE_DEBUG": "0", + "MISE_QUIET": "1", + "MISE_ERORR": "1", + "MISE_TRACE": "0", + }, +}