Commit Graph

773 Commits

Author SHA1 Message Date
LinkinStar b09e693d8b feat: tag add user id 2022-11-25 15:34:36 +08:00
aichy126 911d93d822 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 15:31:29 +08:00
aichy126 d5b2ab1557 Merge branch 'feat/0.5.0/timeline_ai' of git.backyard.segmentfault.com:opensource/answer into feat/0.5.0/timeline_ai 2022-11-25 15:30:46 +08:00
aichy126 60a5c4015f swagger 2022-11-25 15:30:29 +08:00
LinkinStar 8fa1b0c0d5 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 15:01:04 +08:00
LinkinStar d30cae05c7 fix: incorrect answer permission setting 2022-11-25 14:59:52 +08:00
LinkinStar fa00ea3828 fix: incorrect question permission setting 2022-11-25 14:55:56 +08:00
LinkinStar 205bbec2fd Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 12:23:49 +08:00
LinkinStar 565c0d5e18 Merge branch 'feat/0.5.0/timeline' into test 2022-11-25 12:23:08 +08:00
LinkinStar 645df9d20f feat: No operation is allowed when the reputation requirement is less than 0 2022-11-25 12:22:53 +08:00
LinkinStar e54ebacc22 feat: set question answer comment delete rank -1 2022-11-25 12:20:50 +08:00
aichy126 f6e881c64f Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 12:08:33 +08:00
LinkinStar ee7428cba5 feat: add question answer tag comment permission Control 2022-11-25 12:07:56 +08:00
aichy126 436829c2d1 update tag show 2022-11-25 11:40:54 +08:00
aichy126 d90f95157a Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 11:25:13 +08:00
aichy126 f6911df6d9 update GetUnreviewedRevisionList add userinfo 2022-11-25 11:22:29 +08:00
aichy126 e445415ab9 update review permission 2022-11-25 11:13:58 +08:00
aichy126 d819ef24ec update revision list 2022-11-25 11:08:19 +08:00
aichy126 2efc78cf30 Merge branch 'feat/0.5.0/timeline_ai' of git.backyard.segmentfault.com:opensource/answer into feat/0.5.0/timeline_ai 2022-11-25 10:47:14 +08:00
aichy126 3d532533cc 版本审核 2022-11-25 10:46:39 +08:00
LinkinStar 6ea8013df3 feat: handles audit permissions for different types of objects 2022-11-25 10:45:30 +08:00
LinkinStar 4907c6736a Merge branch 'feat/0.5.0/timeline' into test 2022-11-25 10:27:38 +08:00
LinkinStar 06d358438d feat: version upgrade add rank limiting condition 2022-11-25 10:27:13 +08:00
aichy126 fdb7ceb26e fix 2022-11-24 18:07:41 +08:00
aichy126 2c32be50b2 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-24 18:07:38 +08:00
aichy126 c08a9c852e fix NoNeedReview 2022-11-24 18:05:56 +08:00
LinkinStar bb5594722f feat: check user operation need review 2022-11-24 18:00:30 +08:00
aichy126 41352280f1 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-24 17:58:41 +08:00
aichy126 cacb9783b8 fix 2022-11-24 17:58:22 +08:00
aichy126 00a0c160b3 fix revision service 2022-11-24 17:52:21 +08:00
aichy126 a376489b49 update revision service 2022-11-24 17:47:54 +08:00
aichy126 f99d40d0b7 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-24 16:16:51 +08:00
aichy126 45bf3e4a45 swagger 2022-11-24 16:16:39 +08:00
aichy126 104f22579f Merge branch 'test' of git.backyard.segmentfault.com:opensource/answer into test 2022-11-24 16:13:24 +08:00
aichy126 a7f9d999cc Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-24 16:13:10 +08:00
aichy126 9fb1d82a5b fix router 2022-11-24 16:12:48 +08:00
LinkinStar 59a8b0f3bb feat: check rank permission 2022-11-24 16:11:43 +08:00
aichy126 ff50bc9422 fix is admin 2022-11-24 16:08:59 +08:00
aichy126 1e14c9ab54 update revision tag 2022-11-24 16:00:56 +08:00
aichy126 4e489736b5 Merge branch 'feat/0.5.0/timeline_ai' of git.backyard.segmentfault.com:opensource/answer into feat/0.5.0/timeline_ai 2022-11-24 15:48:10 +08:00
aichy126 7506806b67 update tag revision 2022-11-24 15:48:04 +08:00
LinkinStar afa66cb9f6 refactor: extract is admin flag from context 2022-11-24 15:24:04 +08:00
aichy126 977f9999a9 update tag revision 2022-11-24 15:02:31 +08:00
aichy126 d1f951d066 fix question revision 2022-11-24 14:31:28 +08:00
aichy126 7794dd2b5c update question revision 2022-11-24 14:27:31 +08:00
linkinstar fe5101b502 Merge branch 'fix/0.5.0/i18n-init' into 'test'
fix: if i18n file exist, try to replace it when init. #95

