Skip to content

Commit

Permalink
Merge pull request #499 from LerianStudio/refactor/MIDAZ-496
Browse files Browse the repository at this point in the history
Refactor/MIDAZ-496
  • Loading branch information
MartinezAvellan authored Jan 31, 2025
2 parents 498c5b5 + 768a857 commit c0156ec
Show file tree
Hide file tree
Showing 92 changed files with 1,466 additions and 1,465 deletions.
4 changes: 2 additions & 2 deletions STRUCTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The project is structured into several key directories, each serving specific ro
│   │   │   │   ├── account
│   │   │   │   ├── asset
│   │   │   │   ├── portfolio
│   │   │   │   └── product
│   │   │   │   └── segment
│   │   │   ├── gen
│   │   │   │   └── mock
│   │   │   │   ├── account
Expand All @@ -47,7 +47,7 @@ The project is structured into several key directories, each serving specific ro
│   │   │   │   ├── metadata
│   │   │   │   ├── organization
│   │   │   │   ├── portfolio
│   │   │   │   └── product
│   │   │   │   └── segment
│   │   │   ├── ports
│   │   │   │   └── http
│   │   │   └── service
Expand Down
2 changes: 1 addition & 1 deletion chocolatey/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$version = 'v1.46.0'
$version = 'v1.47.0'

$ErrorActionPreference = 'Stop';

Expand Down
2 changes: 1 addition & 1 deletion components/audit/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ENV_NAME=production

# APP
VERSION=v1.46.0
VERSION=v1.47.0
SERVER_PORT=3005
SERVER_ADDRESS=:${SERVER_PORT}

