pub struct Evaluation {
pub id: Option<i64>,
pub member_id: Option<i32>,
pub target: Option<String>,
pub evaluator_id: Option<i32>,
pub evaluator: Option<String>,
pub role_type: Option<i16>,
pub content: Option<String>,
pub evaluation_time: Option<DateTime<Utc>>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
}Expand description
组员互评/审稿评价记录
记录校对或审稿岗位对组员工作质量的评价。 每条评价包含评价方、被评价方、职责类型和评价内容。
§字段说明
| 字段 | 数据库列 | 说明 |
|---|---|---|
id | id | 自增主键 |
member_id | memberId | 被评价组员 ID |
target | target | 被评价组员姓名(冗余,便于直接展示) |
evaluator_id | evaluatorId | 评价人 ID |
evaluator | evaluator | 评价人姓名 |
role_type | roleType | 职责类型:0-未指定,1-翻译质量,2-嵌字质量 |
content | content | 评价正文 |
evaluation_time | evaluationTime | 评价时间(业务时间) |
created_at | createdAt | 记录创建时间 |
updated_at | updatedAt | 记录最后更新时间 |
§序列化
JSON 格式(camelCase),用于 GET/POST /api/evaluations 的请求与响应。
§对应 Java 类
Java Evaluation 实体。
Fields§
§id: Option<i64>自增主键,新增时为 None
member_id: Option<i32>被评价组员 ID
target: Option<String>被评价人姓名(冗余字段,避免 JOIN 查询)
evaluator_id: Option<i32>评价人 ID
evaluator: Option<String>评价人姓名
role_type: Option<i16>职责类型:0-未指定,1-翻译,2-嵌字
content: Option<String>评价正文内容
evaluation_time: Option<DateTime<Utc>>评价发起时间
created_at: Option<DateTime<Utc>>记录创建时间(数据库自动填充)
updated_at: Option<DateTime<Utc>>记录最后更新时间
Trait Implementations§
Source§impl Clone for Evaluation
impl Clone for Evaluation
Source§fn clone(&self) -> Evaluation
fn clone(&self) -> Evaluation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Evaluation
impl Debug for Evaluation
Source§impl<'de> Deserialize<'de> for Evaluation
impl<'de> Deserialize<'de> for Evaluation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Evaluation
impl RefUnwindSafe for Evaluation
impl Send for Evaluation
impl Sync for Evaluation
impl Unpin for Evaluation
impl UnsafeUnpin for Evaluation
impl UnwindSafe for Evaluation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request