See merge request opensource/answer!276
2022-11-24 04:06:28 +00:00
LinkinStar 18e062623e fix: if i18n file exist, try to replace it when init. #95 2022-11-24 11:59:19 +08:00
aichy126 9b221b3c1a Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-24 11:50:45 +08:00
aichy126 ec0983395e Merge branch 'test' of git.backyard.segmentfault.com:opensource/answer into test 2022-11-24 11:50:19 +08:00
aichy126 fea5ff5fde fix answer list 2022-11-24 11:50:11 +08:00
aichy126 2f33d000a1 update question AddActivity 2022-11-24 11:29:58 +08:00
LinkinStar 5a16a24859 fix: not enough argument lead to compile error 2022-11-24 11:24:11 +08:00
aichy126 b5b1a10df4 update revision audit 2022-11-24 11:14:15 +08:00
LinkinStar e937597afe Merge branch 'feat/0.5.0/timeline' into test 2022-11-24 11:02:28 +08:00
LinkinStar bc2012a359 fix: timeline main object info that label information exists 2022-11-24 10:56:55 +08:00
LinkinStar 4e8283eac9 fix: timeline accept answer activity type format, parse the close problem correctly 2022-11-24 10:48:30 +08:00
LinkinStar 4e1da6acec feat: upgrade update migration config 2022-11-24 10:12:07 +08:00
LinkinStar 5e6a7955e8 Merge branch 'feat/0.5.0/timeline' into test 2022-11-24 10:04:06 +08:00
LinkinStar ba5243040e feat: upgrade add migration config 2022-11-24 09:58:58 +08:00
LinkinStar 63f624c2be Merge remote-tracking branch 'origin/feat/0.5.0/timeline' into test 2022-11-24 09:29:14 +08:00
LinkinStar dbc316c40d refactor: activity timeline extract user info and comment function 2022-11-23 19:30:38 +08:00
aichy126 d1f4793394 update GetUnreviewedRevisionList 2022-11-23 18:22:32 +08:00
aichy126 64a87bafb2 update unreviewed revisions router 2022-11-23 18:17:06 +08:00
aichy126 3cd52758f3 update unreviewed revision 2022-11-23 18:10:34 +08:00
LinkinStar 60d6e18cd4 fix: add user id when admin update answer status 2022-11-23 17:58:03 +08:00
LinkinStar 45bd739f51 fix: timeline revision tag detail title is display name 2022-11-23 17:32:59 +08:00
LinkinStar 60f4264e58 feat: answer and tag delete add activity 2022-11-23 17:02:44 +08:00
aichy126 a923e6f0b4 GetUnreviewedRevisionList 2022-11-23 16:52:27 +08:00
aichy126 6202877bdc GetUnreviewedRevisionList 2022-11-23 16:27:35 +08:00
LinkinStar ff38dc5a0c feat: activity timeline show vote activity 2022-11-23 16:12:48 +08:00
aichy126 a680944168 CheckCanUpdateQuestion 2022-11-23 15:19:17 +08:00
LinkinStar d399b9756f feat: activity timeline revision add tag detail 2022-11-23 14:21:11 +08:00
aichy126 1bf0d6365e update question tags 2022-11-23 12:07:06 +08:00
aichy126 5b005e652f fix admin update question 2022-11-23 11:38:39 +08:00
aichy126 7f7d11f58c Merge branch 'feat/0.5.0/timeline' into feat/0.5.0/timeline_ai 2022-11-23 11:20:15 +08:00
LinkinStar 191ec2a130 fix: remove unused tag search service 2022-11-23 11:19:06 +08:00
aichy126 ba46d08e04 swagger 2022-11-23 11:10:15 +08:00
aichy126 5547b2fe91 Merge branch 'ai_0.3_fix_del' into feat/0.5.0/timeline 2022-11-23 11:10:10 +08:00
LinkinStar 982d034252 feat: add timeline detail api 2022-11-23 11:07:41 +08:00
aichy126 19603b106e Merge branch 'ai/0.4.0/fix/tag' into feat/0.5.0/timeline 2022-11-23 10:58:36 +08:00
LinkinStar cd961eafc2 feat: add timeline api interface 2022-11-22 19:48:27 +08:00
aichy126 e27121f871 fix 2022-11-22 18:15:10 +08:00
aichy126 0df1ab82fa fix question tags update error 2022-11-22 18:10:44 +08:00
aichy126 b7e6d3ee35 fix delete question 2022-11-22 18:03:18 +08:00
aichy126 6ec9dbec87 update permission 2022-11-22 17:35:41 +08:00
aichy126 2676822331 fix question answer delete 2022-11-22 16:54:28 +08:00
aichy126 f216536e26 update question delete 2022-11-22 16:22:30 +08:00
aichy126 761944440c Merge branch 'main' into ai_0.3_fix_del 2022-11-22 16:19:42 +08:00
aichy126 4f1762f01a fix question delete 2022-11-22 16:13:55 +08:00
aichy126 6b983d472d fix tag update error 2022-11-22 11:37:37 +08:00
aichy126 76ace2c9a3 fix question delete 2022-11-22 11:12:08 +08:00
LinkinStar d36f758fba feat: add activity where needed 2022-11-21 19:28:02 +08:00
LinkinStar feb62afb95 feat: add activity queue 2022-11-21 17:59:52 +08:00
LinkinStar 6e0c41e769 feat: activity add cancelled_at field 2022-11-21 16:56:54 +08:00
LinkinStar 20f0a1b664 feat: question revision add tags 2022-11-21 16:51:13 +08:00
LinkinStar c3d0b110b7 fix: site info write set response empty array when site info not found 2022-11-21 11:30:44 +08:00
LinkinStar 17dd8e8930 Merge branch 'ai/0.4.0/tag' into test
# Conflicts:
#	internal/service/siteinfo/siteinfo_service.go
#	internal/service/siteinfo_common/siteinfo_service.go
2022-11-21 11:27:28 +08:00
LinkinStar ed9702ab8b fix: site info write set response empty array when site info not found 2022-11-21 11:24:41 +08:00
LinkinStar 3a713fb0c1 fix: set default version is 0.0.0, return site info is empty when site info can't found. fix dashboard return error when cache not found. 2022-11-21 11:16:37 +08:00
LinkinStar 04a12ee832 fix: set default version is 0.0.0, return site info is empty when site info can't found. fix dashboard return error when cache not found. 2022-11-21 11:10:13 +08:00
LinkinStar 89a79a02fa Merge branch 'ai/0.4.0/tag' into test
# Conflicts:
#	cmd/answer/wire_gen.go
#	internal/service/search_service.go
#	internal/service/tag_common/tag_common.go
2022-11-19 17:06:19 +08:00
LinkinStar 747323b49c fix: add tag common service to controller 2022-11-19 17:04:46 +08:00
LinkinStar 697a98951f doc: regenerate swagger doc 2022-11-19 14:03:16 +08:00
LinkinStar 3a2c8700c9 feat: add tag common repo unit test 2022-11-19 14:00:49 +08:00
LinkinStar dc1f83f819 refactor: tag repo remove site info service 2022-11-19 14:00:49 +08:00
LinkinStar 0467165264 refactor: separate tag common repo and tag repo 2022-11-19 14:00:40 +08:00
LinkinStar d833cadae2 fix: repo test set notification userID to correct 2022-11-19 13:59:51 +08:00
aichy126 a0b0adde8d update answer order by 2022-11-19 13:59:51 +08:00
LinkinStar 7868adcd7e feat: add tag common repo unit test 2022-11-18 20:11:19 +08:00
LinkinStar 432f8c3309 refactor: tag repo remove site info service 2022-11-18 19:56:10 +08:00
LinkinStar fd4469f3db refactor: separate tag common repo and tag repo 2022-11-18 18:23:27 +08:00
LinkinStar 4075739fec fix: repo test set notification userID to correct 2022-11-18 16:52:05 +08:00
aichy126 0c1a77d52c update answer order by 2022-11-18 16:40:09 +08:00
aichy 7336bae653 Merge branch 'ai/0.4.0/tag' into 'test'
Ai/0.4.0/tag

See merge request opensource/answer!255
2022-11-17 11:28:36 +00:00
aichy126 6742c5d707 update synonym error 2022-11-17 19:23:02 +08:00
aichy126 30039173c0 Merge branch 'ai/0.4.0/tag' of git.backyard.segmentfault.com:opensource/answer into ai/0.4.0/tag 2022-11-17 19:09:58 +08:00
aichy126 41bb72b110 check tags 2022-11-17 19:09:56 +08:00
LinkinStar 5c9e8333d3 Merge branch 'ai/0.4.0/tag' into test
# Conflicts:
#	internal/base/reason/reason.go
2022-11-17 19:02:11 +08:00
LinkinStar 8084870096 feat: change the original single form error return to multiple form error return 2022-11-17 18:59:09 +08:00
linkinstar e9dfeeb638 Merge branch 'ai/0.4.0/tag' into 'test'
Ai/0.4.0/tag

See merge request opensource/answer!252
2022-11-17 10:02:57 +00:00
LinkinStar 83ad1a185a feat: change the original single form error return to multiple form error return 2022-11-17 17:57:13 +08:00
aichy126 0519b558b7 update tag error 2022-11-17 17:46:02 +08:00
aichy126 045257cd07 Merge branch 'ai/0.4.0/tag' into test 2022-11-17 17:12:40 +08:00
aichy126 177b99f475 update tag recommend show 2022-11-17 17:12:27 +08:00
linkinstar 73c7ab7094 Merge branch 'ai/0.4.0/tag' into 'test'
feat: add recommend and reserved tag field migration

See merge request opensource/answer!251
2022-11-17 08:38:34 +00:00
杨光富 7c7a32d91d Merge branch 'fix/search' into 'test'
Fix/search

See merge request opensource/answer!248
2022-11-17 06:19:41 +00:00
kumfo 1b242a182c feat: add question_id to search result 2022-11-17 14:14:02 +08:00
linkinstar e47c5a7e26 Merge branch 'fix/0.4.0/user-status' into 'test'
Fix/0.4.0/user status

See merge request opensource/answer!247
2022-11-17 04:16:59 +00:00
LinkinStar e8ab1c4202 fix: user verified email will update email status. so user status cache should be updated. 2022-11-17 12:10:20 +08:00
LinkinStar f6095fd476 feat: add recommend and reserved tag field migration 2022-11-17 10:09:18 +08:00
aichy126 c9821f80ff Merge branch 'ai/0.4.0/tag' into test 2022-11-16 15:36:21 +08:00
aichy126 19075b869e fix ExistRecommend 2022-11-16 15:35:43 +08:00
aichy126 aca215a731 Merge branch 'ai/0.4.0/tag' into test 2022-11-16 15:31:20 +08:00
aichy126 952757e2da Merge branch 'ai/0.4.0/tag' of git.backyard.segmentfault.com:opensource/answer into ai/0.4.0/tag 2022-11-16 15:28:25 +08:00
aichy126 0863eec2a0 update tag show 2022-11-16 15:28:23 +08:00
LinkinStar 5361315104 Merge branch 'ai/0.4.0/tag' into test 2022-11-16 15:02:36 +08:00
LinkinStar 5dd8fa4e7f fix: remove site write required tag val 2022-11-16 15:02:11 +08:00
LinkinStar e91afef608 Merge branch 'ai/0.4.0/tag' into test 2022-11-16 14:40:25 +08:00
LinkinStar 59daaa5c5d fix: remove site write tag val 2022-11-16 14:40:04 +08:00
aichy 8ba55f5955 Merge branch 'ai/0.4.0/tag' into 'test'
update search show tags

See merge request opensource/answer!241
2022-11-16 03:56:20 +00:00
aichy126 5e26663906 update search show tags 2022-11-16 11:48:02 +08:00
LinkinStar 3a817bb6c8 fix: rename icon ext is ico 2022-11-16 10:58:17 +08:00
LinkinStar 53f6413d45 doc: update site legal info get swagger doc 2022-11-16 10:58:17 +08:00
aichy b08e20ff99 Merge branch 'ai/0.4.0/tag' into 'test'
Ai/0.4.0/tag

See merge request opensource/answer!240
2022-11-16 02:57:49 +00:00
aichy126 233afca9ca Merge branch 'ai/0.4.0/tag' of git.backyard.segmentfault.com:opensource/answer into ai/0.4.0/tag 2022-11-16 10:51:56 +08:00
aichy126 167bac52db update tags order 2022-11-16 10:51:54 +08:00
LinkinStar 59fb67c651 feat: save site write config return form error when tag not found 2022-11-16 10:38:15 +08:00
aichy126 67b7e7d2b1 error msg 2022-11-16 10:32:29 +08:00
aichy 5f1ebbd950 Merge branch 'ai/0.4.0/tag' into 'test'
update tag info add reserved

See merge request opensource/answer!238
2022-11-15 11:06:57 +00:00
aichy126 2abec78482 update tag info add reserved 2022-11-15 19:00:48 +08:00
LinkinStar b473a9e62a feat: tos save original and parsed text 2022-11-15 17:11:42 +08:00
LinkinStar d78d9e0415 fix: if site info is empty return empty json 2022-11-15 17:11:42 +08:00
aichy beb5603b01 Merge branch 'ai/0.4.0/tag' into 'test'
update search add question search tags

See merge request opensource/answer!236
2022-11-15 09:06:11 +00:00
aichy126 9e5196c0c2 update search add question search tags 2022-11-15 16:59:27 +08:00
linkinstar ef2b524f05 Merge branch 'feat/0.4.0/icon-customize' into 'test'
feat: branding support upload icon image

See merge request opensource/answer!235
2022-11-15 07:26:26 +00:00
LinkinStar 70842e18d8 feat: branding support upload icon image 2022-11-15 15:20:41 +08:00
linkinstar c299304b66 Merge branch 'ai/0.4.0/tag' into 'test'
Ai/0.4.0/tag

See merge request opensource/answer!234
2022-11-15 06:19:38 +00:00
LinkinStar 72866de5c1 fix: tag not exist error 2022-11-15 14:14:20 +08:00
aichy126 a66cf236ef admin add tag 2022-11-15 11:53:46 +08:00
kumfo baa24ec0d1 style: merge from test 2022-11-15 11:35:14 +08:00
LinkinStar ba64be6845 feat: site info update write config 2022-11-15 11:24:39 +08:00
LinkinStar f17c28ae1d Merge remote-tracking branch 'origin/ai/0.4.0/tag' into test
# Conflicts:
#	docs/docs.go
#	docs/swagger.json
#	docs/swagger.yaml
#	internal/base/constant/constant.go
#	internal/base/reason/reason.go
#	internal/controller_backyard/siteinfo_controller.go
#	internal/router/answer_api_router.go
#	internal/schema/siteinfo_schema.go
#	internal/service/siteinfo/siteinfo_service.go
2022-11-15 10:54:01 +08:00
aichy126 3662182ff3 update tags attribute 2022-11-15 10:40:54 +08:00
aichy126 3a992965df update recommendTag 2022-11-14 18:55:09 +08:00
kumfo 39f4b7342c feat: restructure the search 2022-11-14 18:47:22 +08:00
aichy126 baf0fce1c1 update reserved tags 2022-11-14 18:07:28 +08:00
aichy126 a390227c17 update reserved tags 2022-11-14 18:06:58 +08:00
linkinstar 81dc48c00b Merge branch 'feat/0.4.0/icon-customize' into 'test'
Feat/0.4.0/icon customize

See merge request opensource/answer!231
2022-11-14 09:11:19 +00:00
aichy126 678d903a09 verify question has recommend tag 2022-11-14 17:05:49 +08:00
LinkinStar d02f64b7a9 feat: site info add term of service and private policy 2022-11-14 17:04:25 +08:00
aichy126 d701ae60fb question tags add recommend 2022-11-14 16:44:48 +08:00
aichy126 2f6448b2c7 update recommend tag 2022-11-14 16:41:10 +08:00
LinkinStar f6fa850aa0 feat: unified file upload interface 2022-11-14 16:27:10 +08:00
LinkinStar 9e5c6c7a44 feat: add site info common service in tag service 2022-11-14 15:25:34 +08:00
LinkinStar 00336de025 feat: add site info write common service 2022-11-14 15:21:38 +08:00
LinkinStar cca5bcb59b feat: add site info tag config 2022-11-14 15:21:38 +08:00
LinkinStar 74ba5620bb feat: move logo field to site info 2022-11-14 15:21:38 +08:00
LinkinStar 6b63d17623 feat: add site info about branding 2022-11-14 15:21:38 +08:00
LinkinStar 23217f92b7 feat: add site info write common service 2022-11-14 15:21:17 +08:00
LinkinStar 5fed2e2608 feat: add site info tag config 2022-11-14 15:17:49 +08:00
LinkinStar 94c86fe3f8 feat: move logo field to site info 2022-11-14 14:56:56 +08:00
LinkinStar 6f815fb860 feat: add site info about branding 2022-11-14 11:50:00 +08:00
aichy126 b3d7816331 Merge branch 'ai_0.3_fix_del' into test 2022-11-11 15:51:15 +08:00
aichy126 c413bf3b09 update del Answer 2022-11-11 15:35:08 +08:00
LinkinStar 12b8dc726f doc: update the swagger documentation 2022-11-11 15:13:23 +08:00
linkinstar 2b1ad94791 Merge branch 'release/0.3.0' into 'main'
Release/0.3.0

See merge request opensource/answer!227
2022-11-11 06:24:10 +00:00
linkinstar 25763d20ff Merge branch 'ai_0.3_install_api' into 'test'
feat: modify the error information about the failure to create a table

See merge request opensource/answer!226
2022-11-11 04:20:38 +00:00
LinkinStar e00a03f2dd feat: modify the error information about the failure to create a table 2022-11-11 12:12:09 +08:00
aichy126 79ba518810 Merge branch 'ai_0.3_dashboard' into test 2022-11-11 11:55:46 +08:00
aichy126 ffec3a0b9c update dashboard cache 2022-11-11 11:53:44 +08:00
linkinstar d0ff926263 Merge branch 'ai_0.3_install_api' into 'test'
feat: validation returns the original tag for the error field

See merge request opensource/answer!224
2022-11-11 03:32:23 +00:00
aichy126 ff5ea64f09 Merge branch 'ai_0.3_dashboard' of git.backyard.segmentfault.com:opensource/answer into ai_0.3_dashboard 2022-11-11 11:28:09 +08:00
LinkinStar 0c4eeda383 feat: validation returns the original tag for the error field 2022-11-11 11:24:36 +08:00
aichy126 9707e1b223 git dir size 2022-11-11 11:23:56 +08:00
kumfo 902e6636be Merge branch 'main' into fix/search 2022-11-10 16:00:45 +08:00
linkinstar e2f914a4e6 Merge branch 'ai_0.3_install_api' into 'test'
fix: log format

See merge request opensource/answer!220
2022-11-10 07:36:14 +00:00
LinkinStar 3a8742f6fe fix: log format 2022-11-10 15:30:48 +08:00
linkinstar 9fe146220e Merge branch 'ai_0.3_install_api' into 'test'
Ai 0.3 install api

See merge request opensource/answer!218
2022-11-10 06:18:51 +00:00
LinkinStar c468d2ab23 feat: separate db connection and table check 2022-11-10 14:13:29 +08:00
LinkinStar 51e1c483f6 fix: remove time zone check 2022-11-10 13:03:07 +08:00
LinkinStar e30eaecee4 fix: remove time zone check 2022-11-10 13:02:19 +08:00
LinkinStar 7e11d6b82c fix: install check database add log 2022-11-10 12:13:42 +08:00
linkinstar ee412d2781 Merge branch 'ai_0.3_install_api' into 'test'
Ai 0.3 install api

See merge request opensource/answer!217
2022-11-10 03:41:11 +00:00
LinkinStar 3f5ac0a614 feat: add /50x web page 2022-11-10 11:32:11 +08:00
LinkinStar 555c1936ad fix: /install path will be redirected to /ˆ 2022-11-10 11:22:07 +08:00
LinkinStar a088fa439a feat: format site url to only scheme and host 2022-11-10 11:00:26 +08:00
linkinstar a6c4993d66 Merge branch 'ai_0.3_install_api' into 'test'
fix: upload add siteinfo service

See merge request opensource/answer!210
2022-11-09 09:49:50 +00:00
LinkinStar 498b7f4893 fix: upload add siteinfo service 2022-11-09 17:42:10 +08:00
LinkinStar b766824a4e feat: cut off answer html description 2022-11-09 16:24:52 +08:00
LinkinStar 5bce99208c feat: cut off answer html description 2022-11-09 16:24:25 +08:00
aichy126 7f49f8bcb1 fix uploads dir 2022-11-09 15:23:08 +08:00
aichy126 62a9eaaebe fix uploads dir 2022-11-09 15:22:50 +08:00
linkinstar 30be36a0fc Merge branch 'ai_0.3_install_api' into 'test'
Ai 0.3 install api

See merge request opensource/answer!205
2022-11-09 07:06:47 +00:00
aichy126 407e29f63d fix uploads dir 2022-11-09 15:00:17 +08:00
LinkinStar 55060c1a10 feat: user change email if email exist return form error 2022-11-09 14:59:07 +08:00
aichy126 21b7560f2c add dashboard cache 2022-11-09 14:58:15 +08:00
LinkinStar e81d9cfedd feat: database init when base-info install 2022-11-09 14:46:22 +08:00
LinkinStar 68fce365c8 fix: i18n file parsing error 2022-11-09 14:41:49 +08:00
LinkinStar 5d3ee17a25 fix: i18n file parsing error 2022-11-09 12:29:29 +08:00
LinkinStar 9509a9a964 feat: change site url from config file to database 2022-11-09 11:00:34 +08:00
LinkinStar 38c8f80849 feat: remove user status api 2022-11-09 10:24:27 +08:00
LinkinStar b474d3ade3 feat: set install router in release mode. remove install mock router. 2022-11-08 18:28:26 +08:00
aichy126 67e1ffcacf Merge branch 'ai_0.3_dashboard' into test 2022-11-08 11:35:56 +08:00
aichy126 607573d386 fix startTime 2022-11-08 11:33:48 +08:00
linkinstar b9fca38040 Merge branch 'ai_0.3_install_api' into 'test'
Ai 0.3 install api

See merge request opensource/answer!196
2022-11-07 10:11:18 +00:00
linkinstar 55d9c1265e Merge branch 'ai_0.3_dashboard' into 'test'
feat: add timezone validation

See merge request opensource/answer!197
2022-11-07 10:07:52 +00:00
LinkinStar d5a57589e6 feat: add site_url and contact_email validation 2022-11-07 18:03:51 +08:00
LinkinStar a29eca4a4d feat: add timezone validation 2022-11-07 17:45:36 +08:00
linkinstar 8f7b4785c2 Merge branch 'ai_0.3_dashboard' into 'test'
add dashboard smtp verification

See merge request opensource/answer!195
2022-11-07 08:51:41 +00:00
aichy126 f43e2e93a1 add dashboard smtp verification 2022-11-07 16:45:23 +08:00
LinkinStar 530532ab1c feat: change the default smtp configuration to empty 2022-11-07 16:44:48 +08:00
kumfo d40e686b73 Merge branch 'dev' into feat/cut-text 2022-11-07 16:06:05 +08:00
kumfo 8b312cde7e feat: unified processing excerpt 2022-11-07 16:05:01 +08:00
aichy126 8e9cd07045 Merge branch 'ai_0.3_dashboard' into test 2022-11-07 14:08:46 +08:00
aichy126 bf730b954a add version 2022-11-07 12:45:01 +08:00
LinkinStar 8ddc4cf44d update: site info service reference 2022-11-07 12:03:39 +08:00
LinkinStar 84106a99f5 feat: remove config file path 2022-11-04 18:36:33 +08:00
linkinstar 3eb193dffd Merge branch 'test' into 'ai_0.3_install_api'
# Conflicts:
#   internal/base/reason/reason.go
2022-11-04 09:33:01 +00:00
aichy126 e0c53bea11 update delete answer and question 2022-11-04 17:10:20 +08:00
LinkinStar f14040b9b8 feat: add install request limiting condition 2022-11-04 16:59:45 +08:00
aichy126 8f38d2a0af update delete answer or question 2022-11-04 16:59:16 +08:00
LinkinStar 9c8838a1b0 feat: install configuration files and initialize basic information 2022-11-04 15:59:21 +08:00
杨光富 4794146928 Merge branch 'fix/search' into 'dev'
fix: change from xorm builder union query to manual build query

See merge request opensource/answer!181
2022-11-04 07:06:32 +00:00
kumfo 7bea814bd4 fix: change from xorm builder union query to manual build query 2022-11-04 15:00:15 +08:00
LinkinStar 23b4a44ce3 feat: rewrite config file when install config 2022-11-04 11:30:53 +08:00
LinkinStar 914defc446 feat: add install api and functions 2022-11-03 20:09:04 +08:00
linkinstar b380a333c5 Merge branch 'ai_0.3_install_api' into 'test'
add siteinfo

See merge request opensource/answer!179
2022-11-03 08:47:02 +00:00
aichy126 2a849395f0 add siteinfo 2022-11-03 16:40:40 +08:00
LinkinStar d16ecc9962 update: use default language option in value 2022-11-03 16:12:23 +08:00
linkinstar 16eaeed7ff Merge branch 'test' into 'feat/language'
# Conflicts:
#   cmd/answer/wire_gen.go
#   internal/controller/lang_controller.go
2022-11-03 07:11:25 +00:00
linkinstar a9a59f801d Merge branch 'ai_0.3_install_api' into 'test'
add mock api

See merge request opensource/answer!175
2022-11-03 07:09:34 +00:00
LinkinStar 97fa333ea0 feat: user info response handling the default language 2022-11-03 15:09:12 +08:00
aichy126 961fd21b9c add mock install api 2022-11-03 14:56:47 +08:00
aichy126 6b13eca4ef add mock api 2022-11-03 14:55:08 +08:00
LinkinStar eb1cfd9aa8 style: reformat get site info code 2022-11-03 14:54:06 +08:00
LinkinStar 0ce3b14bd2 fix: swagger wrong request parameter 2022-11-03 14:54:00 +08:00
aichy b597bd43b8 Merge branch 'feat/language' into 'test'
feat: add default language option

See merge request opensource/answer!174
2022-11-03 06:48:33 +00:00
LinkinStar 1bcd3abbcb feat: add default language option 2022-11-03 14:40:43 +08:00
LinkinStar 08d1facf22 fix: To regenerate the wire 2022-11-03 14:26:11 +08:00
linkinstar 86e65ed238 Merge branch 'ai_0.3_install_api' into 'test'
update install api

See merge request opensource/answer!172
2022-11-03 04:01:14 +00:00
aichy126 0306ee01ed update install api 2022-11-03 11:46:54 +08:00
linkinstar cd8b3103d0 Merge branch 'test' into 'ai_0.3_dashboard'
# Conflicts:
#   cmd/answer/wire_gen.go
2022-11-03 03:14:29 +00:00
linkinstar 7934ec513c Merge branch 'feat/timezone' into 'test'
style: reformat get site info code

See merge request opensource/answer!170
2022-11-03 03:13:07 +00:00
LinkinStar b1d2eb0c1d feat: dashboard add time zone 2022-11-03 11:12:20 +08:00
LinkinStar b7f7fb7201 style: reformat get site info code 2022-11-03 10:35:19 +08:00
LinkinStar b2256a5d1b fix: swagger wrong request parameter 2022-11-03 10:35:15 +08:00
LinkinStar d091d8d566 feat: add time zone config 2022-11-03 10:35:03 +08:00
LinkinStar 2ad8b8f4a9 style: reformat get site info code 2022-11-03 10:33:48 +08:00
aichy a6537222c7 Merge branch 'ai_0.3_dashboard' into 'test'
update dashboardInfo

