Commit Graph

70 Commits

Author SHA1 Message Date
James Tombleson fbed111fbb cleaned up the old dto and starting to add the internal queue system 2024-04-29 16:49:52 -07:00
James Tombleson 43a086cc02 removed the old dto package as it was more complex then it needed to be 2024-04-29 16:48:59 -07:00
James Tombleson 2afad5d761 starting to play with goqite for queuing 2024-04-29 16:31:48 -07:00
James Tombleson fcf80ec5fe mod cleanup 2024-04-29 16:31:09 -07:00
James Tombleson ce45b509d3 broke cron out and moved to the new domain models 2024-04-29 16:29:54 -07:00
James Tombleson e48b64bbaa input services now use the new entity models 2024-04-29 16:29:37 -07:00
James Tombleson 84d108f2dd source handlers have been updated 2024-04-28 19:29:49 -07:00
James Tombleson 7fee03c416 Minor adjustments and getting discord webhooks handler updated 2024-04-28 12:32:51 -07:00
jtom38 8fc2e56ad5 Merge pull request 'features/repo-updates' (#4) from features/repo-updates into main
Reviewed-on: #4
2024-04-28 11:42:57 -07:00
James Tombleson 2b6ab134d9 make swag now works with the new cmd pathing 2024-04-28 11:42:30 -07:00
James Tombleson 228e08fef3 docker will now use go 1.22 2024-04-28 11:42:10 -07:00
James Tombleson 3d2420343c cleaning up the dto's and making new response types 2024-04-28 11:41:55 -07:00
James Tombleson dfd44714c0 minor error updates and will soon be pulled apart 2024-04-28 11:41:34 -07:00
James Tombleson 0073bb6775 new dtoconv file to convert entities to dto for handler 2024-04-28 11:41:11 -07:00
James Tombleson bcbdfcbc5b Created a new services.RepositoryService to roll up all the db calls 2024-04-28 11:40:51 -07:00
James Tombleson ef15af6cbd cleaned up the article handler with new reponse models and moving to the repo structs 2024-04-28 11:40:19 -07:00
James Tombleson 9586c6a544 repositories now use context and have interfaces exposed 2024-04-28 11:39:25 -07:00
James Tombleson 7227744621 got the sources repo working 2024-04-28 10:02:57 -07:00
James Tombleson 15681d9d37 Almost done with DiscordWebHooks repo 2024-04-27 13:11:03 -07:00
James Tombleson 3d3b582e82 Articles can be created and working on pulling over the old queries 2024-04-27 07:44:41 -07:00
James Tombleson f6cc0a3d93 entity updated to reflect table 2024-04-27 07:44:20 -07:00
James Tombleson ba33d18525 Redefined what can be null and removed some values I am not sure matter anymore 2024-04-27 07:44:04 -07:00
jtom38 2b5a3cc8e4 Merge pull request 'features/added-user-tables' (#3) from features/added-user-tables into main
Reviewed-on: #3
2024-04-26 16:06:35 -07:00
James Tombleson 44b7d24e07 updated the rss source to use the new entity ref 2024-04-26 16:05:38 -07:00
James Tombleson 0948ef9fa2 the config will now just return a struct from the env because this wa made to run in a container 2024-04-26 16:05:17 -07:00
James Tombleson d35b955815 The handler class will now store the sql connection for now 2024-04-26 16:04:10 -07:00
James Tombleson 2fa47c957c pulled my user and refreshTokens tables from another project 2024-04-26 16:03:32 -07:00
James Tombleson d1a4d10df0 cleaned up the dto's and entities to make them more like what I am use to 2024-04-26 16:02:59 -07:00
James Tombleson 81699b6919 Reworked migrations and added the user and refresh token tables 2024-04-26 16:02:36 -07:00
James Tombleson 8ea3f5fef1 renamed the main go file to server 2024-04-26 16:02:14 -07:00
jtom38 7b6fad28a3 Merge pull request 'chi was replaced with echo' (#2) from features/moved-to-echo into main
Reviewed-on: #2
2024-04-23 22:18:40 -07:00
James Tombleson ab026ef471 chi was replaced with echo 2024-04-23 22:18:07 -07:00
jtom38 feb9895eb7 Merge pull request 'moving code into the internal package' (#1) from features/reorganize-project into master
Reviewed-on: #1
2024-04-23 07:16:08 -07:00
James Tombleson 543e8d8eab moving code into the internal package 2024-04-23 07:15:38 -07:00
James Tombleson b0790359d5
bySourceId now supports paging and defaults to newest items (#41) 2023-02-04 21:43:07 -08:00
James Tombleson 118b7eb5e2
updated ArticlesList to always list the newest by default (#40) 2023-02-04 20:15:10 -08:00
James Tombleson 0ae1de0d33
updated the biild to always run swag and sqlc before build: (#39) 2023-01-31 17:47:04 -08:00
James Tombleson 8704680e82
Features/route cleanup (#38)
* moved route context to the request and not passed down

* dtoClient now returns a pointer to help on memory

* moved funcs to use the dto pointer
2023-01-31 12:39:54 -08:00
James Tombleson 90e739a56e
Features/get route updates (#37)
* cleaned up get routes

* added a func to query articles by page

* removed unused imports

* merged page with listArticles as a optional
2023-01-31 08:19:23 -08:00
James Tombleson ada453e08a
Features/delete source and first dto (#36)
* updated db, added dto for ListSources, and added delete source

* updated from model > models

* updated to models

* sources now sends back a standard message

* updated subscription routes to have beter logid and swagger details

* moved the dto objects back to modles given they are not bound to the database

* cleaned up how we return the error

* cleaned up swag and updated models to take from the base apistatusmodel. less human errors this way

* cleaned up swag and updated models

* swag updated

* updated queue to return a router and also renamed it as it will hold all queue info later on

* removed config tag

* added subscription details route

* article routes have been moved to support dto

* updated discordwebhooks to use dto

* updated discordwebhookqueue to return details on the items via dto

* removed the example routes

* updated sources to use dto

* subscriptions moved to dto

* generated swag
2023-01-22 10:12:55 -08:00
James Tombleson a2147294d5
updated db, added dto for ListSources, and added delete source (#35) 2022-12-07 22:48:31 -08:00
James Tombleson ff4075383a
Features/subscription/features for portal (#34)
* added a route to delete subscriptions based on the ID given

* added a new route to find a record based on the name and source

* added a route to query Discord Web Hooks by Server and Channel names

* tested the endpoints and they seem good to test more

* updated some routes for subscriptions and formatted files

* removed debug file

* fixing some panic calls

* swag
2022-12-04 08:49:17 -08:00
James Tombleson c161658487
New endpoints for the portal to use (#31)
* added a route to delete subscriptions based on the ID given

* added a new route to find a record based on the name and source

* added a route to query Discord Web Hooks by Server and Channel names

* tested the endpoints and they seem good to test more
2022-11-30 21:43:53 -08:00
James Tombleson 94da578c82
replaced sql command to order the new articles by source (#30) 2022-11-06 19:07:44 -08:00
James Tombleson 337151b39d
updated articles route to order by pubdate and updated swagger (#29) 2022-11-06 17:17:46 -08:00
James Tombleson 63b19452e5
removing build from merge. Only needed for PR (#28) 2022-08-21 20:06:01 -07:00
James Tombleson ac8eeaea01
Added discord management that was missing (#27) 2022-08-21 20:02:45 -07:00
James Tombleson b082c904ea
updated swagger for the new twitch change (#26) 2022-08-21 11:24:08 -07:00
James Tombleson 3be2b52688
updated new twitch given it no longer needs a url param (#25) 2022-08-21 11:18:28 -07:00
James Tombleson 06e50f956a
removed custom tags on source creation. Generates errors that we dont need currently (#19) 2022-07-27 10:56:44 -07:00