bee generate scaffold user -fields="id:int64,name:string,gender:int,age:int" -driver=mysql -conn=":@tcp IP /"
2023-02-22
mysql 語(yǔ)句
create table `user` (
`id` int(11) not null auto_increment,
`name` varchar(255) not null default '',
`gender` tinyint(1) not null default 0,
`age` int(11) not null default 0,
primary key (`id`)
) engine=innodb default charset=utf8;
insert into user values(1,'zhangsan',1,21),(2,'lisi',0,23);
create table `user` (
`id` int(11) not null auto_increment,
`name` varchar(255) not null default '',
`gender` tinyint(1) not null default 0,
`age` int(11) not null default 0,
primary key (`id`)
) engine=innodb default charset=utf8;
insert into user values(1,'zhangsan',1,21),(2,'lisi',0,23);
2022-03-20
看完了。 實(shí)戰(zhàn)項(xiàng)目的model好像漏掉了?view和controller的先后順序好像反了吧?
2022-02-21
的確是漏掉了model的編寫,另外view和controller的視頻順序是反的,也沒(méi)人管了。。。
2022-01-20
go get github.com/astaxie/beego
go get github.com/beego/bee
go get github.com/beego/bee
2021-07-17
①編輯profile文件
vi ~/.bash_profile 或者 vi /etc/profile
②添加
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
③立即生效
source ~/.bash_profile 或者 ...
vi ~/.bash_profile 或者 vi /etc/profile
②添加
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
③立即生效
source ~/.bash_profile 或者 ...
2021-06-10
適合有web基礎(chǔ)的同學(xué)學(xué)習(xí),不然連mysql都不會(huì)裝,環(huán)境配置都不會(huì),看這個(gè)課程就純屬浪費(fèi)時(shí)間了
2020-06-22