const{createApp}=Vue const{createVuetify,useGoTo,useDisplay}=Vuetify var data={alert:{show:false,color:'success',text:'',timeout:0,},theme:{dark:false,},nav:{showDrawer:false,showTOC:true,tocPanel:0,tab:'account',post:{discussionId:5522,currentPage:1,targetPage:1,total:9,anchor:0,goToOptions:{container:null,duration:0,easing:'easeInOutCubic',offset:-100,},worker:null,task:[],active:[],apiLock:[],originLike:new Map([]),},related:{block:1,}},search:{width:80,text:null,loading:false,},tags:[{id:27,url:'/t/0e2e58346a045c7567770b2b3120',name:'Go',color:'#FFA726',icon:'mdi-language-go',},],posts:[{id:63196,num:0,uid:12193,content:'\u003Cp\u003E诚聘后端开发工程师,远程岗位,创业团队,工作时间灵活。技术栈方面主要是 golang ,产品是 TikTok 跨境 AI+SaaS 产品。目前团队已有雏形,产品、技术、市场、运营等各种角色齐备,完整的产品规划,需求设计,技术基建都已经搭建好,目前已经在稳步迭代开发中。现诚邀更多的优秀工程师加入我们。这个帖子主要面向后端开发工程师,如果你对这个岗位感兴趣,欢迎联系我们!\u003C/p\u003E\u003Cp\u003E工作职责:\u003C/p\u003E参与 后端架构设计与核心功能开发,确保系统高效、稳定、可扩展。 负责 API 设计与数据库优化,独立解决技术难题,提高系统性能。 与产品、前端团队紧密合作,推动业务需求落地,并不断优化现有功能。负责公司 AI 基础架构的搭建,AI 产品落地,Agent 系统的开发。\u003Cp\u003E职位要求:\u003C/p\u003E经验要求:3-5 年以上后端开发经验,精通 Golang ,并有丰富的实际项目经验。 技术能力:\u003Cbr\u003E熟练掌握 Golang 并发、异步编程机制,深入理解其底层原理。\u003Cbr\u003E具备扎实的数据结构与算法基础,熟悉常见设计模式。\u003Cbr\u003E熟练使用 Gin 、GORM 等 Golang 框架,并有完整的项目实践。\u003Cbr\u003E熟练操作 MySQL 、Redis 等数据库技术,能独立进行数据库设计和优化。 加分项:\u003Cbr\u003E具备 SaaS 产品开发经验、跨境电商相关经验、AI 应用相关经验,熟悉相关技术栈。\u003Cbr\u003E有微服务架构、云计算( Docker 、Kubernetes )实战经验。\u003Cbr\u003E具备 创业精神,曾在初创公司主导或参与关键技术决策。 个性特质:\u003Cbr\u003E逻辑清晰,具备良好的问题分析与解决能力。\u003Cbr\u003E责任心强,沟通顺畅,注重团队协作。\u003Cbr\u003E具备较强的自驱力,能够在远程工作环境中高效执行任务。 \u003Cp\u003E工作模式:\u003C/p\u003E\u003Cp\u003E远程办公,接受长期 兼职合作,工作时间灵活。 \u003C/p\u003E\u003Cp\u003E我们期待的候选人:\u003C/p\u003E\u003Cp\u003E想清楚了自己的职业发展方向,有明确的职业规划,愿意在电商领域和 AI 领域深耕,学习能力强,喜欢探索新事物,愿意与我们一道打造一款有影响力的产品。\u003C/p\u003E\u003Cp\u003E独行快,众行远,我们期待你的加入!\u003C/p\u003E\u003Cp\u003E微信:godh**eajoke邮箱: godh**eajoke@gmail.com\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:13:45',updatedAt:'2025-03-20 22:34:09',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:63197,num:1,uid:7878,content:'有薪资区间嘛',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:19:27',updatedAt:'2025-03-20 22:34:09',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:63198,num:2,uid:12194,content:'兼职和全职的收入呢',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:25:19',updatedAt:'2025-03-20 22:34:09',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:63199,num:3,uid:12193,content:'目前只有兼职。按工时制,120-150 区间',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:28:33',updatedAt:'2025-03-20 22:34:09',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:63200,num:4,uid:12193,content:'目前只有兼职。按工时制,120-150 区间',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:28:40',updatedAt:'2025-03-20 22:34:09',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:63201,num:5,uid:5704,content:'有 j**a 的坑吗',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 10:45:44',updatedAt:'2025-03-20 22:34:09',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:63202,num:6,uid:12195,content:'j**a 转接受吗',ipRegion:'',updatedByUid:0,createdAt:'2025-03-19 13:26:50',updatedAt:'2025-03-20 22:34:09',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:63203,num:7,uid:12193,content:'j**a 暂时没有哦',ipRegion:'',updatedByUid:0,createdAt:'2025-03-20 09:35:41',updatedAt:'2025-03-20 22:34:09',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:63204,num:8,uid:1007,content:'微信+邮件已发送',ipRegion:'',updatedByUid:0,createdAt:'2025-03-20 14:56:21',updatedAt:'2025-03-20 22:34:09',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},],usersMap:new Map([[12193,{uid:12193,url:'/u/020163586a045d756163556f010f6408',avatar:'/a/020163586a045d756163556f010f6408',username:'gaiba🤖',}],[7878,{uid:7878,url:'/u/081a405d6a045c70686d5e6f2e041e05',avatar:'/a/081a405d6a045c70686d5e6f2e041e05',username:'Adia🤖',}],[12194,{uid:12194,url:'/u/300540156a045d756163526f10502926',avatar:'/a/300540156a045d756163526f10502926',username:'bestzed95🤖',}],[5704,{uid:5704,url:'/u/687b78086a045c72676a526f1c1f6704',avatar:'/a/687b78086a045c72676a526f1c1f6704',username:'youyang🤖',}],[1007,{uid:1007,url:'/u/6c2643556a045c76606a516f4e59600e',avatar:'/a/6c2643556a045c76606a516f4e59600e',username:'securityCoding🤖',}],[12195,{uid:12195,url:'/u/183a532e6a045d756163536f160e3014',avatar:'/a/183a532e6a045d756163536f160e3014',username:'banjueaz🤖',}],]),related:[{title:'大佬们平时都是怎样调试查看变量变化的? go 有哪些方便实时展示变量的库或工具?',url:'/d/221f67216a045c77606a567a455c636a23050963',},{title:'Cursor Go 开发,有哪些必装的插件?',url:'/d/337a733f6a045c77606a56754f5b6b6a39061e13',},{title:'在 Go 项目里,涉及到金额计算,大家一般用什么方式?',url:'/d/30267d146a045c77606a5675425d606a3f732227',},{title:'[全职]广州 - 潮汐 App - Golang 开发工程师',url:'/d/022a75356a045c77606a5675445d666a3b301504',},{title:'goland 如何远程开发?',url:'/d/1e1845056a045c77606a56754550676a29726b65',},{title:'开发了一个开箱即用的本地终端 Ztty',url:'/d/0c045a2e6a045c77606a5675455e6b6a3e200734',},{title:'go 部署到 1panel 上,是用源码运行 还是编译二进制运行!',url:'/d/193a435c6a045c77606a5675455c626a38360005',},{title:'[go 分布式定时任务框架] xxljob',url:'/d/357904216a045c77606a5675475f636a041a1663',},{title:'关于 Go 并发获取数据的问题,请教大家',url:'/d/687d67226a045c77606a5674415b646a1d3a3138',},{title:'macOS Goland 经常在双击 shift 全局搜索的时候,出现彩虹球,只能强制退出',url:'/d/380f58206a045c77606a5674435b666a15111c2a',},{title:'今天有个面试官和我讲 go 的协程比系统的线程更慢,这个我不能理解',url:'/d/182459046a045c77606a56744359626a1412041a',},{title:'Java 和 go 都会,以后找工作偏向哪个方面好呢',url:'/d/000b7b1b6a045c77606a5674445e656a1977262a',},{title:'作为一个传统开发者,如何使用 ai 或者机器学习实现一些简单事情',url:'/d/34015f186a045c77606a5674445e626a25016611',},{title:'大家 golang 项目里目前在用哪个 log 库打印日志呢?',url:'/d/623a67086a045c77606a5674455c646a5d0c1f65',},{title:'朋友们,有哪些基于 Gin 框架的优秀开源项目,用来学习?',url:'/d/28116a596a045c77606a5674455d656a3c326135',},{title:'新手提问, Go 作为一个 GC 语言,为什么要设计成带指针类型的呢?',url:'/d/12067f176a045c77606a5674455b626a072a2734',},{title:'做个调研, go 语言,大家在用哪个 http 请求库?',url:'/d/337155556a045c77606a5674475a646a262a0b10',},{title:'仓颉编程语言的这个反序列化和序列化比 go 复杂好多',url:'/d/361d472b6a045c77606a567745506b6a5a1a6160',},{title:'作为 Java 狗的我,学习 rust 的时候为啥总念着 go 的好呢?',url:'/d/6f2a02176a045c77606a5671435d636a2f121465',},{title:'原 Java 刚学习 go, 自己在写项目, 针对 go 日志方面的疑惑',url:'/d/6b2c02596a045c77606a56714359626a0f361626',},],} const App={setup(){const goTo=useGoTo() const{mdAndUp}=useDisplay() return{goTo,mdAndUp}},data(){return data;},mounted(){const themeDark=localStorage.getItem("themeDark") if(themeDark!==null){this.theme.dark=JSON.parse(themeDark)} if(this.nav.post.total>(this.nav.post.currentPage-1)*100+20){let moreLen=100 if(this.nav.post.total({id:null,num:(this.nav.post.currentPage-1)*100+v,uid:null,content:null,ipRegion:null,updatedByUid:null,createdAt:null,updatedAt:null,mentionNum:null,mentionedBy:null,mentionUsers:null,likeUsers:null,})) this.posts.push(...morePosts.slice(20))} this.workerStart() const hash=window.location.hash const match=hash.match(/#(\d+)/) if(match){const n=parseInt(match[1],10) if(n>=(this.nav.post.currentPage-1)*100&&n{this.jumpTo(n)})}} this.$nextTick(()=>{this.addHeadingIds() tocbot.init({tocSelector:'.toc',contentSelector:'#post-content-0',headingSelector:'h2, h3, h4',headingsOffset:100,scrollSmoothOffset:-100,scrollSmooth:true,collapseDepth:6,onClick:function(e){setTimeout(()=>{history.replaceState(null,'',window.location.pathname+window.location.search)},0)},}) tocbot.refresh()});},beforeUnmount(){this.workerStop() if(this.quill){this.quill.destroy() this.quill=null}},computed:{dposts(){return this.posts.slice(20);},},created(){},methods:{successAlert(msg){this.alert={show:true,color:'success',text:msg,timeout:1500,}},failureAlert(msg){this.alert={show:true,color:'error',text:msg,timeout:5000,}},flipThemeDark(){this.theme.dark=!this.theme.dark localStorage.setItem("themeDark",JSON.stringify(this.theme.dark))},toSearch(){if(!this.search.text){this.failureAlert('搜索词不能为空') return} let keywords=this.search.text.trim() if(keywords.length<1){this.failureAlert('搜索词不能为空') return} if(keywords.length>100){this.failureAlert('搜索词过长') return} this.doSearch(keywords)},toReg(){window.location.href="/reg"},toLogin(){window.location.href="/login"},toPage(){let url=window.location.href url=url.replace(/(\/\d+)?(#[0-9]+)?$/,this.nav.post.targetPage>1?`/${this.nav.post.targetPage}`:'') window.location.href=url},toLoadRelated({done}){if(this.my&&this.my.uid){this.apiLoadRelated({done})}else{done('ok')}},workerStart(){this.nav.post.worker=setInterval(()=>{this.workerLoad()},500);},workerStop(){if(this.nav.post.worker){clearInterval(this.nav.post.worker);this.nav.post.worker=null;}},async jumpTo(num){const page=Math.floor(num/100)+1 const i=num-(page-1)*100 if(page===this.nav.post.currentPage){this.goTo("#post-"+num,this.nav.post.goToOptions) if(!this.posts[i].id){const block=Math.floor(num/20)+1 this.nav.post.apiLock[block]=true await this.apiLoadPosts(block) this.$nextTick(()=>{this.goTo("#post-"+num,this.nav.post.goToOptions)})}}else{let url=window.location.href url=url.replace(/(\/\d+)?(#[0-9]+)?$/,page>1?`/${page}`:'') url=url+"#"+num window.location.href=url}},postIntersect(num){return(isIntersecting,entries,observer)=>{if(isIntersecting){this.nav.post.task.push(num) this.nav.post.active.push(num) this.nav.post.active=this.nav.post.active.filter(item=>Math.abs(item-num)<=5) this.nav.post.active.sort((a,b)=>a-b)}else{this.nav.post.active=this.nav.post.active.filter(item=>item!==num)} if(this.nav.post.active[0]){this.nav.post.anchor=this.nav.post.active[0]}else{this.nav.post.anchor=0}}},async apiLoadPosts(block){try{const response=await axios.post('/fapi/v1/post/block/'+block,{discussionId:this.nav.post.discussionId,}) if(response.data.code===0){response.data.data.posts.forEach(post=>{const i=post.num%100 Object.assign(this.posts[i],post)}) response.data.data.users.forEach(user=>{this.usersMap.set(user.uid,user)})}else{this.failureAlert('回帖数据加载失败: '+response.data.msg)}}catch(error){this.failureAlert('回帖数据加载失败: '+error)} this.nav.post.apiLock[block]=false},workerLoad(){while(this.nav.post.task.length){const num=this.nav.post.task.pop() const i=num-(this.nav.post.currentPage-1)*100 if(!this.posts[i].id){const block=Math.floor(num/20)+1 if(!this.nav.post.apiLock[block]){this.nav.post.apiLock[block]=true this.apiLoadPosts(block)}}}},getTimeInfo(t){if(!t){return ""} const now=new Date();const then=new Date(t);const diff=now-then;const minute=60*1000;const hour=minute*60;const day=hour*24;const month=day*30;const year=month*12;if(diffpost.num===num) if(!post){return "#"+num} const uid=post.uid const username=this.usersMap.get(uid)?.username if(!username){return "#"+num} return username},getUsernameByPostId(id){const post=this.posts.find(post=>post.id===id) if(!post){return "#"+this.getPostNumByPostId(id)} const uid=post.uid const username=this.usersMap.get(uid).username if(!username){return "#"+this.getPostNumByPostId(id)} return username},getPostNumByPostId(id){const post=this.posts.find(post=>post.id===id) return post.num},getPostById(id){const post=this.posts.find(post=>post.id===id) return post},getPostByNum(num){const post=this.posts.find(post=>post.num===num) return post},getAvatarByUid(uid){const avatar=this.usersMap.get(uid)?.avatar if(!avatar){return this.getRandomAvatar()} return avatar},getAvatarByPostNum(num){const post=this.posts.find(post=>post.num===num) if(!post){return this.getRandomAvatar()} const uid=post.uid return this.getAvatarByUid(uid)},getRandomAvatar(){const num=Math.floor(Math.random()*100) return "https://randomuser.me/api/portraits/men/"+num+".jpg"},getUrlByUid(uid){const url=this.usersMap.get(uid)?.url if(!url){return ""} return url},getTextByPostNum(num){const post=this.posts.find(post=>post.num===num) if(!post||!post.content){return '点击跳转到#'+num+'查看'} const parser=new DOMParser() const doc=parser.parseFromString(post.content,'text/html') const text=doc.body.textContent||'' return text.slice(0,100)},addHeadingIds(){const content=document.getElementById('post-content-0') if(!content){this.nav.showTOC=false return} const headings=content.querySelectorAll('h2, h3, h4') headings.forEach((heading,index)=>{if(!heading.id){heading.id=`toc-nav-${index}`}}) if(headings.length==0){this.nav.showTOC=false}},async doSearch(keywords){this.search.loading=true try{const response=await axios.post('/fapi/v1/search',{keywords:keywords,}) if(response.data.code===0){if(response.data.data.hash&&response.data.data.hash.length===32){window.location.href="/s/"+response.data.data.hash}else{this.failureAlert('搜索失败: 搜索服务异常')}}else{this.failureAlert('搜索失败: '+response.data.msg)}}catch(error){this.failureAlert('搜索失败: '+error)} this.search.loading=false},debounce(fn,delay){let timer=null return function(...args){if(timer)clearTimeout(timer) timer=setTimeout(()=>{fn.apply(this,args)},delay);};},},watch:{'nav.post.targetPage':{handler:async function(newV,oldV){this.toPage()},immediate:false},},} const vuetify=createVuetify({defaults:{global:{ripple:true,},},}) const app=createApp(App) app.use(vuetify).mount("#app")