Browse Source

update

master
dengbiao 4 months ago
parent
commit
0028179dc1
3 changed files with 30 additions and 0 deletions
  1. +5
    -0
      src/dao/super_cloud_issuance_user_robot_bind_circle_dao.go
  2. +14
    -0
      src/implement/super_cloud_issuance_user_robot_bind_circle_db.go
  3. +11
    -0
      src/models/super_cloud_issuance_user_robot_bind_circle.go

+ 5
- 0
src/dao/super_cloud_issuance_user_robot_bind_circle_dao.go View File

@@ -0,0 +1,5 @@
package dao

type SuperCloudIssuanceUserRobotBindCircleDao interface {
//TODO:: You can add specific method definitions here
}

+ 14
- 0
src/implement/super_cloud_issuance_user_robot_bind_circle_db.go View File

@@ -0,0 +1,14 @@
package implement

import (
"code.fnuoos.com/go_rely_warehouse/zyos_model.git/src/dao"
"xorm.io/xorm"
)

type SuperCloudIssuanceUserRobotBindCircleDb struct {
Db *xorm.Engine
}

func NewSuperCloudIssuanceUserRobotBindCircleDb(engine *xorm.Engine) dao.SuperCloudIssuanceUserRobotBindCircleDao {
return &SuperCloudIssuanceUserRobotBindCircleDb{Db: engine}
}

+ 11
- 0
src/models/super_cloud_issuance_user_robot_bind_circle.go View File

@@ -0,0 +1,11 @@
package models

type SuperCloudIssuanceUserRobotBindCircle struct {
Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
Uid int `json:"uid" xorm:"not null default 0 comment('uid') INT(11)"`
RobotId int `json:"robot_id" xorm:"not null default 0 comment('机器人id') INT(11)"`
GoodsCategoryId int `json:"goods_category_id" xorm:"not null default 0 comment('绑定的商品源分类id') INT(11)"`
State int `json:"state" xorm:"not null default 1 comment('状态(1正常 2暂停)') TINYINT(1)"`
CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') DATETIME"`
UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') DATETIME"`
}

Loading…
Cancel
Save