genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0

[TASK] rename produckt attr from title to name (for monolith)

This commit is contained in:
Martin Geno 2017-06-23 12:34:52 +02:00
parent 1d72751653
commit 157431d425
No known key found for this signature in database
GPG Key ID: F0D39A37E925E941
13 changed files with 17 additions and 17 deletions

View File

@ -25,7 +25,7 @@ Die dritte Schnittstelle besteht zu dem Microservice Produktkatalog, von welchem
\begin{lstlisting}[caption=Datenabfrage aus dem Produktkatalog] \begin{lstlisting}[caption=Datenabfrage aus dem Produktkatalog]
{ {
"id": <<Int>>, "id": <<Int>>,
"title": "<<Produktname>>" "name": "<<Produktname>>"
} }
\end{lstlisting} \end{lstlisting}

View File

@ -1,4 +1,4 @@
{ {
"id": 1, "id": 1,
"title": "Kiwi" "name": "Kiwi"
} }

View File

@ -1,4 +1,4 @@
{ {
"id": 2, "id": 2,
"title": "Blueberries" "name": "Blueberries"
} }

View File

@ -1,4 +1,4 @@
{ {
"id": 3, "id": 3,
"title": "Cherries" "name": "Cherries"
} }

View File

@ -1,4 +1,4 @@
{ {
"id": 4, "id": 4,
"title": "Potatoes" "name": "Potatoes"
} }

View File

@ -1,4 +1,4 @@
{ {
"id": 5, "id": 5,
"title": "Tomatoes" "name": "Tomatoes"
} }

View File

@ -1,4 +1,4 @@
{ {
"id": 6, "id": 6,
"title": "Rhubarb" "name": "Rhubarb"
} }

View File

@ -1,8 +1,8 @@
[ [
{"id":1, "title": "Kiwi"}, {"id":1, "name": "Kiwi"},
{"id":2, "title": "Blueberries"}, {"id":2, "name": "Blueberries"},
{"id":3, "title": "Cherries"}, {"id":3, "name": "Cherries"},
{"id":4, "title": "Potatoes"}, {"id":4, "name": "Potatoes"},
{"id":5, "title": "Tomatoes"}, {"id":5, "name": "Tomatoes"},
{"id":6, "title": "Rhubarb"} {"id":6, "name": "Rhubarb"}
] ]

View File

@ -1,5 +1,5 @@
<h1> <h1>
{{product.title}} {{product.name}}
<a ui-sref="item({productid:product.id})"> <a ui-sref="item({productid:product.id})">
<i class="icon linkify"></i> <i class="icon linkify"></i>
</a> </a>

View File

@ -1,5 +1,5 @@
<h1> <h1>
{{obj.title}} {{obj.name}}
<img class="icon" src="/api/good/availablity/{{obj.id}}"/> <img class="icon" src="/api/good/availablity/{{obj.id}}"/>
<a class="ui icon button mini right floated" ui-sref="item-add({productid: obj.id})"><i class="icon plus"></i></a> <a class="ui icon button mini right floated" ui-sref="item-add({productid: obj.id})"><i class="icon plus"></i></a>
</h1> </h1>

View File

@ -11,7 +11,7 @@
<tbody> <tbody>
<tr ng-repeat="item in list"> <tr ng-repeat="item in list">
<td>{{item.id}}</td> <td>{{item.id}}</td>
<td><a ui-sref="item({productid: item.id})">{{item.title}}</a></td> <td><a ui-sref="item({productid: item.id})">{{item.name}}</a></td>
<td> <td>
<img class="icon" ng-src="{{'/api/good/availablity/'+item.id| reloadSrc}}"/> <img class="icon" ng-src="{{'/api/good/availablity/'+item.id| reloadSrc}}"/>
</td> </td>

View File

@ -14,7 +14,7 @@ angular.module('microStock')
$scope.submit = function(){ $scope.submit = function(){
$http.post(config.store.goods.productById.replace("%d",$stateParams.productid)+'?count='+$scope.count,$scope.obj).then(function(){ $http.post(config.store.goods.productById.replace("%d",$stateParams.productid)+'?count='+$scope.count,$scope.obj).then(function(){
$scope.obj = {}; $scope.obj = {};
$scope.msg = {type:'success',text:'Saved '+$scope.count+' good(s) from product '+$scope.product.title+'.'}; $scope.msg = {type:'success',text:'Saved '+$scope.count+' good(s) from product '+$scope.product.name+'.'};
}, function(e){ }, function(e){
if(e.status == 403){ if(e.status == 403){
$scope.msg = {type:'error',text:'You are not allowed to add goods, maybe you should login!'}; $scope.msg = {type:'error',text:'You are not allowed to add goods, maybe you should login!'};