Commit Graph

397 Commits

Author SHA1 Message Date
LinkinStar 205bbec2fd Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 12:23:49 +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
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 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
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 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 a7f9d999cc Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-24 16:13:10 +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 7506806b67 update tag revision 2022-11-24 15:48: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
aichy126 9b221b3c1a Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-24 11:50:45 +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 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 3cd52758f3 update unreviewed revision 2022-11-23 18:10:34 +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 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 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 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
aichy 7336bae653 Merge branch 'ai/0.4.0/tag' into 'test'
Ai/0.4.0/tag

See merge request 
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 
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
linkinstar e47c5a7e26 Merge branch 'fix/0.4.0/user-status' into 'test'
Fix/0.4.0/user status

See merge request 
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
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 0863eec2a0 update tag show 2022-11-16 15:28:23 +08:00
aichy 8ba55f5955 Merge branch 'ai/0.4.0/tag' into 'test'
update search show tags

See merge request 
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
aichy b08e20ff99 Merge branch 'ai/0.4.0/tag' into 'test'
Ai/0.4.0/tag

See merge request 
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 
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
linkinstar ef2b524f05 Merge branch 'feat/0.4.0/icon-customize' into 'test'
feat: branding support upload icon image

See merge request 
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 
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
linkinstar 81dc48c00b Merge branch 'feat/0.4.0/icon-customize' into 'test'
Feat/0.4.0/icon customize

See merge request 
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 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 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 2b1ad94791 Merge branch 'release/0.3.0' into 'main'
Release/0.3.0

See merge request 
2022-11-11 06:24:10 +00: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
aichy126 9707e1b223 git dir size 2022-11-11 11:23:56 +08:00
linkinstar ee412d2781 Merge branch 'ai_0.3_install_api' into 'test'
Ai 0.3 install api

See merge request 
2022-11-10 03:41:11 +00: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 
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 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 
2022-11-09 07:06:47 +00: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 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
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 8f7b4785c2 Merge branch 'ai_0.3_dashboard' into 'test'
add dashboard smtp verification

See merge request 
2022-11-07 08:51:41 +00:00
aichy126 f43e2e93a1 add dashboard smtp verification 2022-11-07 16:45:23 +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 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 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
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 97fa333ea0 feat: user info response handling the default language 2022-11-03 15:09:12 +08:00
LinkinStar eb1cfd9aa8 style: reformat get site info code 2022-11-03 14:54:06 +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 
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 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 
2022-11-02 10:16:12 +00:00
aichy126 cfcc4c69e3 update dashboardInfo 2022-11-02 18:07:59 +08:00
linkinstar 436ce151bc Merge branch 'ai_0.3_dashboard' into 'test'
Ai 0.3 dashboard

See merge request 
2022-11-02 08:50:38 +00:00
aichy126 e84a681ce4 add dashboard info 2022-11-02 16:29:10 +08:00
aichy126 872689b93a add dashboard service 2022-11-02 15:50:32 +08:00
LinkinStar 720754c8bb feat: support to config the default language 2022-11-02 15:25:27 +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 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
Tai Groot 59e2e1f304
Running gofumpt against repo ()
* 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
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
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
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 95cb136e3f feat: add user repo unit test 2022-10-28 19:28:08 +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 bf1a165554 Merge branch 'feat/change-email' into 'main'
Feat/change email

See merge request 
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
aichy126 5ecac4dda3 update userinfo show user set avatar 2022-10-28 15:43:37 +08:00
aichy126 9b6a35d88b update set user avatar 2022-10-28 15:21:23 +08:00
aichy126 90deaf027b user avatar save 2022-10-28 14:53:44 +08:00
aichy126 1563c6b583 update avatar img size 2022-10-28 11:15:46 +08: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 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 3c8bdcde29 feat: add config repo unit test 2022-10-27 12:00:03 +08:00