Commit Graph

103 Commits

Author SHA1 Message Date
155deb889c Change name of module 2024-11-04 17:55:14 +02:00
1a5941cd89 Add types.DbPayment 2024-11-04 17:53:38 +02:00
85dc709979 Change Port from 3001 to 3000 2024-11-04 17:53:03 +02:00
9731073e9f Refactor Debt handlers 2024-11-02 00:05:53 +02:00
1402825a72 Delete UserID for types.DbDebt 2024-11-02 00:05:45 +02:00
7f4067ce31 Add implemetation for db.UserIdentifiable interface for Debt entity 2024-11-02 00:05:28 +02:00
45123613fd Add User binding to paymets 2024-11-01 22:54:29 +02:00
2eb7ccdaf4 Remove IsValid and add ValidTo field for ItemPrice entity 2024-11-01 22:54:11 +02:00
6c70cc1881 Rename Name for Payment to Title 2024-11-01 09:30:51 +02:00
e2d3d636cb Add TotalCost MetricValue MetricType and Type relationship to ItemBought 2024-11-01 09:30:34 +02:00
48f7b8258e Add Item-Type relationship 2024-11-01 09:30:01 +02:00
02a33aaced Move Comment in Item above Metric fields 2024-11-01 09:29:48 +02:00
de7926337a Change db.Card.Value to db.Card.Balance and types.DbCard.Value to types.DbCard.Balance 2024-11-01 09:26:37 +02:00
340b39c35e Refactor category handlers 2024-10-31 23:06:42 +02:00
faa2bf7a9e Add implementation for db.UserIdentifiable for Category 2024-10-31 23:05:38 +02:00
6b339e7496 Rephrase ERROR_CATEGORY_PARENT_NOT_FOUND error in db package 2024-10-31 23:05:18 +02:00
d7786fb50f Deleted UserID for types.DbCategory 2024-10-31 23:04:51 +02:00
30c6c59e63 Add type handlers 2024-10-31 11:41:49 +02:00
020a5e6e40 Add implemetation for db.UserIdentifiable for type in db package 2024-10-31 11:11:39 +02:00
7d1ca772c0 Add BeforeSave hook for type for duplicate detection 2024-10-31 11:09:11 +02:00
0c4cca73a5 Refactored Card handlers so they will take 150 less lines of code 2024-10-31 11:07:51 +02:00
33b5b73ab2 Add generic CRUD interface for UserIdentifiable entities 2024-10-31 11:07:34 +02:00
b09e85b4cb Extract GetUserID and ParseID to boilerplate.go in handlers package 2024-10-31 11:05:52 +02:00
255f812078 Add clarity to cards errors 2024-10-31 11:05:06 +02:00
79b83026f5 Fix issue with updating the same entity 2024-10-31 10:09:50 +02:00
db53f2a486 Add implicit implementation of db.UserIdentifiable for Card 2024-10-31 10:09:38 +02:00
506586a187 Add db.Identifiable and db.UserIdentifiable interfaces 2024-10-31 10:09:10 +02:00
55ea7409ed Add ID field to types.DbType 2024-10-31 10:07:48 +02:00
06bb34c0d7 Fix token issue 2024-10-31 10:07:36 +02:00
cfb97485e3 Add DbType for API requests 2024-10-29 12:27:26 +02:00
713f19a201 Add comment field for Item schema 2024-10-29 12:25:01 +02:00
0e081297d0 Add Type to database schema 2024-10-29 12:24:46 +02:00
9cf82d5301 Add income routes 2024-08-14 18:21:03 +03:00
94b933031f Add income handlers 2024-08-14 18:20:57 +03:00
9f4a9e3a83 Add DbIncome 2024-08-14 18:20:51 +03:00
746b4f15e7 Add Content-Type to AllowHeaders 2024-08-14 15:05:55 +03:00
db78c5c6c2 small 2024-08-14 15:05:42 +03:00
514d2bac59 Make api listens to localhost 2024-08-12 18:48:09 +03:00
2eec801907 Make api listens to 3001 port on localhost 2024-08-12 18:47:36 +03:00
7adde1fee1 Add debt CRUD routes 2024-08-12 18:33:17 +03:00
30c7251e64 Remove cfyne as it will be anothe application. 2024-08-12 18:32:00 +03:00
f071c72335 Add debt handlers 2024-08-12 18:31:14 +03:00
0947a4fdf5 Add DbDebt to types 2024-08-12 18:31:07 +03:00
a09f3f87e9 Change localhost to some domain 2024-08-08 20:30:59 +03:00
1d1463b38f Add user to debt and income 2024-08-08 20:14:50 +03:00
43005c6f3b .... 2024-08-06 23:59:05 +03:00
74dda89c69 Add listening on localhost 2024-08-06 23:08:50 +03:00
e7c4327fce Add instal-swag target to Makefile 2024-08-06 22:54:24 +03:00
ecdc3b235c Add ping 2024-08-06 22:51:34 +03:00
d5c898520d Add CORS 2024-08-06 14:32:10 +03:00