Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模拟面试题支持多个回答 #188

Open
flycash opened this issue Jun 1, 2024 · 0 comments
Open

模拟面试题支持多个回答 #188

flycash opened this issue Jun 1, 2024 · 0 comments

Comments

@flycash
Copy link
Contributor

flycash commented Jun 1, 2024

仅限中文

使用场景

我意识到,同一个项目,被不同的拿出去面试,面试官即便问出同一个问题,回答也是不一样的。

举个例子来说,在”你为什么开发一个新的 dbproxy " 的时候,对于项目负责人来说,他需要更加详细解释自己的决策理由;对于一个核心研发来说,就可以比较简单的解释;对于毕设来说,那就更加容易解释,感兴趣或者了解到暂时缺少这么一个东西,都可以。

因此我们要重新调整在 Project 之下的 Question 的设计。

行业分析

如果你知道有框架提供了类似功能,可以在这里描述,并且给出文档或者例子

可行方案

如果你有设计思路或者解决方案,请在这里提供。你可以提供多个方案,并且给出自己的选择

在当下,Question 的设计是:

type Question struct {
	Id       int64
	Title    string
	Analysis string
	Answer   string
	Status   QuestionStatus
	Utime    time.Time
}

那么修改后的设计就是:

type Question struct {
	Id       int64
	Title    string
	Analysis string
        // 这个字段废弃
	Answer   string
	Status   QuestionStatus
	Utime    time.Time
}

type Answer struct {
	Id      int64
// 问题的 id
        Qid int64
// 如果 Role 是 0,那么我们认为是适用于所有角色的回答
       Role uint8 
	Content string
	// 关键字,辅助记忆,提取重点
	Keywords string
	// 速记,口诀
	Shorthand string

	// 亮点
	Highlight string

	// 引导点
	Guidance string
}

提供对应的制作库和线上库接口

其它

任何你觉得有利于解决问题的补充说明

你使用的是 webook 哪个版本?

你设置的的 Go 环境?

上传 go env 的结果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant