This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {simplefyReducer, handleRemoveById, handleActionError, handleActionSuccess, handleAddTolist, startRequest, handleActionList, requestFinished} from '../utils' | |
import R from 'ramda' | |
const initialState = { | |
list: [], | |
fetching: false, | |
error: null | |
} | |
const addToList = (state, {error, payload}) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
@Table(name = "ficha_medica") | |
public class FichaMedica implements Serializable { | |
private static final long serialVersionUID = 1L; | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Long id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
angular.module('corujaApp') | |
.directive('escolaSelect', createSelect({ | |
entity: 'escola', | |
field: 'escola.nome', | |
serviceApi: 'Escola' | |
})); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private ErroDTO validationErro(String mensagem) { | |
return ErroDTO.from("anoLetivo", "validation", mensagem); | |
} | |
private Either<ErroDTO, AnoLetivo> validations(AnoLetivo anoLetivo) { | |
if (anoLetivo.getAno().toString().length() != 4) { | |
return left(validationErro("Ano inválido")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
angular.module("amks", ['ui.router', 'restangular', 'aluno']) | |
.run(congiruarApp) | |
.factory('authInterceptor', Interceptador) | |
.config(adicionarInterceptador); | |
congiruarApp.$inject = ['Restangular']; | |
function congiruarApp(restangular) { | |
restangular.setBaseUrl('/api'); |