klesh commented on code in PR #6236:
URL:
https://github.com/apache/incubator-devlake/pull/6236#discussion_r1356661226
##########
backend/plugins/tapd/models/workspace.go:
##########
@@ -42,26 +42,26 @@ type WorkspaceResponse struct {
type TapdWorkspace struct {
common.Scope `mapstructure:",squash"`
- Id uint64 `gorm:"primaryKey;type:BIGINT"
mapstructure:"id" json:"id"`
- Name string `gorm:"type:varchar(255)"
mapstructure:"name" json:"name"`
- PrettyName string `gorm:"type:varchar(255)"
mapstructure:"pretty_name" json:"pretty_name"`
- Category string `gorm:"type:varchar(255)"
mapstructure:"category" json:"category"`
- Status string `gorm:"type:varchar(255)"
mapstructure:"status" json:"status"`
- Description string `mapstructure:"description"
json:"description"`
- BeginDate *common.CSTTime `mapstructure:"begin_date"
json:"begin_date"`
- EndDate *common.CSTTime `mapstructure:"end_date" json:"end_date"`
- ExternalOn string `gorm:"type:varchar(255)"
mapstructure:"external_on" json:"external_on"`
- ParentId uint64 `gorm:"type:BIGINT"
mapstructure:"parent_id,string" json:"parent_id"`
- Creator string `gorm:"type:varchar(255)"
mapstructure:"creator" json:"creator"`
- Created *common.CSTTime `mapstructure:"created" json:"created"`
+ Id *common.StringUint64 `gorm:"primaryKey;type:BIGINT"
mapstructure:"id" json:"id"`
Review Comment:
Should not be a pointer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]