Expand Down
10 changes: 5 additions & 5 deletions components/auth/setup/00_init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ INSERT INTO "casbin_lerian_enforcer_rule" ("ptype", "v0", "v1", "v2", "v3", "v4"
('p', 'developer_role', 'portfolio', 'get', '', '', ''),
('p', 'developer_role', 'portfolio', 'patch', '', '', ''),
('p', 'developer_role', 'portfolio', 'put', '', '', ''),
('p', 'developer_role', 'product', 'post', '', '', ''),
('p', 'developer_role', 'product', 'get', '', '', ''),
('p', 'developer_role', 'product', 'patch', '', '', ''),
('p', 'developer_role', 'product', 'put', '', '', ''),
('p', 'developer_role', 'segment', 'post', '', '', ''),
('p', 'developer_role', 'segment', 'get', '', '', ''),
('p', 'developer_role', 'segment', 'patch', '', '', ''),
('p', 'developer_role', 'segment', 'put', '', '', ''),
('p', 'developer_role', 'account', 'post', '', '', ''),
('p', 'developer_role', 'account', 'get', '', '', ''),
('p', 'developer_role', 'account', 'patch', '', '', ''),
Expand All @@ -70,7 +70,7 @@ INSERT INTO "casbin_lerian_enforcer_rule" ("ptype", "v0", "v1", "v2", "v3", "v4"
('p', 'user_role', 'ledger', 'get', '', '', ''),
('p', 'user_role', 'asset', 'get', '', '', ''),
('p', 'user_role', 'portfolio', 'get', '', '', ''),
('p', 'user_role', 'product', 'get', '', '', ''),
('p', 'user_role', 'segment', 'get', '', '', ''),
('p', 'user_role', 'account', 'get', '', '', ''),
('p', 'user_role', 'transaction', 'get', '', '', ''),
('p', 'user_role', 'operation', 'get', '', '', ''),
Expand Down
4 changes: 2 additions & 2 deletions components/auth/setup/init_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@
"ledger",
"organization",
"portfolio",
"product",
"segment",
"transaction",
"operation",
"asset-rate"
Expand Down Expand Up @@ -879,7 +879,7 @@
"ledger",
"organization",
"portfolio",
"product",
"segment",
"transaction",
"operation",
"asset-rate"
Expand Down
2 changes: 1 addition & 1 deletion components/ledger/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ENV_NAME=production

# APP
VERSION=v1.46.0
VERSION=v1.47.0
SERVER_PORT=3000
SERVER_ADDRESS=:${SERVER_PORT}

Expand Down
86 changes: 43 additions & 43 deletions components/ledger/api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2014,16 +2014,16 @@ const docTemplate = `{
}
}
},
"/v1/organizations/{organization_id}/ledgers/{ledger_id}/products": {
"/v1/organizations/{organization_id}/ledgers/{ledger_id}/segments": {
"get": {
"description": "Get all Products with the input metadata or without metadata",
"description": "Get all Segments with the input metadata or without metadata",
"produces": [
"application/json"
],
"tags": [
"Products"
"Segments"
],
"summary": "Get all Products",
"summary": "Get all Segments",
"parameters": [
{
"type": "string",
Expand Down Expand Up @@ -2109,7 +2109,7 @@ const docTemplate = `{
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/Product"
"$ref": "#/definitions/Segment"
}
},
"limit": {
Expand All @@ -2126,17 +2126,17 @@ const docTemplate = `{
}
},
"post": {
"description": "Create a Product with the input payload",
"description": "Create a Segment with the input payload",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Products"
"Segments"
],
"summary": "Create a Product",
"summary": "Create a Segment",
"parameters": [
{
"type": "string",
Expand Down Expand Up @@ -2166,35 +2166,35 @@ const docTemplate = `{
"required": true
},
{
"description": "Product",
"name": "product",
"description": "Segment",
"name": "segment",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/CreateProductInput"
"$ref": "#/definitions/CreateSegmentInput"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Product"
"$ref": "#/definitions/Segment"
}
}
}
}
},
"/v1/organizations/{organization_id}/ledgers/{ledger_id}/products/{id}": {
"/v1/organizations/{organization_id}/ledgers/{ledger_id}/segments/{id}": {
"get": {
"description": "Get a Product with the input ID",
"description": "Get a Segment with the input ID",
"produces": [
"application/json"
],
"tags": [
"Products"
"Segments"
],
"summary": "Get a Product by ID",
"summary": "Get a Segment by ID",
"parameters": [
{
"type": "string",
Expand Down Expand Up @@ -2225,7 +2225,7 @@ const docTemplate = `{
},
{
"type": "string",
"description": "Product ID",
"description": "Segment ID",
"name": "id",
"in": "path",
"required": true
Expand All @@ -2235,17 +2235,17 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Product"
"$ref": "#/definitions/Segment"
}
}
}
},
"delete": {
"description": "Delete a Product with the input ID",
"description": "Delete a Segment with the input ID",
"tags": [
"Products"
"Segments"
],
"summary": "Delete a Product by ID",
"summary": "Delete a Segment by ID",
"parameters": [
{
"type": "string",
Expand Down Expand Up @@ -2276,7 +2276,7 @@ const docTemplate = `{
},
{
"type": "string",
"description": "Product ID",
"description": "Segment ID",
"name": "id",
"in": "path",
"required": true
Expand All @@ -2289,17 +2289,17 @@ const docTemplate = `{
}
},
"patch": {
"description": "Update a Product with the input payload",
"description": "Update a Segment with the input payload",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Products"
"Segments"
],
"summary": "Update a Product",
"summary": "Update a Segment",
"parameters": [
{
"type": "string",
Expand Down Expand Up @@ -2330,26 +2330,26 @@ const docTemplate = `{
},
{
"type": "string",
"description": "Product ID",
"description": "Segment ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "Product",
"name": "product",
"description": "Segment",
"name": "segment",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/UpdateProductInput"
"$ref": "#/definitions/UpdateSegmentInput"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/Product"
"$ref": "#/definitions/Segment"
}
}
}
Expand Down Expand Up @@ -2420,7 +2420,7 @@ const docTemplate = `{
"type": "string",
"example": "00000000-0000-0000-0000-000000000000"
},
"productId": {
"segmentId": {
"type": "string",
"example": "00000000-0000-0000-0000-000000000000"
},
Expand Down Expand Up @@ -2583,7 +2583,7 @@ const docTemplate = `{
"type": "string",
"example": "00000000-0000-0000-0000-000000000000"
},
"productId": {
"segmentId": {
"type": "string",
"example": "00000000-0000-0000-0000-000000000000"
},
Expand Down Expand Up @@ -2713,8 +2713,8 @@ const docTemplate = `{
}
}
},
"CreateProductInput": {
"description": "CreateProductInput is the input payload to create a product.",
"CreateSegmentInput": {
"description": "CreateSegmentInput is the input payload to create a segment.",
"type": "object",
"required": [
"name"
Expand All @@ -2727,7 +2727,7 @@ const docTemplate = `{
"name": {
"type": "string",
"maxLength": 256,
"example": "My Product"
"example": "My Segment"
},
"status": {
"$ref": "#/definitions/Status"
Expand Down Expand Up @@ -2889,8 +2889,8 @@ const docTemplate = `{
}
}
},
"Product": {
"description": "Product is a struct designed to store product data.",
"Segment": {
"description": "Segment is a struct designed to store segment data.",
"type": "object",
"properties": {
"createdAt": {
Expand All @@ -2915,7 +2915,7 @@ const docTemplate = `{
},
"name": {
"type": "string",
"example": "My Product"
"example": "My Segment"
},
"organizationId": {
"type": "string",
Expand Down Expand Up @@ -2972,11 +2972,11 @@ const docTemplate = `{
"maxLength": 256,
"example": "My Account Updated"
},
"productId": {
"portfolioId": {
"type": "string",
"example": "00000000-0000-0000-0000-000000000000"
},
"portfolioId": {
"segmentId": {
"type": "string",
"example": "00000000-0000-0000-0000-000000000000"
},
Expand Down Expand Up @@ -3072,8 +3072,8 @@ const docTemplate = `{
}
}
},
"UpdateProductInput": {
"description": "UpdateProductInput is the input payload to update a product.",
"UpdateSegmentInput": {
"description": "UpdateSegmentInput is the input payload to update a segment.",
"type": "object",
"properties": {
"metadata": {
Expand All @@ -3083,7 +3083,7 @@ const docTemplate = `{
"name": {
"type": "string",
"maxLength": 256,
"example": "My Product Updated"
"example": "My Segment Updated"
},
"status": {
"$ref": "#/definitions/Status"
Expand Down
Loading

0 comments on commit c0156ec

Please sign in to comment.