See merge request opensource/answer!166
2022-11-02 10:16:12 +00:00
aichy126 cfcc4c69e3 update dashboardInfo 2022-11-02 18:07:59 +08:00
aichy126 1556d815cf add install api 2022-11-02 18:02:23 +08:00
aichy 6d9e5578dc Merge branch 'test' into 'ai_0.3_install_api'
# Conflicts:
#   internal/router/ui.go
2022-11-02 09:57:36 +00:00
aichy126 cd7f80a189 add demo install api 2022-11-02 17:55:58 +08:00
aichy126 6ece061e37 update install api 2022-11-02 17:40:11 +08:00
aichy126 784f9631f7 update install api 2022-11-02 17:30:02 +08:00
aichy126 b78f3061cb add install web api 2022-11-02 17:09:16 +08:00
linkinstar 436ce151bc Merge branch 'ai_0.3_dashboard' into 'test'
Ai 0.3 dashboard

See merge request opensource/answer!163
2022-11-02 08:50:38 +00:00
linkinstar de6c61a678 Merge branch 'feat/language' into 'test'
fix: move i18n dir

See merge request opensource/answer!164
2022-11-02 08:41:46 +00:00
LinkinStar 412edc1ba4 fix: move i18n dir 2022-11-02 16:35:41 +08:00
aichy126 e84a681ce4 add dashboard info 2022-11-02 16:29:10 +08:00
linkinstar 259a88a08d Merge branch 'feat/timezone' into 'test'
fix: swagger wrong request parameter

See merge request opensource/answer!162
2022-11-02 08:08:35 +00:00
LinkinStar 11ebf6e96b fix: swagger wrong request parameter 2022-11-02 16:01:17 +08:00
aichy126 872689b93a add dashboard service 2022-11-02 15:50:32 +08:00
linkinstar ada9daebf6 Merge branch 'feat/language' into 'test'
Feat/language

See merge request opensource/answer!161
2022-11-02 07:33:57 +00:00
LinkinStar 720754c8bb feat: support to config the default language 2022-11-02 15:25:27 +08:00
LinkinStar 18e880b9c8 feat: add time zone config 2022-11-02 15:02:27 +08:00
linkinstar fa9536c5ca Merge branch 'ai_fix_user_avatar' into 'main'
fix AvatarInfo  json.Unmarshal error

See merge request opensource/answer!157
2022-11-02 03:52:35 +00:00
aichy126 27e3e2ec8c fix AvatarInfo json.Unmarshal error 2022-11-02 11:46:26 +08:00
杨光富 861477234a Merge branch 'fix/search' into 'main'
Fix/search

See merge request opensource/answer!156
2022-11-02 02:23:35 +00:00
kumfo c6d703321f feat: admin's answer list filter by question id 2022-11-01 18:15:18 +08:00
杨光富 aa9ba8a3f6 Merge branch 'feat/backyard-search' into 'main'
Feat/backyard search

See merge request opensource/answer!152
2022-11-01 09:30:41 +00:00
杨光富 0dfcc0a3b8 Merge branch 'fix/search' into 'main'
Fix/search

See merge request opensource/answer!151
2022-11-01 09:28:39 +00:00
linkinstar 2f277921bb Merge branch 'ai_fix_user_avatar' into 'main'
fix user avatar Unmarshal

