You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello author, I'm not sure if it's possible to add a universal structure processing method. I encountered a problem while using it. I put the common fields create_time, create_id, update_time, and update_id in a BaseModel structure and used them in the structure I'm using. However, when querying the returned value, I won't be able to retrieve and map all the values in this BaseMode structure to the corresponding base field. Is there a solution like this?
`
pub struct BaseModel {
pub create_time: Option,
pub create_id: Option,
pub update_time: Option,
pub update_id: Option,
}
Hello author, I'm not sure if it's possible to add a universal structure processing method. I encountered a problem while using it. I put the common fields create_time, create_id, update_time, and update_id in a BaseModel structure and used them in the structure I'm using. However, when querying the returned value, I won't be able to retrieve and map all the values in this BaseMode structure to the corresponding base field. Is there a solution like this? ` pub struct BaseModel { pub create_time: Option, pub create_id: Option, pub update_time: Option, pub update_id: Option, }
Thinks! But I encountered another plugin executing the modified SQL, and at the end of the execution, it was not the modified SQL, but the SQL before the modification. May I ask why this is?
Hello author, I'm not sure if it's possible to add a universal structure processing method. I encountered a problem while using it. I put the common fields create_time, create_id, update_time, and update_id in a BaseModel structure and used them in the structure I'm using. However, when querying the returned value, I won't be able to retrieve and map all the values in this BaseMode structure to the corresponding base field. Is there a solution like this?
`
pub struct BaseModel {
pub create_time: Option,
pub create_id: Option,
pub update_time: Option,
pub update_id: Option,
}
pub struct SubModel{
pub base: Option,
pub user_name: Option,
pub real_name: Option,
pub available: Option,
}
`
The text was updated successfully, but these errors were encountered: