Merge branch 'develop' of https://bdgit.educoder.net/Hjqreturn/pgfqe6ch8 into develop
commit
ff0115675c
@ -0,0 +1,5 @@
|
|||||||
|
class Ecloud < ActiveRecord::Base
|
||||||
|
attr_accessible :applyno, :begintime, :bossorderid, :custcode, :custid, :custname, :custtype, :ecordercode, :endtime, :mobile, :opttype, :productcode, :registersource, :string, :trial, :useralias, :userid, :username
|
||||||
|
has_many :ecloud_users
|
||||||
|
has_many :ecloud_services
|
||||||
|
end
|
@ -0,0 +1,3 @@
|
|||||||
|
class EcloudService < ActiveRecord::Base
|
||||||
|
attr_accessible :begintime, :code, :endtime, :opttype
|
||||||
|
end
|
@ -0,0 +1,3 @@
|
|||||||
|
class EcloudUser < ActiveRecord::Base
|
||||||
|
attr_accessible :begintime, :email, :endtime, :mobile, :opttype, :paras, :useralias, :userid, :username, :custid
|
||||||
|
end
|
@ -0,0 +1,3 @@
|
|||||||
|
class EcloudUser < ActiveRecord::Base
|
||||||
|
attr_accessible :begintime, :email, :endtime, :mobile, :opttype, :paras, :useralias, :userid, :username, :custid
|
||||||
|
end
|
@ -1,7 +0,0 @@
|
|||||||
class Eclouduser < ActiveRecord::Base
|
|
||||||
attr_accessible :applyno, :begintime, :bossorderid, :code, :custcod, :custid, :custname, :custtype, :ecordercoder, :email,
|
|
||||||
:endtime, :key, :moblile, :opttype, :productcode, :registersource, :trial,
|
|
||||||
:useralias, :userid, :username, :productparas, :services
|
|
||||||
serialize :productparas, Hash
|
|
||||||
serialize :services, Hash
|
|
||||||
end
|
|
@ -0,0 +1,9 @@
|
|||||||
|
Gitlab.configure do |config|
|
||||||
|
# config.endpoint = 'http://192.168.41.130:3000/trustie/api/v3' # API endpoint URL, default: ENV['GITLAB_API_ENDPOINT']
|
||||||
|
# config.private_token = 'cK15gUDwvt8EEkzwQ_63' # user's private token, default: ENV['GITLAB_API_PRIVATE_TOKEN']
|
||||||
|
config.endpoint = 'http://testbdgit.trustie.net/api/v3' # API endpoint URL, default: ENV['GITLAB_API_ENDPOINT']
|
||||||
|
config.private_token = 's89kqsMPtF8YLZSLyVmF' # user's private token, default: ENV['GITLAB_API_PRIVATE_TOKEN']
|
||||||
|
# Optional
|
||||||
|
# config.user_agent = 'Custom User Agent' # user agent, default: 'Gitlab Ruby Gem [version]'
|
||||||
|
# config.sudo = 'user' # username for sudo mode, default: nil
|
||||||
|
end
|
@ -0,0 +1,18 @@
|
|||||||
|
class CreateEcloudUser < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :ecloud_users do |t|
|
||||||
|
t.integer :opttype
|
||||||
|
t.integer :userid
|
||||||
|
t.string :username
|
||||||
|
t.string :useralias
|
||||||
|
t.string :mobile
|
||||||
|
t.string :email
|
||||||
|
t.string :begintime
|
||||||
|
t.string :endtime
|
||||||
|
t.string :paras
|
||||||
|
t.integer :custid
|
||||||
|
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,25 @@
|
|||||||
|
class CreateEclouds < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :eclouds do |t|
|
||||||
|
t.string :applyno
|
||||||
|
t.string :ecordercode
|
||||||
|
t.integer :opttype
|
||||||
|
t.boolean :trial
|
||||||
|
t.string :bossorderid
|
||||||
|
t.integer :custid
|
||||||
|
t.string :custcode
|
||||||
|
t.integer :registersource
|
||||||
|
t.integer :custtype
|
||||||
|
t.string :custname
|
||||||
|
t.integer :userid
|
||||||
|
t.string :username
|
||||||
|
t.string :useralias
|
||||||
|
t.string :mobile
|
||||||
|
t.string :productcode
|
||||||
|
t.string :begintime
|
||||||
|
t.string :endtime
|
||||||
|
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,13 @@
|
|||||||
|
class CreateEcloudServices < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
create_table :ecloud_services do |t|
|
||||||
|
t.integer :opttype
|
||||||
|
t.string :code
|
||||||
|
t.string :begintime
|
||||||
|
t.string :endtime
|
||||||
|
t.integer :ecloud_id
|
||||||
|
|
||||||
|
t.timestamps
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddIndexToEcloud < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_index :eclouds, [:ecordercode, :custcode], :unique => true, :name => 'ecorder_cust_code'
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,9 @@
|
|||||||
|
FactoryGirl.define do
|
||||||
|
factory :ecloud_service do
|
||||||
|
opttype 1
|
||||||
|
code "MyString"
|
||||||
|
begintime "MyString"
|
||||||
|
endtime "MyString"
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
@ -0,0 +1,14 @@
|
|||||||
|
FactoryGirl.define do
|
||||||
|
factory :ecloud_user, :class => 'EcloudUsers' do
|
||||||
|
opttype 1
|
||||||
|
userid 1
|
||||||
|
username "MyString"
|
||||||
|
useralias "MyString"
|
||||||
|
mobile "MyString"
|
||||||
|
email "MyString"
|
||||||
|
begintime 1
|
||||||
|
endtime 1
|
||||||
|
paras "MyString"
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
@ -0,0 +1,23 @@
|
|||||||
|
FactoryGirl.define do
|
||||||
|
factory :ecloud do
|
||||||
|
applyno "MyString"
|
||||||
|
string "MyString"
|
||||||
|
ecordercode "MyString"
|
||||||
|
opttype 1
|
||||||
|
trial false
|
||||||
|
bossorderid "MyString"
|
||||||
|
custid 1
|
||||||
|
custcode "MyString"
|
||||||
|
registersource 1
|
||||||
|
custtype 1
|
||||||
|
custname "MyString"
|
||||||
|
userid 1
|
||||||
|
username "MyString"
|
||||||
|
useralias "MyString"
|
||||||
|
mobile "MyString"
|
||||||
|
productcode "MyString"
|
||||||
|
begintime "MyString"
|
||||||
|
endtime "MyString"
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe EcloudService, :type => :model do
|
||||||
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe Ecloud, :type => :model do
|
||||||
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
require 'rails_helper'
|
||||||
|
|
||||||
|
RSpec.describe EcloudUsers, :type => :model do
|
||||||
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
|
end
|
Loading…
Reference in new issue