{"id":505482,"date":"2026-11-30T22:17:30","date_gmt":"2026-11-30T19:17:30","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=505482"},"modified":"2026-11-30T22:17:30","modified_gmt":"2026-11-30T19:17:30","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=505482","title":{"rendered":"\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043a\u0430\u043a \u0440\u0435\u043b\u044c\u0441\u044b \u0434\u043b\u044f \u0418\u0418-\u0430\u0433\u0435\u043d\u0442\u0430"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/57\/70\/c8\/5770c832cb2ea78ac0e7c769fb181df0.jpeg\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/57\/70\/c8\/5770c832cb2ea78ac0e7c769fb181df0.jpeg 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/57\/70\/c8\/5770c832cb2ea78ac0e7c769fb181df0.jpeg 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435\u043c, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u0451\u043b, \u043f\u043e\u043a\u0430 \u043f\u0438\u0441\u0430\u043b \u043d\u0430 Go \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0440\u0435\u0442\u0440\u043e\u0441\u043f\u0435\u043a\u0442\u0438\u0432 \u0432 Agile-\u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0445. \u042f \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043d\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u043b \u0435\u0451 \u0436\u0451\u0441\u0442\u043a\u043e\u0439. \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u0437\u0436\u0435 \u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043a\u043e\u0434\u0430 \u0430\u0433\u0435\u043d\u0442\u0430, \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043f\u043e\u0432\u0435\u0440\u0445 \u0442\u0430\u043a\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0435\u043c\u0443 \u043d\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043d\u0438\u0447\u0435\u0433\u043e, \u043a\u0440\u043e\u043c\u0435 \u043a\u0430\u043a \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u043f\u043e \u043c\u043e\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c. \u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435, \u0433\u0434\u0435 \u0436\u0451\u0441\u0442\u043a\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u043d\u0435 \u0437\u0430\u0434\u0430\u043b: \u043d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0432\u0442\u043e\u0440\u0443\u044e \u0444\u0438\u0447\u0443, \u0430 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u043f\u043e\u0447\u0442\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e. \u041c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0430, \u0430 \u0431\u044d\u043a\u0435\u043d\u0434 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0430 \u0434\u0430\u0436\u0435 \u0434\u0435\u0448\u0451\u0432\u0430\u044f. \u0414\u0430\u043b\u0435\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435:<\/p>\n<ul>\n<li>\n<p>\u0427\u0442\u043e \u0437\u0430 \u0441\u0435\u0440\u0432\u0438\u0441<\/p>\n<\/li>\n<li>\n<p>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043a\u0430\u043a \u043a\u0430\u0440\u043a\u0430\u0441<\/p>\n<\/li>\n<li>\n<p>\u0410\u0433\u0435\u043d\u0442 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>\u0425\u0430\u043e\u0441 \u0431\u0435\u0437 \u0447\u0451\u0442\u043a\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0430<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0432\u043e\u0434\u044b<\/p>\n<\/li>\n<\/ul>\n<h2>\u0427\u0442\u043e \u0437\u0430 \u0441\u0435\u0440\u0432\u0438\u0441<\/h2>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/bd\/d2\/37\/bdd2375bb13ed2f25ec23043995690e1.png\" alt=\"\u0421\u0445\u0435\u043c\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/webt\/bd\/d2\/37\/bdd2375bb13ed2f25ec23043995690e1.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/webt\/bd\/d2\/37\/bdd2375bb13ed2f25ec23043995690e1.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0421\u0445\u0435\u043c\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f<\/figcaption><\/div>\n<\/figure>\n<p>Simple Retro &#8212; \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0440\u0435\u0442\u0440\u043e\u0441\u043f\u0435\u043a\u0442\u0438\u0432 \u0432 Agile-\u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0445, \u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0432 \u043d\u0451\u043c &#8212; \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430. \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u0430 \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0438\u0439 \u0441\u043f\u0440\u0438\u043d\u0442 \u0431\u044b\u043b\u043e \u0445\u043e\u0440\u043e\u0448\u043e, \u0447\u0435\u0433\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u0438 \u0447\u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u0445. \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e \u043f\u0438\u0448\u0443\u0442 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438, \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u044e\u0442 \u0438\u0445 \u043f\u043e \u0442\u0435\u043c\u0430\u043c, \u0433\u043e\u043b\u043e\u0441\u0443\u044e\u0442, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0442 \u0441\u0430\u043c\u044b\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u0441 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438. \u0412\u0441\u0451 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u0449\u0435\u0439 \u0434\u043e\u0441\u043a\u0435.<\/p>\n<p>\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043f\u044f\u0442\u0438 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043d\u0430 Go (\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e, \u043a\u0440\u043e\u043c\u0435 gateway, \u0441\u0432\u043e\u044f \u0431\u0430\u0437\u0430 PostgreSQL), RabbitMQ, Redis \u0434\u043b\u044f \u043b\u0438\u043c\u0438\u0442\u043e\u0432 \u0438 \u043a\u044d\u0448\u0430, Jaeger \u0434\u043b\u044f \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0438 \u0438 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430 \u043d\u0430 Next.js.<\/p>\n<p>\u0414\u043b\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441 Team: \u0432 \u043d\u0451\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 CRUD-\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0438 \u043d\u0430 \u043d\u0438\u0445 \u0445\u043e\u0440\u043e\u0448\u043e \u0432\u0438\u0434\u043d\u043e, \u043a\u0430\u043a \u0430\u0433\u0435\u043d\u0442 \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b\u0441\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. \u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 &#8212; \u043f\u0440\u0438\u043c\u0435\u0440 \u0447\u0430\u0441\u0442\u0438, \u0433\u0434\u0435 \u0436\u0451\u0441\u0442\u043a\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u043d\u0435 \u0431\u044b\u043b\u043e.<\/p>\n<h2>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043a\u0430\u043a \u043a\u0430\u0440\u043a\u0430\u0441<\/h2>\n<p>\u0421\u043b\u043e\u0438 \u044f \u043f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0438\u0437 \u0447\u0438\u0441\u0442\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. \u0421\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u043e \u043d\u0435\u0451 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0435\u043e\u0440\u0438\u044e \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443, \u043f\u043e\u043a\u0430\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e, \u0447\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e\u0434\u0435\u043b\u0451\u043d \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435 \u0441\u043b\u043e\u044f: \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0439 (\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b), \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439, \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u044b. \u041f\u0440\u043e\u0439\u0434\u0451\u043c\u0441\u044f \u043f\u043e \u043d\u0438\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u0434\u043d\u043e\u0439 \u0440\u0443\u0447\u043a\u0438, \u0441\u043c\u0435\u043d\u044b \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<h3>\u0422\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0439 \u0441\u043b\u043e\u0439<\/h3>\n<p>\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437\u0432\u043d\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0438\u0445 \u0432 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435, \u0447\u0435\u0440\u0435\u0437 Data Transfer Object (\u0434\u0430\u043b\u0435\u0435 dto). \u0421\u0430\u043c \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0432\u0438\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0443. \u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u044e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u043f\u0440\u0438\u0448\u0451\u043b \u0437\u0430\u043f\u0440\u043e\u0441: \u0438\u0437 HTTP, gRPC \u0438\u043b\u0438 \u0442\u0435\u0441\u0442\u0430.<\/p>\n<pre><code class=\"go\">\/\/ TeamUsecase \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0438.type TeamUsecase interface {ChangeName(context.Context, dto.ChangeTeamNameInput) error...}\/\/ ChangeTeamName \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a gRPC \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u043e \u0435\u0435 id.func (s *Server) ChangeTeamName(ctx context.Context, req *proto.ChangeTeamNameRequest) (*emptypb.Empty, error) {\/\/ (\u0412\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442, \u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u043b\u044f \u0432\u043e\u043e\u0431\u0449\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u044b.)teamName := strings.TrimSpace(req.GetName())if teamName == \"\" {return &amp;emptypb.Empty{}, status.Error(codes.InvalidArgument, \"team name is required\")}...input := dto.ChangeTeamNameInput{Name: teamName, ID: teamID}if err := s.Team.ChangeName(ctx, input); err != nil {return &amp;emptypb.Empty{}, MapUsecaseErrorToGRPC(err)}return &amp;emptypb.Empty{}, nil}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<h3>\u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439<\/h3>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/11\/8e\/28\/118e284b85a5332c69d1b67309fdc3df.png\" alt=\"\u0421\u0445\u0435\u043c\u0430 \u0431\u0438\u0437\u043d\u0435\u0441 \u0441\u043b\u043e\u044f \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/webt\/11\/8e\/28\/118e284b85a5332c69d1b67309fdc3df.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/webt\/11\/8e\/28\/118e284b85a5332c69d1b67309fdc3df.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0421\u0445\u0435\u043c\u0430 \u0431\u0438\u0437\u043d\u0435\u0441 \u0441\u043b\u043e\u044f \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432<\/figcaption><\/div>\n<\/figure>\n<p>\u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u00ab\u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u00bb, \u043a\u0442\u043e \u0435\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0438 \u0441 \u043a\u0430\u043a\u043e\u0439 \u0431\u0430\u0437\u043e\u0439 \u0438\u043b\u0438 \u0431\u0440\u043e\u043a\u0435\u0440\u043e\u043c \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0412\u0441\u0451, \u0447\u0442\u043e \u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0440\u0443\u0436\u0438, \u043e\u043d \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u0432 \u0441\u0432\u043e\u0451\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435. \u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435, \u0430 \u0437\u0430\u0442\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435. \u042d\u0442\u0443 \u0441\u0432\u044f\u0437\u044c \u043d\u0435 \u043e\u0431\u043e\u0439\u0442\u0438: \u043a\u043e\u0434 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u0414\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441 \u0418\u0418-\u0430\u0433\u0435\u043d\u0442\u043e\u043c \u044d\u0442\u043e \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e.<\/p>\n<p>\u041c\u0435\u0442\u043e\u0434 \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0447\u0438\u0442\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0447\u0451\u0442\u043a\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u0430 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u0432\u044b\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u0432 \u0434\u043e\u043c\u0435\u043d\u044b \u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u044b.<\/p>\n<pre><code class=\"go\">\/\/ Postgres \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0411\u0414 Postgres.type Postgres interface {UpdateTeamName(ctx context.Context, team domain.Team) error...}\/\/ ChangeName \u043c\u0435\u0442\u043e\u0434 \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0438 Team \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u043e \u0435\u0435 id.func (t *Team) ChangeName(parentCtx context.Context, input dto.ChangeTeamNameInput) (err error) {ctx, span := tracing.Start(parentCtx, \"usecase.team.ChangeName\")defer tracing.End(span, &amp;err)log := LoggerFromContext(ctx)userID, err := userIDFromContext(ctx)if err != nil {log.Warn(\"missing user_id in context\")return domain.ErrUnauthenticated}teamID, err := uuid.Parse(input.ID)if err != nil {log.Warn(\"invalid team_id format\", slog.String(\"team_id\", input.ID))return domain.ErrUUIDParse}\/\/ \u0410\u0434\u0430\u043f\u0442\u0435\u0440 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u043e\u043c\u0435\u043d \u00ab\u041a\u043e\u043c\u0430\u043d\u0434\u0430\u00bb.team, err := t.postgres.GetTeam(ctx, teamID)if err != nil {return err}\/\/ \u041f\u0440\u0430\u0432\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0434\u043e\u043c\u0435\u043d.if !team.IsOwnedBy(userID) {log.Warn(\"user is not team owner\")return domain.ErrForbidden}\/\/ \u041d\u043e\u0432\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0434\u043e\u043c\u0435\u043d.if err := team.ChangeName(input.Name); err != nil {log.Warn(\"team name validation failed\", slog.String(\"error\", err.Error()))return err}\/\/ \u0412 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0443\u0445\u043e\u0434\u0438\u0442 \u0434\u043e\u043c\u0435\u043d, \u0430 \u043d\u0435 \u0433\u043e\u043b\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.return t.postgres.UpdateTeamName(ctx, team)}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<h3>\u0414\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/h3>\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/b2\/b5\/80\/b2b5804204b2e664bfb94150e2c6414b.png\" alt=\"\u0421\u0445\u0435\u043c\u0430 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b\" sizes=\"(max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/webt\/b2\/b5\/80\/b2b5804204b2e664bfb94150e2c6414b.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/webt\/b2\/b5\/80\/b2b5804204b2e664bfb94150e2c6414b.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u0421\u0445\u0435\u043c\u0430 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u0446\u0435\u043d\u0442\u0440\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043b\u0435\u0436\u0430\u0442 \u0434\u043e\u043c\u0435\u043d\u044b. \u042d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b Go \u0441 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u0430\u0432\u0438\u043b\u0430. \u0414\u043e\u043c\u0435\u043d \u00ab\u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u00bb, \u043e\u0442\u043a\u0443\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043a\u0443\u0434\u0430 \u043e\u043d\u0438 \u0443\u0439\u0434\u0443\u0442, \u0438 \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0436\u0438\u043b\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c, \u0430 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. \u0417\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u044d\u0442\u0438 \u0434\u0432\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u043d\u0438 \u0435\u0449\u0451 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f.<\/p>\n<pre><code class=\"go\">\/\/ Team \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.type Team struct {ID        uuid.UUIDOwnerID   uuid.UUIDName      stringCreatedAt time.Time}\/\/ ChangeName \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.func (t *Team) ChangeName(newName string) error {newName = strings.TrimSpace(newName)if newName == \"\" {return ValidationError{Message: \"team name required\"}}if len(newName) &gt; 255 {return ValidationError{Message: \"team name too long\"}}t.Name = newNamereturn nil}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<h3>\u0410\u0434\u0430\u043f\u0442\u0435\u0440\u044b<\/h3>\n<p>\u041f\u043e\u0434 \u044d\u0442\u0438\u043c \u043c\u043e\u0434\u043d\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0451, \u0447\u0442\u043e \u0445\u043e\u0434\u0438\u0442 \u043d\u0430\u0440\u0443\u0436\u0443: \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441, \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0431\u0440\u043e\u043a\u0435\u0440 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u0410\u0434\u0430\u043f\u0442\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0432 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0435, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. \u0412\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0432 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0435.<\/p>\n<pre><code class=\"go\">\/\/ UpdateTeamName \u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u043e \u0435\u0435 id \u0438 id \u0435\u0435 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430.func (p *Postgres) UpdateTeamName(ctx context.Context, team domain.Team) error {res, err := p.GetDB(ctx).Exec(ctx, UpdateTeamNameQuery, team.Name, team.ID, team.OwnerID)if err != nil {\/\/ ...\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043a\u0438}if res.RowsAffected() == 0 {return domain.ErrForbidden \/\/ &lt;- \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430}return nil}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<h2>\u0410\u0433\u0435\u043d\u0442 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b<\/h2>\n<p>\u0412\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u043a \u0442\u0435\u043c\u0435 \u0441\u0442\u0430\u0442\u044c\u0438. \u041f\u043e\u0437\u0436\u0435 \u044f \u043d\u0430\u0447\u0430\u043b \u0432\u0435\u0441\u0442\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u043e\u0432\u0435\u0440\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0441 Claude Code, \u0438 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0436\u0435 \u043d\u043e\u0432\u043e\u0439 \u0444\u0438\u0447\u0438 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u0435: \u00ab\u041a\u0430\u043a \u0436\u0435 \u0442\u043e\u0447\u043d\u043e \u043e\u043d \u0432\u0441\u0451 \u043d\u0430\u043f\u0438\u0441\u0430\u043b, \u0434\u0430\u0436\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c\u00bb. \u041e\u0449\u0443\u0449\u0435\u043d\u0438\u0435, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c.<\/p>\n<h3>\u0427\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u00ab\u0436\u0451\u0441\u0442\u043a\u0438\u0435\u00bb<\/h3>\n<p>\u041f\u043e\u0434 \u00ab\u0436\u0451\u0441\u0442\u043a\u043e\u0441\u0442\u044c\u044e\u00bb \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u044f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u0435\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043d\u0435\u043b\u044c\u0437\u044f \u043e\u0431\u043e\u0439\u0442\u0438: \u0438\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u0433\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0434\u043b\u044f \u0430\u0433\u0435\u043d\u0442\u0430. \u0415\u0441\u043b\u0438 \u0430\u0433\u0435\u043d\u0442 \u043e\u0431\u044a\u044f\u0432\u0438\u0442 \u043c\u0435\u0442\u043e\u0434 \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435, \u043d\u043e \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0435\u0433\u043e \u0432 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435, Go \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u0432\u044b\u0434\u0430\u0441\u0442:<\/p>\n<pre><code>internal\/app\/team.go:43:29: cannot use postgres (variable of type *postgres.Postgres) as usecase.Postgres value in argument to usecase.New: *postgres.Postgres does not implement usecase.Postgres (missing method SetMemberNickname)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a \u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 dto: \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u0447\u0442\u043e-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f.<\/p>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043d\u043e\u0432\u043e\u0439 \u0444\u0438\u0447\u0435<\/h3>\n<p>\u041f\u043e\u0442\u043e\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0444\u0438\u0447\u0430 \u0441\u043c\u0435\u043d\u044b \u043d\u0438\u043a\u043d\u0435\u0439\u043c\u0430 \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435: \u0447\u0442\u043e\u0431\u044b \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434 X \u0438 Y \u0432\u0438\u0434\u0435\u043b\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0438\u043c\u0435\u043d\u0430\u043c\u0438. \u0417\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 \u0441\u043c\u0435\u043d\u0443 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b: \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0451 \u0432 \u0431\u0430\u0437\u0435. \u0410\u0433\u0435\u043d\u0442 \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u0441\u0451 \u043e\u0434\u043d\u0438\u043c \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u043c \u0438 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u043b 15 \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0421\u043b\u043e\u0439<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0424\u0430\u0439\u043b<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0421\u0442\u0440\u043e\u043a<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>proto\/team_service\/member.proto<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>proto\/team_service\/service.proto<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>proto\/team_service\/gen\/*.pb.go<\/code> (\u0442\u0440\u0438 \u0444\u0430\u0439\u043b\u0430, \u0438\u0445 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 protoc)<\/p>\n<\/td>\n<td>\n<p align=\"left\">+232 \u2212132<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>team\/internal\/controller\/grpc\/member_set_nickname.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+24<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>team\/internal\/controller\/grpc\/server.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>team\/internal\/controller\/grpc\/error.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">dto<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>team\/internal\/dto\/member_nickname.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>team\/internal\/usecase\/member_set_nickname.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+75<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>team\/internal\/usecase\/member_set_nickname_test.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+127<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>team\/internal\/usecase\/usecase.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0434\u043e\u043c\u0435\u043d<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>team\/internal\/domain\/error.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0430\u0434\u0430\u043f\u0442\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>team\/internal\/adapter\/postgres\/member_set_nickname.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+38<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0430\u0434\u0430\u043f\u0442\u0435\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\"><code>team\/internal\/adapter\/postgres\/queries.go<\/code><\/p>\n<\/td>\n<td>\n<p align=\"left\">+7 \u22126<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 dto, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u044f \u0438 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0434\u043e\u043c\u0435\u043d\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443 \u0432 \u043a\u043e\u0434 gRPC:<\/p>\n<pre><code class=\"go\">func (s *Server) SetMemberNickname(ctx context.Context, req *proto.SetMemberNicknameRequest) (*emptypb.Empty, error) {input := dto.SetMemberNicknameInput{TeamID:   req.GetTeamId(),Nickname: req.GetNickname(),}err := s.Team.SetMemberNickname(ctx, input)if err != nil {return &amp;emptypb.Empty{}, MapUsecaseErrorToGRPC(err)}return &amp;emptypb.Empty{}, nil}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u0447\u0438\u0442\u0430\u0435\u0442 id \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442 id \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0438\u043a\u043d\u0435\u0439\u043c \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0435\u0440:<\/p>\n<pre><code class=\"go\">func (t *Team) SetMemberNickname(parentCtx context.Context, input dto.SetMemberNicknameInput) (err error) {...userID, err := userIDFromContext(ctx)if err != nil {return domain.ErrUnauthenticated}teamID, err := uuid.Parse(input.TeamID)if err != nil {return domain.ErrUUIDParse}nickname := strings.TrimSpace(input.Nickname)if err := validateNickname(nickname); err != nil {return err}if err := t.postgres.SetMemberNickname(ctx, teamID, userID, nickname); err != nil {return err}return nil}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041c\u0435\u0442\u043e\u0434 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0438: \u043f\u0438\u0448\u0435\u0442 \u0432 \u0431\u0430\u0437\u0443 \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435.<\/p>\n<pre><code class=\"go\">func (p *Postgres) SetMemberNickname(ctx context.Context, teamID, userID uuid.UUID, nickname string) error {...res, err := db.Exec(ctx, SetMemberNicknameQuery, teamID, userID, value)if err != nil {if domErr := mapPgErrorToDomain(err); domErr != nil {return domErr}return fmt.Errorf(\"postgres.SetMemberNickname: %w\", err)}if res.RowsAffected() == 0 {return domain.ErrMemberNotFound}return nil}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0444\u0430\u0439\u043b \u043b\u0435\u0436\u0438\u0442 \u0432 \u0441\u0432\u043e\u0451\u043c \u0441\u043b\u043e\u0435, \u0441\u043b\u043e\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0438 dto, \u0432 \u043e\u0431\u0449\u0435\u043c, \u0432\u0441\u0451 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0442\u0430\u043a, \u043a\u0430\u043a \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430. \u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u043e\u0437\u0440\u0430\u0437\u0438\u0442\u044c: \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0442\u0443\u0442 \u043d\u0438 \u043f\u0440\u0438 \u0447\u0451\u043c, \u043f\u0440\u043e\u0441\u0442\u043e \u0418\u0418-\u0430\u0433\u0435\u043d\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 \u044d\u0442\u043e\u0442 \u043e\u0432\u0435\u0440\u0438\u043d\u0436\u0438\u043d\u0438\u0440\u0438\u043d\u0433 \u0438 \u0440\u0435\u0448\u0438\u043b: \u00ab\u041d\u0443 \u043d\u0430\u0444\u0438\u0433, \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u044e \u043f\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0443\u00bb.<\/p>\n<h3>\u0413\u0434\u0435 \u0430\u0433\u0435\u043d\u0442 \u043e\u0431\u043e\u0448\u0451\u043b \u043f\u0440\u0430\u0432\u0438\u043b\u0430<\/h3>\n<p>\u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0430\u0433\u0435\u043d\u0442 \u043d\u0430\u0440\u0443\u0448\u0438\u043b \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u0434\u0432\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0437 \u043f\u043e\u0434\u0433\u043b\u0430\u0432\u044b \u043f\u0440\u043e \u0434\u043e\u043c\u0435\u043d\u044b:<\/p>\n<pre><code class=\"go\">\/\/ (\u0412\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u043d\u0438\u043a\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0432 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0435, \u0430 \u043d\u0435 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 \u0434\u043e\u043c\u0435\u043d\u0430.)if err := validateNickname(nickname); err != nil {return err}\/\/ (\u0410\u0434\u0430\u043f\u0442\u0435\u0440 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043d\u0435 \u0434\u043e\u043c\u0435\u043d \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0430 \u0433\u043e\u043b\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.)type Postgres interface {SetMemberNickname(ctx context.Context, teamID, userID uuid.UUID, nickname string) error...}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0422\u0440\u0435\u0442\u044c\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u0430\u0433\u0435\u043d\u0442 \u043d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b, \u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b \u0437\u0430 \u043c\u043d\u043e\u0439. \u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 team \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u0430 \u0431\u0440\u0430\u043b \u043b\u043e\u0433\u0433\u0435\u0440 \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u044f, \u0438 \u0432 \u043d\u043e\u0432\u043e\u0439 \u0440\u0443\u0447\u043a\u0435 \u0430\u0433\u0435\u043d\u0442 \u0441\u0434\u0435\u043b\u0430\u043b \u0442\u0430\u043a \u0436\u0435. \u0412 \u043f\u0435\u0440\u0432\u043e\u043c \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 <code>LoggerFromContext<\/code> \u0443\u0436\u0435 \u0431\u0435\u0437 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u0430 \u043f\u0430\u043a\u0435\u0442\u0430, \u044d\u0442\u043e\u0442 \u0438\u043c\u043f\u043e\u0440\u0442 \u044f \u0432\u044b\u043d\u0435\u0441 \u043f\u043e\u0437\u0436\u0435.<\/p>\n<pre><code class=\"go\">\/\/ (\u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043f\u0430\u043a\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0440\u0430\u0434\u0438 \u043b\u043e\u0433\u0433\u0435\u0440\u0430.)import \"github.com\/EredinHawk\/simpleretro\/team\/internal\/controller\/grpc\/middleware\"log := middleware.LoggerFromContext(ctx)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0414\u0430\u0436\u0435 \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u00ab\u043f\u043e\u0432\u0442\u043e\u0440\u0438 \u043f\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0443\u00bb \u0430\u0433\u0435\u043d\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043a\u043e\u0435-\u0447\u0442\u043e \u043e\u0442 \u0441\u0435\u0431\u044f. \u0418 \u044d\u0442\u043e \u043f\u0440\u0438 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 CLAUDE.md \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0430 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u0432\u0441\u0451, \u043e \u0447\u0451\u043c \u044f \u043f\u0438\u0441\u0430\u043b \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0433\u043b\u0430\u0432\u0430\u0445, \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438 \u043a\u043e\u0434\u0430. \u0412\u044b\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043d\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u043b\u0443\u0447\u0448\u0435\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. \u042f \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u0438 Opus. \u0421\u0442\u0430\u0440\u0448\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0430, \u0447\u0442\u043e \u043d\u0438\u043a\u043d\u0435\u0439\u043c\u044b \u043d\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u043e NFKC (Normalization Form Compatibility Composition), \u0438 \u044d\u0442\u0443 \u043f\u043e\u043f\u0440\u0430\u0432\u043a\u0443 \u044f \u0437\u0430\u0431\u0440\u0430\u043b \u0432 \u043a\u043e\u0434 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u043c. \u041d\u043e \u0442\u043e, \u0447\u0442\u043e \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440, \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0430 \u0438 \u043e\u043d\u0430.<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435, \u043a\u0430\u043a \u0430\u0433\u0435\u043d\u0442 \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u043b \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0438 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0443\u0447\u043a\u0430\u0445:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u041f\u0440\u0430\u0432\u0438\u043b\u043e<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u041a\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0421\u043e\u0431\u043b\u044e\u0434\u0430\u043b \u043b\u0438 \u0430\u0433\u0435\u043d\u0442<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041d\u043e\u0432\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0432 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0434\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0432 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 dto<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0434\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041d\u043e\u0432\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0434\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0414\u043e\u043c\u0435\u043d \u043d\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043b\u043e\u0438<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 (\u0437\u0430\u043f\u0440\u0435\u0442 \u0446\u0438\u043a\u043b\u043e\u0432 \u0438\u043c\u043f\u043e\u0440\u0442\u0430)<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0434\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041e\u0448\u0438\u0431\u043a\u0438 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043a\u043e\u0434\u044b gRPC<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0438\u043a\u0442\u043e<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0434\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u041e\u0448\u0438\u0431\u043a\u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0438\u043a\u0442\u043e<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0434\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0412 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0431\u043e\u0440\u043a\u0430 dto \u0438 \u0432\u044b\u0437\u043e\u0432 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u044f<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0438\u043a\u0442\u043e<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0434\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u044b \u043d\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u044e\u0442 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0438\u043a\u0442\u043e<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0434\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0412\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0432 \u0434\u043e\u043c\u0435\u043d\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0438\u043a\u0442\u043e<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0435\u0442<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0412 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0438\u043a\u0442\u043e<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0435\u0442<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u043e \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0438\u043a\u0442\u043e<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0435\u0442<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0416\u0451\u0441\u0442\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u0431\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0441\u043e\u0431\u0435\u0440\u0451\u0442\u0441\u044f, \u0430\u0433\u0435\u043d\u0442 \u043d\u0435 \u043d\u0430\u0440\u0443\u0448\u0438\u043b \u043d\u0438 \u0440\u0430\u0437\u0443: \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0434\u0430\u0432\u0430\u043b \u0435\u043c\u0443 \u0448\u0430\u043d\u0441\u0430 \u0441\u0432\u043e\u0435\u0432\u043e\u043b\u044c\u043d\u0438\u0447\u0430\u0442\u044c. \u0410 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u043d\u0438\u043a\u043d\u0435\u0439\u043c\u0430 \u0438 \u0432\u044b\u0437\u043e\u0432 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0431\u0435\u0437 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b &#8212; \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u0435 \u043c\u0435\u0441\u0442\u0430, \u0433\u0434\u0435 \u043d\u0435\u0442 \u00ab\u0441\u0442\u0435\u043d\u044b\u00bb, \u043f\u0435\u0440\u0435\u0434 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0430\u0433\u0435\u043d\u0442 \u043c\u043e\u0433 \u0431\u044b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f.<\/p>\n<p>\u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0438 \u043b\u044e\u0434\u044f\u043c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435. \u0414\u0430, \u043c\u043d\u0435 \u0441\u0430\u043c\u043e\u043c\u0443 \u0432 \u0438\u0442\u043e\u0433\u0435 \u043d\u0430\u0441\u043a\u0443\u0447\u0438\u043b\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0443\u0447\u043a\u0438 \u0432 \u0442\u0430\u043a\u043e\u043c \u0441\u0442\u0440\u043e\u0433\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u041d\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u044d\u0442\u043e \u043d\u0430\u0434\u0451\u0436\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0444\u0438\u0447\u0443 \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0443\u043f\u0443\u0441\u0442\u0438\u0442\u044c.<\/p>\n<h2>\u0425\u0430\u043e\u0441 \u0431\u0435\u0437 \u0447\u0451\u0442\u043a\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0430<\/h2>\n<p>\u0410 \u0432\u043e\u0442 \u043a\u043e\u0433\u0434\u0430 \u044f \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434, \u0447\u0451\u0442\u043a\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0430 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e, \u0438 \u044d\u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0441\u0442\u0430\u043b\u043e \u0432\u0438\u0434\u043d\u043e. \u042f \u0441\u0436\u0451\u0433 \u043a\u0443\u0447\u0443 \u0442\u043e\u043a\u0435\u043d\u043e\u0432 \u0432\u043f\u0443\u0441\u0442\u0443\u044e, \u0440\u043e\u0432\u043d\u043e \u043a\u0430\u043a \u0432 \u0436\u0438\u0437\u043d\u0438, \u043a\u043e\u0433\u0434\u0430 \u043f\u044b\u0442\u0430\u0435\u0448\u044c\u0441\u044f \u0447\u0442\u043e-\u0442\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443, \u0430 \u043e\u043d \u043d\u0435 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442. \u0411\u043e\u043b\u0435\u0435 \u043c\u043e\u0449\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u0443 \u043d\u0435 \u043c\u0435\u043d\u044f\u043b\u0430. \u0414\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c, \u0442\u043e\u0436\u0435 \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u0430\u043b\u043e: \u0430\u0433\u0435\u043d\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0443\u0433\u0430\u0434\u0430\u0442\u044c, \u0447\u0435\u0433\u043e \u044f \u043e\u0442 \u043d\u0435\u0433\u043e \u0436\u0434\u0443.<\/p>\n<p>\u042d\u0442\u043e \u0432\u0438\u0434\u043d\u043e \u0438 \u043f\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432. \u042f \u0432\u0435\u0434\u0443 \u0438\u0445 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 conventional commits, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0439 (<code>fix<\/code>) \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430 \u043e\u0434\u043d\u0443 \u043d\u043e\u0432\u0443\u044e \u0444\u0438\u0447\u0443 (<code>feat<\/code>) \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0427\u0430\u0441\u0442\u044c<\/p>\n<\/th>\n<th>\n<p align=\"left\">feat<\/p>\n<\/th>\n<th>\n<p align=\"left\">fix<\/p>\n<\/th>\n<th>\n<p align=\"left\">fix \u043d\u0430 \u043e\u0434\u043d\u0443 feat<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0431\u044d\u043a\u0435\u043d\u0434-\u044f\u0434\u0440\u043e (auth, team, gateway, proto)<\/p>\n<\/td>\n<td>\n<p align=\"left\">80<\/p>\n<\/td>\n<td>\n<p align=\"left\">44<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,55<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 Go-\u0441\u0435\u0440\u0432\u0438\u0441\u044b (retro, notification)<\/p>\n<\/td>\n<td>\n<p align=\"left\">92<\/p>\n<\/td>\n<td>\n<p align=\"left\">48<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,52<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">\u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434<\/p>\n<\/td>\n<td>\n<p align=\"left\">166<\/p>\n<\/td>\n<td>\n<p align=\"left\">158<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,95<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u042d\u0442\u043e \u043d\u0435 \u043b\u0443\u0447\u0448\u0435\u0435 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u043c\u043e\u0435\u0439 \u0442\u0435\u043e\u0440\u0438\u0438, \u043d\u043e \u0432\u0441\u0451 \u0436\u0435 \u0445\u043e\u0442\u044c \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0435\u0442\u0440\u0438\u043a\u0430.<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u044f \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u043b \u043f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u043d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434\u0435, \u0438 \u0437\u0430\u0434\u0430\u043b \u0430\u0433\u0435\u043d\u0442\u0443 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0432 \u0432\u0438\u0434\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b:<\/p>\n<ul>\n<li>\n<p>\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u043e\u0432\u043e\u0439 \u0444\u0438\u0447\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0431\u0440\u0435\u0439\u043d\u0448\u0442\u043e\u0440\u043c\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0442\u0435\u043c \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0442\u0440\u0438 \u043c\u0430\u043a\u0435\u0442\u0430 \u043d\u0430 \u043c\u043e\u0439 \u0432\u044b\u0431\u043e\u0440 (\u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0438 \u0442\u0440\u0451\u0445 \u0431\u044b\u043b\u043e \u043c\u0430\u043b\u043e);<\/p>\n<\/li>\n<li>\n<p>\u0435\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0431\u044d\u043a\u0435\u043d\u0434\u043e\u043c, \u0430\u0433\u0435\u043d\u0442 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0438\u0441\u0443\u0435\u0442 \u0441\u0445\u0435\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u0438\u0437\u0443\u0447\u0443 \u043f\u0435\u0440\u0435\u0434 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439;<\/p>\n<\/li>\n<li>\n<p>\u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u043a\u0435\u0442 \u044f \u0442\u043e\u0447\u0435\u0447\u043d\u043e \u0432\u043d\u043e\u0448\u0443 \u0441 \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u043f\u0440\u0430\u0432\u043e\u043a;<\/p>\n<\/li>\n<li>\n<p>\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u0430\u043a\u0435\u0442 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0449\u0451 \u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043b \u0430\u0433\u0435\u043d\u0442\u0430 \u043e\u0434\u043d\u043e\u0439 \u0434\u0438\u0437\u0430\u0439\u043d-\u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b MCP-\u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0441\u0430\u043c \u043c\u043e\u0433 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0430\u0442\u0432\u043e\u0440\u0438\u043b.<\/p>\n<p>\u041d\u043e \u043a \u0436\u0451\u0441\u0442\u043a\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0438\u0437 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u0441\u0451 \u044d\u0442\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u0442. \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0440\u0430\u0431\u043e\u0442\u044b &#8212; \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0451\u043d\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0435\u0451 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442. \u0425\u043e\u0442\u044c \u043a\u0430\u043f\u0441\u043e\u043c \u043f\u0438\u0448\u0438 \u0430\u0433\u0435\u043d\u0442\u0443 \u00ab\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0441\u0442\u0440\u043e\u0433\u043e \u0438 \u043d\u0435\u0443\u043a\u043e\u0441\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u00bb, \u043e\u043d \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0432\u044b\u0439\u0434\u0435\u0442 \u0437\u0430 \u0440\u0430\u043c\u043a\u0438 \u0442\u0430\u043c, \u0433\u0434\u0435 \u043d\u0435\u0442 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439.<\/p>\n<h2>\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p>\u041d\u0435 \u0440\u0438\u0441\u043a\u043d\u0443 \u0434\u0430\u0432\u0430\u0442\u044c \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0432\u0435\u0442\u044b, \u0442\u0435\u043c\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441 \u0418\u0418-\u0430\u0433\u0435\u043d\u0442\u0430\u043c\u0438 \u043e\u0447\u0435\u043d\u044c \u0441\u043f\u043e\u0440\u043d\u0430\u044f. \u041f\u0440\u0430\u0432\u0438\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440, \u0430\u0433\u0435\u043d\u0442 \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0435\u0442 \u0432\u0441\u0435\u0433\u0434\u0430. \u041f\u0440\u0430\u0432\u0438\u043b\u043e, \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 CLAUDE.md \u0438\u043b\u0438 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0432\u0435\u0437\u0451\u0442, \u0438 \u0447\u0430\u0449\u0435 \u0432\u0435\u0437\u0451\u0442 \u0442\u0430\u043c, \u0433\u0434\u0435 \u0432 \u043a\u043e\u0434\u0435 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437\u0435\u0446. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u0436\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u044f \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0432\u044b\u0440\u0430\u0436\u0430\u0442\u044c \u0432 \u0442\u0438\u043f\u0430\u0445 \u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445, \u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0440\u0443\u0447\u043a\u0443 \u043d\u043e\u0432\u043e\u0433\u043e \u0432\u0438\u0434\u0430 \u043f\u0438\u0448\u0443 \u0441\u0430\u043c.<\/p>\n<p>\u0417\u0430 \u0441\u043c\u044b\u0441\u043b \u043a\u043e\u0434\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442. \u0414\u044b\u0440\u044b \u0432 \u043f\u0440\u0430\u0432\u0430\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0430\u0433\u0435\u043d\u0442 \u043f\u0438\u0441\u0430\u043b \u043f\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0443 \u0442\u0430\u043a \u0436\u0435 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e, \u043a\u0430\u043a \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434, \u0438 \u043b\u043e\u0432\u0438\u0442\u044c \u0438\u0445 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0443 \u043d\u0435 \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u0435\u0440\u0432\u0438\u0441 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u043b \u00ab\u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e\u00bb \u0438\u043b\u0438 \u00ab\u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435\u00bb \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b, \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u043b\u0438 \u043e\u043d \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0435.<\/p>\n<p>\u0421\u0435\u0440\u0432\u0438\u0441 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 \u0436\u0438\u0432\u0451\u0442 \u043d\u0430 simpleretro.ru, \u043e\u043d \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439.<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e, \u0447\u0442\u043e \u0434\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u0434\u043e \u043a\u043e\u043d\u0446\u0430. \u0414\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u043a\u0430\u043a \u0432\u044b \u0434\u043e\u0431\u0438\u0432\u0430\u0435\u0442\u0435\u0441\u044c \u043e\u0442 \u0430\u0433\u0435\u043d\u0442\u0430 \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1114212\/\">https:\/\/habr.com\/ru\/articles\/1114212\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435\u043c, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u0448\u0451\u043b, \u043f\u043e\u043a\u0430 \u043f\u0438\u0441\u0430\u043b \u043d\u0430 Go \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0440\u0435\u0442\u0440\u043e\u0441\u043f\u0435\u043a\u0442\u0438\u0432 \u0432 Agile-\u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0445. \u042f \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043d\u0430 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0438 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u043b \u0435\u0451 \u0436\u0451\u0441\u0442\u043a\u043e\u0439. \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u0437\u0436\u0435 \u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043a\u043e\u0434\u0430 \u0430\u0433\u0435\u043d\u0442\u0430, \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043f\u043e\u0432\u0435\u0440\u0445 \u0442\u0430\u043a\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0435\u043c\u0443 \u043d\u0435 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043d\u0438\u0447\u0435\u0433\u043e, \u043a\u0440\u043e\u043c\u0435 \u043a\u0430\u043a \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u043f\u043e \u043c\u043e\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c. \u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435, \u0433\u0434\u0435 \u0436\u0451\u0441\u0442\u043a\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u043d\u0435 \u0437\u0430\u0434\u0430\u043b: \u043d\u0430 \u0431\u044d\u043a\u0435\u043d\u0434\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0432\u0442\u043e\u0440\u0443\u044e \u0444\u0438\u0447\u0443, \u0430 \u043d\u0430 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0435 \u043f\u043e\u0447\u0442\u0438 \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e. \u041c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0430, \u0430 \u0431\u044d\u043a\u0435\u043d\u0434 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0430 \u0434\u0430\u0436\u0435 \u0434\u0435\u0448\u0451\u0432\u0430\u044f. \u0414\u0430\u043b\u0435\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435:\u0427\u0442\u043e \u0437\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043a\u0430\u043a \u043a\u0430\u0440\u043a\u0430\u0441\u0410\u0433\u0435\u043d\u0442 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b\u0425\u0430\u043e\u0441 \u0431\u0435\u0437 \u0447\u0451\u0442\u043a\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0430\u0412\u044b\u0432\u043e\u0434\u044b\u0427\u0442\u043e \u0437\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0421\u0445\u0435\u043c\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044fSimple Retro &#8212; \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0440\u0435\u0442\u0440\u043e\u0441\u043f\u0435\u043a\u0442\u0438\u0432 \u0432 Agile-\u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0445, \u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0432 \u043d\u0451\u043c &#8212; \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430. \u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0438 \u043e\u0431\u0441\u0443\u0436\u0434\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u0430 \u043f\u0440\u043e\u0448\u0435\u0434\u0448\u0438\u0439 \u0441\u043f\u0440\u0438\u043d\u0442 \u0431\u044b\u043b\u043e \u0445\u043e\u0440\u043e\u0448\u043e, \u0447\u0435\u0433\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0438\u043b\u043e \u0438 \u0447\u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u0445. \u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e \u043f\u0438\u0448\u0443\u0442 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438, \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u044e\u0442 \u0438\u0445 \u043f\u043e \u0442\u0435\u043c\u0430\u043c, \u0433\u043e\u043b\u043e\u0441\u0443\u044e\u0442, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0442 \u0441\u0430\u043c\u044b\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442 \u0437\u0430\u0434\u0430\u0447\u0438 \u0441 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438. \u0412\u0441\u0451 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u0449\u0435\u0439 \u0434\u043e\u0441\u043a\u0435.\u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043f\u044f\u0442\u0438 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u043d\u0430 Go (\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e, \u043a\u0440\u043e\u043c\u0435 gateway, \u0441\u0432\u043e\u044f \u0431\u0430\u0437\u0430 PostgreSQL), RabbitMQ, Redis \u0434\u043b\u044f \u043b\u0438\u043c\u0438\u0442\u043e\u0432 \u0438 \u043a\u044d\u0448\u0430, Jaeger \u0434\u043b\u044f \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0438 \u0438 \u0444\u0440\u043e\u043d\u0442\u0435\u043d\u0434\u0430 \u043d\u0430 Next.js.\u0414\u043b\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441 Team: \u0432 \u043d\u0451\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 CRUD-\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0438 \u043d\u0430 \u043d\u0438\u0445 \u0445\u043e\u0440\u043e\u0448\u043e \u0432\u0438\u0434\u043d\u043e, \u043a\u0430\u043a \u0430\u0433\u0435\u043d\u0442 \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b\u0441\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. \u0424\u0440\u043e\u043d\u0442\u0435\u043d\u0434 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 &#8212; \u043f\u0440\u0438\u043c\u0435\u0440 \u0447\u0430\u0441\u0442\u0438, \u0433\u0434\u0435 \u0436\u0451\u0441\u0442\u043a\u0438\u0445 \u043f\u0440\u0430\u0432\u0438\u043b \u043d\u0435 \u0431\u044b\u043b\u043e.\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u043a\u0430\u043a \u043a\u0430\u0440\u043a\u0430\u0441\u0421\u043b\u043e\u0438 \u044f \u043f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0438\u0437 \u0447\u0438\u0441\u0442\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b. \u0421\u0442\u0430\u0442\u0435\u0439 \u043f\u0440\u043e \u043d\u0435\u0451 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0435\u043e\u0440\u0438\u044e \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443, \u043f\u043e\u043a\u0430\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e, \u0447\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435.\u041a\u0430\u0436\u0434\u044b\u0439 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e\u0434\u0435\u043b\u0451\u043d \u043d\u0430 \u0447\u0435\u0442\u044b\u0440\u0435 \u0441\u043b\u043e\u044f: \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0439 (\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b), \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439, \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u044b. \u041f\u0440\u043e\u0439\u0434\u0451\u043c\u0441\u044f \u043f\u043e \u043d\u0438\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u0434\u043d\u043e\u0439 \u0440\u0443\u0447\u043a\u0438, \u0441\u043c\u0435\u043d\u044b \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b.\u0422\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0439 \u0441\u043b\u043e\u0439\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437\u0432\u043d\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0438\u0445 \u0432 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435, \u0447\u0435\u0440\u0435\u0437 Data Transfer Object (\u0434\u0430\u043b\u0435\u0435 dto). \u0421\u0430\u043c \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0432\u0438\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0443. \u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u044e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e, \u043e\u0442\u043a\u0443\u0434\u0430 \u043f\u0440\u0438\u0448\u0451\u043b \u0437\u0430\u043f\u0440\u043e\u0441: \u0438\u0437 HTTP, gRPC \u0438\u043b\u0438 \u0442\u0435\u0441\u0442\u0430.\/\/ TeamUsecase \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043d\u0430\u0431\u043e\u0440 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0438.type TeamUsecase interface {ChangeName(context.Context, dto.ChangeTeamNameInput) error&#8230;}\/\/ ChangeTeamName \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a gRPC \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u043e \u0435\u0435 id.func (s *Server) ChangeTeamName(ctx context.Context, req *proto.ChangeTeamNameRequest) (*emptypb.Empty, error) {\/\/ (\u0412\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442, \u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u043b\u044f \u0432\u043e\u043e\u0431\u0449\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u044b.)teamName := strings.TrimSpace(req.GetName())if teamName == &#171;&#187; {return &amp;emptypb.Empty{}, status.Error(codes.InvalidArgument, &#171;team name is required&#187;)}&#8230;input := dto.ChangeTeamNameInput{Name: teamName, ID: teamID}if err := s.Team.ChangeName(ctx, input); err != nil {return &amp;emptypb.Empty{}, MapUsecaseErrorToGRPC(err)}return &amp;emptypb.Empty{}, nil}\u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439\u0421\u0445\u0435\u043c\u0430 \u0431\u0438\u0437\u043d\u0435\u0441 \u0441\u043b\u043e\u044f \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432\u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u00ab\u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u00bb, \u043a\u0442\u043e \u0435\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0438 \u0441 \u043a\u0430\u043a\u043e\u0439 \u0431\u0430\u0437\u043e\u0439 \u0438\u043b\u0438 \u0431\u0440\u043e\u043a\u0435\u0440\u043e\u043c \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0412\u0441\u0451, \u0447\u0442\u043e \u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0440\u0443\u0436\u0438, \u043e\u043d \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u0432 \u0441\u0432\u043e\u0451\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435. \u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u043d\u0443\u0436\u043d\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435, \u0430 \u0437\u0430\u0442\u0435\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435. \u042d\u0442\u0443 \u0441\u0432\u044f\u0437\u044c \u043d\u0435 \u043e\u0431\u043e\u0439\u0442\u0438: \u043a\u043e\u0434 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f. \u0414\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441 \u0418\u0418-\u0430\u0433\u0435\u043d\u0442\u043e\u043c \u044d\u0442\u043e \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e.\u041c\u0435\u0442\u043e\u0434 \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0447\u0438\u0442\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0447\u0451\u0442\u043a\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, \u0430 \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u0432\u044b\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u0432 \u0434\u043e\u043c\u0435\u043d\u044b \u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u044b.\/\/ Postgres \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0411\u0414 Postgres.type Postgres interface {UpdateTeamName(ctx context.Context, team domain.Team) error&#8230;}\/\/ ChangeName \u043c\u0435\u0442\u043e\u0434 \u0431\u0438\u0437\u043d\u0435\u0441 \u043b\u043e\u0433\u0438\u043a\u0438 Team \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u043e \u0435\u0435 id.func (t *Team) ChangeName(parentCtx context.Context, input dto.ChangeTeamNameInput) (err error) {ctx, span := tracing.Start(parentCtx, &#171;usecase.team.ChangeName&#187;)defer tracing.End(span, &amp;err)log := LoggerFromContext(ctx)userID, err := userIDFromContext(ctx)if err != nil {log.Warn(&#171;missing user_id in context&#187;)return domain.ErrUnauthenticated}teamID, err := uuid.Parse(input.ID)if err != nil {log.Warn(&#171;invalid team_id format&#187;, slog.String(&#171;team_id&#187;, input.ID))return domain.ErrUUIDParse}\/\/ \u0410\u0434\u0430\u043f\u0442\u0435\u0440 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u043e\u043c\u0435\u043d \u00ab\u041a\u043e\u043c\u0430\u043d\u0434\u0430\u00bb.team, err := t.postgres.GetTeam(ctx, teamID)if err != nil {return err}\/\/ \u041f\u0440\u0430\u0432\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0434\u043e\u043c\u0435\u043d.if !team.IsOwnedBy(userID) {log.Warn(&#171;user is not team owner&#187;)return domain.ErrForbidden}\/\/ \u041d\u043e\u0432\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0434\u043e\u043c\u0435\u043d.if err := team.ChangeName(input.Name); err != nil {log.Warn(&#171;team name validation failed&#187;, slog.String(&#171;error&#187;, err.Error()))return err}\/\/ \u0412 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u0443\u0445\u043e\u0434\u0438\u0442 \u0434\u043e\u043c\u0435\u043d, \u0430 \u043d\u0435 \u0433\u043e\u043b\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f.return t.postgres.UpdateTeamName(ctx, team)}\u0414\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b\u0421\u0445\u0435\u043c\u0430 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b\u0412 \u0446\u0435\u043d\u0442\u0440\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043b\u0435\u0436\u0430\u0442 \u0434\u043e\u043c\u0435\u043d\u044b. \u042d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b Go \u0441 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u0430\u0432\u0438\u043b\u0430. \u0414\u043e\u043c\u0435\u043d \u00ab\u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u00bb, \u043e\u0442\u043a\u0443\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043a\u0443\u0434\u0430 \u043e\u043d\u0438 \u0443\u0439\u0434\u0443\u0442, \u0438 \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0436\u0438\u043b\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c, \u0430 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u043b\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. \u0417\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u044d\u0442\u0438 \u0434\u0432\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f, \u043e\u043d\u0438 \u0435\u0449\u0451 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f.\/\/ Team \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.type Team struct {ID        uuid.UUIDOwnerID   uuid.UUIDName      stringCreatedAt time.Time}\/\/ ChangeName \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.func (t *Team) ChangeName(newName string) error {newName = strings.TrimSpace(newName)if newName == &#171;&#187; {return ValidationError{Message: &#171;team name required&#187;}}if len(newName) &gt; 255 {return ValidationError{Message: &#171;team name too long&#187;}}t.Name = newNamereturn nil}\u0410\u0434\u0430\u043f\u0442\u0435\u0440\u044b\u041f\u043e\u0434 \u044d\u0442\u0438\u043c \u043c\u043e\u0434\u043d\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0441\u0451, \u0447\u0442\u043e \u0445\u043e\u0434\u0438\u0442 \u043d\u0430\u0440\u0443\u0436\u0443: \u0434\u0440\u0443\u0433\u043e\u0439 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441, \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0431\u0440\u043e\u043a\u0435\u0440 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u0410\u0434\u0430\u043f\u0442\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0432 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0435, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0439. \u0412\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0432 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0435.\/\/ UpdateTeamName \u043c\u0435\u043d\u044f\u0435\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u043f\u043e \u0435\u0435 id \u0438 id \u0435\u0435 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430.func (p *Postgres) UpdateTeamName(ctx context.Context, team domain.Team) error {res, err := p.GetDB(ctx).Exec(ctx, UpdateTeamNameQuery, team.Name, team.ID, team.OwnerID)if err != nil {\/\/ &#8230;\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0448\u0438\u0431\u043a\u0438}if res.RowsAffected() == 0 {return domain.ErrForbidden \/\/ &lt;- \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430}return nil}\u0410\u0433\u0435\u043d\u0442 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b\u0412\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u043a \u0442\u0435\u043c\u0435 \u0441\u0442\u0430\u0442\u044c\u0438. \u041f\u043e\u0437\u0436\u0435 \u044f \u043d\u0430\u0447\u0430\u043b \u0432\u0435\u0441\u0442\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u043e\u0432\u0435\u0440\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u0441 Claude Code, \u0438 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0436\u0435 \u043d\u043e\u0432\u043e\u0439 \u0444\u0438\u0447\u0438 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u0435: \u00ab\u041a\u0430\u043a \u0436\u0435 \u0442\u043e\u0447\u043d\u043e \u043e\u043d \u0432\u0441\u0451 \u043d\u0430\u043f\u0438\u0441\u0430\u043b, \u0434\u0430\u0436\u0435 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c\u00bb. \u041e\u0449\u0443\u0449\u0435\u043d\u0438\u0435, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0435\u0433\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c.\u0427\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u00ab\u0436\u0451\u0441\u0442\u043a\u0438\u0435\u00bb\u041f\u043e\u0434 \u00ab\u0436\u0451\u0441\u0442\u043a\u043e\u0441\u0442\u044c\u044e\u00bb \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u044f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u0435\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043d\u0435\u043b\u044c\u0437\u044f \u043e\u0431\u043e\u0439\u0442\u0438: \u0438\u0445 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u0433\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0434\u043b\u044f \u0430\u0433\u0435\u043d\u0442\u0430. \u0415\u0441\u043b\u0438 \u0430\u0433\u0435\u043d\u0442 \u043e\u0431\u044a\u044f\u0432\u0438\u0442 \u043c\u0435\u0442\u043e\u0434 \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435, \u043d\u043e \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0435\u0433\u043e \u0432 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435, Go \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u0432\u044b\u0434\u0430\u0441\u0442:internal\/app\/team.go:43:29: cannot use postgres (variable of type *postgres.Postgres) as usecase.Postgres value in argument to usecase.New: *postgres.Postgres does not implement usecase.Postgres (missing method SetMemberNickname)\u0422\u0430\u043a \u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 dto: \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u0447\u0442\u043e-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f.\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043d\u043e\u0432\u043e\u0439 \u0444\u0438\u0447\u0435\u041f\u043e\u0442\u043e\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0444\u0438\u0447\u0430 \u0441\u043c\u0435\u043d\u044b \u043d\u0438\u043a\u043d\u0435\u0439\u043c\u0430 \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0435: \u0447\u0442\u043e\u0431\u044b \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434 X \u0438 Y \u0432\u0438\u0434\u0435\u043b\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0438\u043c\u0435\u043d\u0430\u043c\u0438. \u0417\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u0445\u043e\u0436\u0430 \u043d\u0430 \u0441\u043c\u0435\u043d\u0443 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b: \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0451 \u0432 \u0431\u0430\u0437\u0435. \u0410\u0433\u0435\u043d\u0442 \u0441\u0434\u0435\u043b\u0430\u043b \u0432\u0441\u0451 \u043e\u0434\u043d\u0438\u043c \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u043c \u0438 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u043b 15 \u0444\u0430\u0439\u043b\u043e\u0432:\u0421\u043b\u043e\u0439\u0424\u0430\u0439\u043b\u0421\u0442\u0440\u043e\u043a\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442proto\/team_service\/member.proto+5\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442proto\/team_service\/service.proto+3\u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442proto\/team_service\/gen\/*.pb.go (\u0442\u0440\u0438 \u0444\u0430\u0439\u043b\u0430, \u0438\u0445 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 protoc)+232 \u2212132\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440team\/internal\/controller\/grpc\/member_set_nickname.go+24\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440team\/internal\/controller\/grpc\/server.go+1\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440team\/internal\/controller\/grpc\/error.go+3dtoteam\/internal\/dto\/member_nickname.go+9\u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439team\/internal\/usecase\/member_set_nickname.go+75\u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439team\/internal\/usecase\/member_set_nickname_test.go+127\u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439team\/internal\/usecase\/usecase.go+3\u0434\u043e\u043c\u0435\u043dteam\/internal\/domain\/error.go+1\u0430\u0434\u0430\u043f\u0442\u0435\u0440team\/internal\/adapter\/postgres\/member_set_nickname.go+38\u0430\u0434\u0430\u043f\u0442\u0435\u0440team\/internal\/adapter\/postgres\/queries.go+7 \u22126\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 dto, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u0431\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u044f \u0438 \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u0434\u043e\u043c\u0435\u043d\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443 \u0432 \u043a\u043e\u0434 gRPC:func (s *Server) SetMemberNickname(ctx context.Context, req *proto.SetMemberNicknameRequest) (*emptypb.Empty, error) {input := dto.SetMemberNicknameInput{TeamID:   req.GetTeamId(),Nickname: req.GetNickname(),}err := s.Team.SetMemberNickname(ctx, input)if err != nil {return &amp;emptypb.Empty{}, MapUsecaseErrorToGRPC(err)}return &amp;emptypb.Empty{}, nil}\u0411\u0438\u0437\u043d\u0435\u0441-\u0441\u043b\u043e\u0439 \u0447\u0438\u0442\u0430\u0435\u0442 id \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442 id \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0438\u043a\u043d\u0435\u0439\u043c \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0430\u0434\u0430\u043f\u0442\u0435\u0440:func (t *Team) SetMemberNickname(parentCtx context.Context, input dto.SetMemberNicknameInput) (err error) {&#8230;userID, err := userIDFromContext(ctx)if err != nil {return domain.ErrUnauthenticated}teamID, err := uuid.Parse(input.TeamID)if err != nil {return domain.ErrUUIDParse}nickname := strings.TrimSpace(input.Nickname)if err := validateNickname(nickname); err != nil {return err}if err := t.postgres.SetMemberNickname(ctx, teamID, userID, nickname); err != nil {return err}return nil}\u041c\u0435\u0442\u043e\u0434 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0438: \u043f\u0438\u0448\u0435\u0442 \u0432 \u0431\u0430\u0437\u0443 \u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442 \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u0435.func (p *Postgres) SetMemberNickname(ctx context.Context, teamID, userID uuid.UUID, nickname string) error {&#8230;res, err := db.Exec(ctx, SetMemberNicknameQuery, teamID, userID, value)if err != nil {if domErr := mapPgErrorToDomain(err); domErr != nil {return domErr}return fmt.Errorf(&#171;postgres.SetMemberNickname: %w&#187;, err)}if res.RowsAffected() == 0 {return domain.ErrMemberNotFound}return nil}\u041a\u0430\u0436\u0434\u044b\u0439 \u0444\u0430\u0439\u043b \u043b\u0435\u0436\u0438\u0442 \u0432 \u0441\u0432\u043e\u0451\u043c \u0441\u043b\u043e\u0435, \u0441\u043b\u043e\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0438 dto, \u0432 \u043e\u0431\u0449\u0435\u043c, \u0432\u0441\u0451 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0442\u0430\u043a, \u043a\u0430\u043a &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-505482","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/505482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=505482"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/505482\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=505482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=505482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=505482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}