See merge request opensource/answer!150
2022-11-01 09:28:17 +00:00
kumfo c3f42f1d9e fix: search sql parse error when query words is empty 2022-11-01 17:20:34 +08:00
aichy126 92fbdbbc81 fix user avatar Unmarshal 2022-11-01 17:05:12 +08:00
kumfo d9bddb8210 feat: admin's id search condition 2022-11-01 16:51:01 +08:00
LinkinStar c10930d160 fix: revision use created_at as the condition 2022-11-01 16:27:33 +08:00
LinkinStar 425159ecc3 merge: repo unit test 2022-11-01 16:22:51 +08:00
LinkinStar cec446047d Merge branch 'main' into feat/repo-unit-test
# Conflicts:
#	cmd/answer/wire_gen.go
#	go.mod
#	go.sum
#	internal/controller/user_controller.go
#	internal/repo/notification/notification_repo.go
#	internal/repo/revision/revision_repo.go
#	internal/repo/tag/tag_rel_repo.go
#	internal/repo/tag/tag_repo.go
#	internal/schema/user_schema.go
2022-11-01 16:17:03 +08:00
LinkinStar e91ef5c444 feat: add sqlite3 and update go mod 2022-11-01 15:41:21 +08:00
LinkinStar 8232e1ec2d style: formatting naming 2022-11-01 15:38:06 +08:00
LinkinStar 6e5d89d593 Merge branch 'github-main'
# Conflicts:
#	go.mod
#	internal/entity/answer_entity.go
#	internal/schema/question_schema.go
#	internal/service/user_service.go
2022-11-01 15:37:22 +08:00
LinkinStar 014472a37b style: formatting naming 2022-11-01 15:27:37 +08:00
Tai Groot 59e2e1f304
Running gofumpt against repo (#49)
* starting on gofumpt

* continuing on gofumpt

* continuing on gofumpt

* finish gofumpt review

* added changes requested by LinkinStars' review

Co-authored-by: LinkinStars <linkinstar@foxmail.com>
2022-11-01 15:25:44 +08:00
edocevol c8175744aa refactor: repo code should procees error 2022-11-01 15:12:20 +08:00
kumfo 81083af8ea Merge branch 'main' into feat/backyard-search 2022-11-01 09:12:41 +08:00
kumfo bd888c121a feat: admin's question, answer and user search 2022-11-01 09:12:12 +08:00
linkinstar 494abd9d5b Merge branch 'ai_update_user_avatar' into 'main'
update user change email

See merge request opensource/answer!136
2022-10-31 08:59:47 +00:00
aichy126 220eefc2e7 update user change email 2022-10-31 16:53:59 +08:00
aichy126 302150aa6e update user change email 2022-10-31 16:50:38 +08:00
linkinstar 0eb6d16e55 Merge branch 'feat/sqlite3-default' into 'main'
feat: use sqlite for default initialization database

See merge request opensource/answer!135
2022-10-31 08:35:55 +00:00
LinkinStar 05986a3249 feat: use sqlite for default initialization database 2022-10-31 16:20:58 +08:00
aichy126 beed798aa6 fix userlist update avatar 2022-10-31 16:13:01 +08:00
aichy126 0ec198bad0 update AvatarInfo to show img 2022-10-31 11:04:51 +08:00
linkinstar 67b59cf1df Merge branch 'ci/sqlite' into 'main'
ci: update dockerfile and makefile for sqlite embed issue

See merge request opensource/answer!121
2022-10-29 02:54:36 +00:00
LinkinStar 1cd83f4e87 feat: change default cache dir to data, create dir if not exist. 2022-10-28 20:24:04 +08:00
LinkinStar 95cb136e3f feat: add user repo unit test 2022-10-28 19:28:08 +08:00
LinkinStar 9c1df37e82 feat: user info api allow no login user use and return empty data 2022-10-28 17:13:49 +08:00
kumfo d353b8519b Merge remote-tracking branch 'origin/feat/repo-unit-test' into feat/repo-unit-test 2022-10-28 17:12:32 +08:00
kumfo ddb612fac7 feat: revision repo test 2022-10-28 17:12:22 +08:00
LinkinStar 915f3d1c94 feat: add reason repo unit test 2022-10-28 17:02:24 +08:00
LinkinStar ccbf42c685 feat: add tag-rel repo unit test 2022-10-28 16:36:08 +08:00
linkinstar bf1a165554 Merge branch 'feat/change-email' into 'main'
Feat/change email

See merge request opensource/answer!127
2022-10-28 08:26:53 +00:00
aichy126 9f2799996a ChangeEmail add email status 2022-10-28 16:21:09 +08:00
aichy126 f8f35a39b1 ChangeEmail add email status 2022-10-28 16:07:14 +08:00
linkinstar a613315f4f Merge branch 'ai_user_avatar' into 'main'
update userinfo  show user set avatar

See merge request opensource/answer!125
2022-10-28 07:53:27 +00:00
aichy126 8fb4474052 update swagger 2022-10-28 15:46:05 +08:00
aichy126 5ecac4dda3 update userinfo show user set avatar 2022-10-28 15:43:37 +08:00
linkinstar 5e89f4031b Merge branch 'ai_user_avatar' into 'main'
user avatar save

See merge request opensource/answer!123
2022-10-28 07:37:07 +00:00
aichy126 9b6a35d88b update set user avatar 2022-10-28 15:21:23 +08:00
aichy126 d41fd7a467 add Captcha 2022-10-28 15:07:19 +08:00
aichy126 90deaf027b user avatar save 2022-10-28 14:53:44 +08:00
LinkinStar b162fcbee0 feat: user can change email when email hasn't been verified. 2022-10-28 14:42:27 +08:00
aichy126 7f66bb3262 fix user api ErrorResponse 2022-10-28 14:14:20 +08:00
aichy126 1563c6b583 update avatar img size 2022-10-28 11:15:46 +08:00
linkinstar 273325db31 Merge branch 'ai_fix_something' into 'main'
add avatar Thumbnail image

See merge request opensource/answer!117
2022-10-28 02:49:24 +00:00
aichy126 7496897855 fix img upload 2022-10-28 10:43:53 +08:00
aichy126 8b399dbe66 update img upload 2022-10-28 10:29:26 +08:00
aichy126 bab71a28eb fix AvatarThumbFile 2022-10-28 09:52:10 +08:00
aichy126 a4c7517280 add avatar Thumbnail image
add avatar Thumbnail image
2022-10-27 22:01:53 +08:00
LinkinStar 473cdc374b fix: current sqlite3 compilation problem, temporarily removed. wait to merge with the set CGO_CFLAGS branch. 2022-10-27 21:26:27 +08:00
LinkinStar dcf14df50a feat: add tag repo unit test 2022-10-27 19:21:49 +08:00
aichy126 3f48de2fe9 add avatar middleware 2022-10-27 18:09:27 +08:00
LinkinStar 792ef23218 style: repo change directories 2022-10-27 15:40:11 +08:00
LinkinStar 3c8bdcde29 feat: add config repo unit test 2022-10-27 12:00:03 +08:00
LinkinStar 2e13736ee7 feat: add siteinfo repo unit test 2022-10-27 11:23:16 +08:00
linkinstar 5d8e6582d0 Merge branch 'feat/init-admin' into 'main'
feat: init admin set rank

See merge request opensource/answer!114
2022-10-27 02:53:03 +00:00
LinkinStar 413700ece7 feat: init admin set rank 2022-10-27 10:47:08 +08:00
aichy126 c3b096edc5 fix question tags search 2022-10-27 10:41:57 +08:00
LinkinStar f74c468021 feat: add notification repo unit test 2022-10-26 18:01:01 +08:00